Digital - Input v1
Digital - Input v1 — Reads the digital input pins of
the configurable I/O module
Library
Simulink Real-Time - Speedgoat

Description
A Simulink model can contain only one digital input block for each physical IO3xx
card in your system.
Ports
This driver block has no inputs and one output port. According to your output type
configuration, the output can be one of the following:
-
32 ports of type double
32 output ports of type double are shown. Each port is a scalar having
either value 0.0 (Low) or 1.0 (High).
-
1 port with 32 element vector of type double
One output port of type double is shown. The port has a width of 32
where each element returns either 0.0 (Low) or 1.0 (High) for the
corresponding channel.
Parameters
Tab: Module Setup
-
Configurable I/O Module ID
This parameter associates a code module block with a configurable I/O module setup
block. Set this value to match the Module ID defined in the setup block of the
required configurable I/O module.
-
Channel Vector
A vector of channels this driver block entity will access. You can specify
channels in the range 1-N (N = the number of channels implemented in your specific
configuration file defined in the Setup block). The width of this vector also
defines the subsequent size of some of the following parameters if scalar expansion
applies. With a single block, all the channels of the block are synchronized.
-
Sample Time
Defines the base sample time at which this driver block gets its sample hit. This
parameter can also be set to -1 for inherited
sample time. The units are in seconds.
Tab: Input and output port configuration
-
Vectorize output port
Set the output port of the driver block to be a vector