Post Go back to editing

How are you supposed to send an array using the ActiveX SigmaStudioServer in Matlab, using the REGISTER_SAFELAOD_ARRAY method?

Category: Software
Product Number: ADAU1787
Software Version: Sigma Studio 4.7

How do you send an array using the ActiveX server to connect to SigmaStudioServer in Matlab, using the REGISTER_SAFELAOD_ARRAY method?

I am absolutely flabbergasted that the following code excerpt does not work:

```
clc; clear; close all;

% Add SigmaStudio installtion directory to path
addpath('C:\Program Files\Analog Devices\SigmaStudio 4.7');

% Intantiate SigmaStudio server and invoke the interface
ss = actxserver('Analog.SigmaStudioServer.SigmaStudioServer');
ssServer = ss.invoke('ISigmaStudioServer');

% Query for existing values (this part works).
test = ssServer.REGISTER_READ_ARRAY("IC 1", 0x204C, 640);

% Send existing values back to same address (this part fails).
ssServer.REGISTER_SAFELAOD_ARRAY("IC 1", 0x204C, 4, test);

```

I get the following error:

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

Parents Reply Children