SBS IP-UD-IHV-8I160 Digital Input

SBS IP-UD-IHV-8I160 Digital Input block (not recommended)


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

Scaling Input to Output

Hardware Input

Block Output Data Type



Double (Format: 8 1-bit Channels)

< Threshold = 0.0

> Threshold = 1.0

uint8 (Format: One 8-bit Channel)

< Threshold, corresponding bit is clear

> Threshold, corresponding bit is set

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-8I160 is plugged. Different carrier boards can have different slot capacities. From the list, select A, B, C, or D.


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 Channel

    Configures block to accept one 8-bit channel.

Channel vector

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

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

    [1, 3]
  • If you select the Format parameter to be One 8–bit Channels, enter a vector number of 1. For example, to use the single digital input channel, enter


    Note:   The manufacturer numbers its lines sequentially from 1 to 24, regardless of the line's function. The input lines of this board are numbered 1 to 8. 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 One 8-bit Channels (byte mode), the channel number is 1. See the mapping table in SBS IP-UD-IHV-8I160.


Enter a threshold value. This block reads the input as 1 if the input voltage multiplied by the operational amplifier (op amp) gain is greater than this threshold value. This block reads the input as 0 if the input voltage is less than this threshold value.

The maximum value of Threshold is 61.68 volts. It has a granularity of 15 millivolts. 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?