Home
Watchdog Digital Output

Digital Input

Reads digital inputs of the Q8 data acquisition system.

Library

qctools

Description




The Digital Input Module for the Q8 series of I/O cards provides a mechanism for reading a set of digital inputs from an installed Q8 I/O card. The block can provide a scalar or vector output.

Parameters and Dialog Box




Board Number

The board number of the I/O card. If there is only one Q8 board in your system, then the board number should be zero. The second Q8 board in your system is board number 1, etc.

Channel(s) to Use

The channel numbers corresponding to each output. For example, if there are 3 outputs, then the entry [4,2,0] assigns output 1 to digital input 4, output 2 to digital input 2 and output 3 to digital input 0. The channel numbers may range from 0 to 31, since there are 32 digital I/O channels on the Q8 I/O boards. The same digital I/O channels are shared by the Digital Output block, so channel numbers cannot conflict. The selected digital input channels are read simultaneously.

Sample Time

A sample time must be specified for all discrete blocks. The default value extracts the sample time from the RTW Options dialog, under Solver/Fixed step size. A numeric value rather than 'auto' should be specified in this dialog field for this default to make sense.

Simulation Input

If the Simulation Input box is checked, then the block will have an input port. During normal simulation (as opposed to real-time execution), the output of the block will be a function of the input. If the input is 0.5 or more, then the corresponding output will be 1. If the input is less than 0.5 then the corresponding output will be 0. This option makes no difference to the real-time code.

       
Watchdog Digital Output