Panel LEDs (not recommended)
Some units have two LEDs that you can control. These LEDs are labeled USER 1 and USER 2.
From the library, drag an LED block into your Simulink® model. You can have only one block of this type in a model.
Simulink Real-Time™ Library of Drivers No Longer Recommended for Use
This driver allows the selection of individual LEDs in arbitrary order.
The number of elements defines the number of LEDs used. For example,
to control the USER 1 and USER 2 LEDs, enter
1 for each
LED. This parameter controls the behavior at model termination. A
1 causes the corresponding LED to be reset
to the value specified in Initial value vector.
A value of 0 causes the corresponding LED to be left at the most recent
value set while the model was running. The Reset
vector should either be a scalar value or the same length
as the LED vector. For scalar values, the block performs a scalar
expansion and assumes the same value for each element in the vector.
Enter 0 or
1 for each LED. This parameter
specifies the initial value (
to which the LED should be set between the time the model is downloaded
and the time it is started. The Initial value vector should
be the same length as the LED vector. If the vector does not have
the same length, the block performs a scalar expansion and assumes
the same value for each element in the vector.
Enter the base sample time or a multiple of the base sample
-1 means sample time is inherited).