PFI Digital Input block for PCI-6289 and PXI-6289 boards
Simulink® Real-Time™ Library for National Instruments®
A model can have more than one PFI digital input block for a given physical board. If a model has more than one digital input block, it executes the blocks in the order that the Simulink software has determined.
The two counters and the PFI digital input and output blocks share the 16 PFI digital I/O lines. Follow these rules when using these blocks:
|You can read a PFI bit with this digital input block when...||You cannot read a PFI bit with this digital input block when...|
|PWM measure block is using the bit||PWM generate block is using the bit|
|Incremental encoder block is using the bit||PFI digital output block is using the bit|
I/O Module Input
Block Output Data Type
TTL low ≥ 0.0
This block uses 0 based numbering to reflect the names of the bits described in the National Instruments M Series user manual.
Enter a vector that contains the bits you want to monitor. For example, to read bits PFI 0, PFI 5, and PFI 7, enter
[0, 5, 7]
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')