Real-Time Windows Target | ![]() ![]() |
Entering Scope Properties
Data is saved to a disk drive by first saving the data to the MATLAB workspace through a Simulink Scope block. Scope block parameters 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 a disk drive. 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-38.
ScopeData
. Note The Scope Properties dialog box is related to the Data Archiving dialog box. In the Scope Properties dialog box, you must select the Save data to workspace check box to be able to save data to a disk drive for two reasons:
If you do not select the Save data to workspace check box, the MAT-files for data logging will be created, but they will be empty.
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. Also, you must rebuild your real-time application before connecting and stating a real-time application.
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.
![]() | Signal Logging to a Disk Drive | Entering Signal and Triggering Properties | ![]() |