djfish's studio

1/22/2009

[Simulink]variables transfer

send data in the block out:use 'simout' to write data to MATLAB workspace.
receive data out of the block in:use 'constant' to get data from MATLAB workspace.
Details:
simout:
LIBRARY:Sinks
The To Workspace block inputs a signal and writes the signal data to the MATLAB workspace. The block writes the data to an array or structure that has the name specified by the block's Variable name parameter. The Save format parameter determines the output format.
USE:write the variable name in Toworkspace parameters->value name
constant:
LIBRARY:Source
USE:write the variable name in Constant parameters->Main->Constant value

No comments:

Post a Comment