Sensoray526 DO block
Simulink® Real-Time™ Library for Sensoray
Block Input Data Type
TTL (0 or +5) volts
input < 0.5, output = 0 volts
Enter a vector of numbers between 1 and 8. These are the channels to which the board writes output. Each group, 1 to 4 and 5 to 8, can be either input or output. Do not combine them. For example, if channels 1 to 4 are the input channels, you cannot have output on channel 2. Instead, you can use channels 5 to 8 to be the output channels.
Number the channels beginning with 1 even if this board manufacturer numbers them beginning with 0.
The reset vector controls the behavior of the channel at model
termination. Enter a scalar or a vector that is the same length as
the channel vector. If you specify a scalar value, that setting is
replicated over the channel vector. If you specify a value of
the corresponding channel is reset to the value specified in the initial
value vector. If you specify a value of
channel remains at the last value attained while the model was running.
The initial value vector contains the initial logic values for
the output channels, used by the block at initialization. Enter a
If Reset vector has a value of
the board sets the corresponding channel to the value of the Initial value vector when execution stops.
Enter a scalar or a vector that is the same length as the channel
vector. If you specify a scalar value, that value is replicated as
initial value over the channel vector. The channels are set to the
initial values between the time the model is downloaded and the time
it is started.
Enter the base sample time or a multiple of the base sample
-1 means sample time is inherited).
Enter the base address of the board. This entry must correspond to the base address DIP switch settings on the board. For example, if the base address is 2C0 (hexadecimal), enter
Note that the Sensoray 526 board ships from the manufacturer with a base address of 0x2C0. If you want to change the base address, see the board manufacturer documentation for allowed values.