xPC Target    

PCI-PDISO16 Digital Input

Scaling Input to Output

Hardware Input
Block Output Data Type
Scaling
OPTO
double
Low (opto off) = 0.0
High (opto on) = 1.0

The input is rectified before being applied to the opto isolator on the input. With no additional input current limiting resistor, the opto turns on when volts.

Driver Block Parameters

Channel vector -- 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 any order. The number of elements defines the number of digital lines used.

For example, to use all of the digital inputs, enter

Number the lines beginning with 1 even though the board manufacturer starts numbering the lines with 0.

Filter vector -- This vector controls the 5 ms noise filter. It is the same length as the channel vector. A value of 1 turns the filter on, and a value of 0 turns the filter off. If you specify a scalar, this value is applied to all channels.

Port -- From the list choose either A or B. The Port parameter defines which port is used for this driver block. Each port has a maximum of 8 digital inputs. More than one block can be connected to the same port, but each channel can only be referenced by one block at a time.

Sample time -- Enter a base sample time or a multiple of the base sample time.

PCI Slot (-1:autosearch) -- Enter a number between -1 and n. If only one board of this type is physically present in the target PC, enter

If two or more boards of this type are physically present in the target PC, enter the bus number and the PCI slot number of the board associated with this driver block. Use the format [BusNumber, SlotNumber]. To determine the bus number and the PCI slot number, type


  PCI-PDISO16 PCI-PDISO16 Digital Output