This is an old revision of the document!
Click here to return to 'SigmaStudio Scripting' page.
To use MATLAB as a SigmaStudio server client, both applications must be installed and running on the same machine.
In this configuration, MATLAB is a COM automation client and SigmaStudio (via SigmaStudioServer) becomes a COM automation server. For COM operation, the SigmaStudioServer must first be registered as a COM object.
If you have installed SigmaStudio in its default directory (C:\Program Files\Analog Devices\SigmaStudio X.xx, where X.xx is the version), and your .NET framework is up to date, you may use the SigmaStudioServer Registration utility. Right-click here, and click “Save link as…,” then run the saved file as an administrator. You will need to enter the version of SigmaStudio (“3.17” for version 3.17, for example), as well as whether you're using 32- or 64-bit MATLAB.
Note: here xx in 3.xx should be the current SigmaStudio version like 3.15.
You should get a “Type registered successfully” message after the assembly file has been registered.
Note: here xx in 3.xx should be the current SigmaStudio version like 3.15.
You should get a “Type registered successfully” message after the assembly file has been registered.
% SigmaSetup.m % IMPORTANT: Launch the SigmaStudio application first! % Add SigmaStudio installtion directory to path path(path, 'C:\Program Files\Analog Devices\SigmaStudio 4.5'); % Intantiate SigmaStudio server and invoke the interface ss = actxserver('Analog.SigmaStudioServer.SigmaStudioServer'); ss_server = ss.invoke('ISigmaStudioServer'); % Close the project ss_server.CLOSE_PROJECT(); % Load sample project file ss_server.OPEN_PROJECT( "C:\Users\SReddy2\Downloads\Matlab Test\MatLabTest.dspproj"); % Compile and download program to hardware ss_server.COMPILE_PROJECT(); % Set the Gain Parameter ss_server.PARAMETER_WRITE("IC 1",22, 8,24,2.0);