PCI-6528 Digital Input block
Simulink® Real-Time™ Library for National Instruments®
The PCI-6528 has one chip with 3 ports (A,B,C) for digital input. Each port has a maximum of 8 digital I/O lines. Use a separate driver block for each port.
Note: The interrupt-on-change capability of this board is not used.
I/O Module Input
Block Input Data Type
< 0.5 = 0
Enter numbers between 1 and 8 to select the digital input lines used with this port. This driver allows the selection of individual digital input lines in arbitrary order. The number of elements defines the number of digital lines used.
For example, to use all of the digital inputs for one port, enter
Number the lines beginning with 1 even if this board manufacturer starts numbering the lines with 0.
From the list, choose either
C. The Port parameter defines
which port is used for this driver block. Each port has a maximum
of 8 digital inputs. In each case, one block is required for each
The documentation for this board from National Instruments labels these ports 0, 1, and 2.
This is a Boolean vector that selects which input lines to filter.
For example, if you enter a Channel vector of
and you want to filter all three
If you want to filter lines 1 and 5, but not line 3, then enter
If the filter vector is a single element, then it is scalar
expanded to the same width as the Channel vector.
In the example above, if the Filter vector is
it is expanded to
[0,0,0]. Likewise, if the Filter
it is expanded to
Enter the time interval the filter uses to determine a stable pulse. If the input pulse is shorter than this interval, it is ignored. The same filter interval applies to each filtered input, and if you filter on more than one digital input block for this board, you must enter the same Filter interval for each block.
A reasonable value for the Filter interval would be 200 to 300 μs.
Enter the base sample time or a multiple of the base sample
-1 means sample time is inherited).
If only one board of this type is in the target computer, enter
locate the board.
If two or more boards of this type are in the target computer,
enter the bus number and the PCI slot number of the board associated
with this driver block. Use the format
To determine the bus number and the PCI slot number, type:
tg = slrt; getPCIInfo(tg, 'installed')