Real-Time Windows Target | ![]() ![]() |
Entering Scope Properties
Data is saved to the MATLAB workspace through a Simulink Scope block. Scope block properties need to be set for data to be saved.
After you create a Simulink model and add a Scope block, you can enter the scope properties for signal logging to the MATLAB workspace. This procedure uses the Simulink model rtwin_model.mdl
as an example and assumes you have already loaded that model.
Note The Limit rows to last check box is related to the Duration value in the External Signal and Triggering dialog box. The smaller of either value limits the number of sample points saved to the MATLAB workspace. When using Real-Time Windows Target, we recommend that you use the Duration value to set the number of sample points you save.
To set the Duration value, see "Entering Signal and Triggering Properties" on page 3-30
ScopeData
. Note When you modify anything in the Scope Properties dialog box, you must click the Apply or OK button for the changes to take effect, and you must rebuild your real-time application before connecting and starting it. If you do not rebuild, an error dialog box will open. If you do not click Apply, your executable will run, but it will use the old settings.
The reason why you need to rebuild is because the model checksum includes settings from the Scope block used for signal logging. If the model checksum does not match the checksum in the generated code, the real-time application cannot run. Always rebuild your real-time application after changing Scope properties.
![]() | Signal Logging to the MATLAB Workspace | Entering Signal and Triggering Properties | ![]() |