Download Real-Time Windows Target User`s Guide
Transcript
3 Basic Procedures Entering Signal and Triggering Properties Data is saved to the MATLAB workspace through a Simulink Scope block. Signal and triggering properties need to be set only when running a real-time application. If you are running a simulation, you can skip this procedure. After you create a Simulink model and add a Scope block, you can enter the signal and triggering properties for 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: 1 In the Simulink window, and from the Tools menu, click External Mode Control Panel. The External Mode control Panel dialog box opens. 2 Click the Signal & Triggering button. The External Signal & Triggering dialog box opens. 3 Click the Select all button. From the Source list, choose Manual. From the Mode list, choose Normal. The X under Signal selection designates that a signal has been tagged for data collection, and T designates that the signal has been tagged as a trigger signal. 4 In the Duration box, enter the number of sample points in a data buffer. For example, if you have a sample rate of 1000 samples/second and a stop time of 10 seconds, you could enter 10000 Note The Duration value is related to the Limit rows to last value in the Scope Properties dialog box. The smaller of either value limits the number of sample points saved to the MATLAB workspace. We recommend that you do not select the Limit rows to last check box, and use the Duration value to set the number of sample points saved. 3-30