Documentation

SBS IP-UD-IHV-16I80 Digital Output

SBS IP-UD-IHV-16I80 Digital Output block (not recommended)

Library

Simulink® Real-Time™ Library of Drivers No Longer Recommended for Use

Scaling of Output to Input

Hardware Input

Block Output Data Type

Scaling

Volts

Double (Format: 8 1-bit Channels)

Double:
< 0.5, off

>0.5, on

uint8 (Format: One 8-bit Channel)

uint32:
Bit clear, off

Bit set, on

Block Parameters

Carrier ID

Enter a number to uniquely identify this IP carrier board within the model.

Carrier slot

Select the slot on the carrier board into which the module IP-UD-IHV-16I80 is plugged. Different carrier boards can have different slot capacities. From the list, select A, B, C, or D.

Format

From the list, select one of the following modes:

  • 8 1–bit Channels

    Configures block to accept up to eight 1-bit channels.

  • One 8–bit Channels

    Configures block to accept one 8-bit channels.

Channel vector

This value depends on the value of Format, as follows:

  • Vector of numbers between 1 and 16

    If you select the Format parameter to be 8 1–bit Channels. For example, to use the first and third digital input channels, enter

    [1, 3]
  • Vector of 1

    If you select the Format parameter to be One 8–bit Channel. For example, to use the first and second digital input channels, enter

    [1]

    Note:   The manufacturer numbers its lines sequentially from 1 to 24, regardless of the line's function. The output lines of this board are numbered 17 to 24. For Simulink Real-Time blocks, the channel numbers depend on the setting of the Format parameter. If you select the Format parameter to be 8 1–bit Channels (bit mode), the channel numbers range from 1 to 8. If you select the Format parameter to be Two 8-bit Channels (byte mode), the channel number is 1. See the mapping table in SBS IP-UD-IHV-16I80.

Initial value vector

The initial value vector contains the initial voltage values for the output channels. 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 the 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.

Final action vector

The final action 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 1, the corresponding channel is reset to the value specified in the initial value vector. If you specify a value of -1, the block sets the channel to the value specified in the Final value vector value for that channel. If you specify a value of 0, the channel remains at the last value attained while the model was running.

Final value vector

The final value vector contains the final value for each output channel. 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 the Final action vector is -1, the block sets the channel to this value on model termination.

Double buffering

From the list, select:

  • Disable

    Disable the use of double-buffering for synchronizing multiple IPs.

  • Rising edge

    Enable the use of double-buffering for synchronizing multiple IPs on the rising edge.

  • Falling edge

    Enable the use of double-buffering for synchronizing multiple IPs on the falling edge.

To enable double-buffering, you must have an external clock attached to the board. See the IP-UD-IHV user documentation for details.

Sample time

Enter the base sample time or a multiple of the base sample time (-1 means sample time is inherited).

External Websites

Was this topic helpful?