AnsweredAssumed Answered

Sigmastudio server Matlab register write- what's missing?

Question asked by jeffrex on Jul 24, 2018
Latest reply on Jul 26, 2018 by jeffrex

Hi all, I'm writing Matlab code to control an ADAU1772 through sigmastudio server.  I can do register reads, but writes aren't working.  Here's the Matlab code for a write:

 

SS = actxserver('Analog.SigmaStudioServer.SigmaStudioServer');
ss_server = SS.invoke('ISigmaStudioServer');

 

b=uint8(zeros(4,1));

b=ss_server.REGISTER_READ_ARRAY('IC 1',224,4);  %This works!

 

b=uint8(zeros(4,1));

ss_server.REGISTER_WRITE_ARRAY('IC 1', 224, 4, b) %But this doesn't!!

 

The write generates this error:

Error using Interface.2942E58A_4461_410E_87B3_64152C81935F/REGISTER_WRITE_ARRAY
Error: The parameter is incorrect.

 

Does anyone have any idea why the write doesn't work?  I thought maybe I couldn't write the the active bank, but that doesn't seem to be the problem.

 

Thanks,

 

Jeff

Outcomes