Real-Time Workshop    

External Signal & Triggering Dialog Box

Clicking the Signal & triggering button activates the External Signal & Triggering dialog box.

Figure 6-7: Default Settings of the External Signal & Triggering Dialog Box

The External Signal & Triggering dialog box displays a list of all blocks and subsystems in your model that support external mode signal uploading. See External Mode Compatible Blocks and Subsystems for information on which types of blocks are external mode compatible.

The External Signal & Triggering dialog box lets you select which signals are collected from the target system and viewed in external mode. It also lets you select a signal that triggers uploading of data when certain signal conditions are met, and define the triggering conditions.

Default Operation

Figure 6-7 shows the default settings of the External Signal and Triggering dialog box. The default operation of the External Signal and Triggering dialog box is designed to simplify monitoring the target program. If you use the default settings, you do not need to preconfigure signals and triggers. Simply start the target program and connect the Simulink model to it. All external mode compatible blocks will be selected and the trigger will be armed. Signal uploading will begin immediately upon connection to the target program.

The default configuration is:

Signal Selection

All external mode compatible blocks in your model appear in the Signal selection list of the External Signal & Triggering dialog box. You use this list to select signals to be viewed. An X appears to the left of each selected block's name.

The Select all check box selects all signals. By default, Select all is on.

If Select all is off, you can select or deselect individual signals using the on and off radio buttons. To select a signal, click on the desired list entry and click the on radio button. To deselect a signal, click on the desired list entry and click the off radio button. Alternatively, you can double-click a signal in the list to toggle between selection and deselection.

The Clear all button deselects all signals.

Trigger Options

The Trigger panel located at the bottom left of the External Signal & Triggering dialog box contains options that control when and how signal data is collected (uploaded) from the target system. These options are:

Trigger Signal Selection

You can designate one signal as a trigger signal. To select a trigger signal, select signal from the Trigger Source menu. This activates the Trigger signal panel (see Figure 6-8). Then, click on the desired entry in the Signal selection list, and click the Trigger signal button.

When a signal is selected as a trigger, a T appears to the left of the block's name in the Signal selection list. In Figure 6-8, the Pilot G force Scope signal is the trigger. Pilot G force Scope is also selected for viewing, as indicated by the X to the left of the block name.

Figure 6-8: Signals & Triggering Window with Trigger Selected

After selecting the trigger signal, you can define the trigger conditions in the Trigger signal panel, and set the Port and Element fields located on the right side of the Trigger panel.

Setting Trigger Conditions

By default, any element of the first input port of the specified trigger block can cause the trigger to fire (i.e., Port 1, any element). You can modify this behavior by adjusting the Port and Element fields located on the right side of the Trigger panel. The Port field accepts a number or the keyword last. The Element field accepts a number or the keywords any and last.

The Trigger Signal panel defines the conditions under which a trigger event will occur. These are:


  Target Interface Dialog Box Data Archiving Dialog Box