MATLAB Parameter Write Examples
Hello,
I am trying to update the digital filter parameters (ex: center, span, etc. ) of my ADAU1787 using MATLAB. However, I am stuck because I cannot find any examples on how to use the built-in functions to control SigmaStudio from MATLAB.
So far, I am able to use the ss_server.OPEN_PROJECT() and ss_server.CLOSE_PROJECT() functions, so I know that SigmaStudio and MATLAB are communicating properly.
Could someone help me understand how to use the ss_server.PARAMETER_WRITE() and addproperty(handle, string) functions? By typing libfunctions(ss_server,'-full') into the MATLAB Command Window, I am able to get some info, but I am still confused.
For reference, here it the information provided as to what inputs these functions require:
bool PARAMETER_WRITE(handle, ustring, int32, int32, int32, single)
bool PARAMETER_WRITE_ARRAY(handle, ustring, int32, int32, int32, int32, SafeArray(single))
bool PARAMETER_WRITE_ARRAY_FLOAT(handle, ustring, int32, int32, SafeArray(single))
bool PARAMETER_WRITE_ARRAY_FLOAT_USING_NAME(handle, ustring, ustring, int32, SafeArray(single))
bool PARAMETER_WRITE_ARRAY_USING_NAME(handle, ustring, ustring, int32, int32, int32, SafeArray(single))
bool PARAMETER_WRITE_FLOAT(handle, ustring, int32, single)
bool PARAMETER_WRITE_FLOAT_USING_NAME(handle, ustring, ustring, single)
bool PARAMETER_WRITE_USING_NAME(handle, ustring, ustring, int32, int32, single)
and
addproperty(handle, string)
ADAU1787
Integrated/Special Purpose A/D Converters
Audio CODECs
Please log in to reply.