Digital I/O

cancel
Showing results for 
Search instead for 
Did you mean: 

group writing to 6508

I want to configure all a,b, and c ports to read and all d ports to write. LabView Wizard under Digital Input and Outputs never gives me the option to open group write or read examples. I recieve errors when I configure on my own. Should I use MAX explorer to configure ports or not?
0 Kudos
Message 1 of 3
(3,772 Views)
Brent;

The board you have has 4 8255 chips, and has 12 ports of 8 bits each. The correspondence between port numbers and phisical pinout can be found at "PCI-DIO-96/PXI-6508/PCI-6503 User Manual" pages 3-5 and 3-6.
I'm attaching two Labview examples to this response. One does Read operations on 2 ports of a 8255 based device and the other does Write operations on 2 ports of the same device. You can use that idea to call multiple instances of the Config Port.vi to configue each port as input or output (the port numbers will be the numbers you will retrieve from pages 3-5 and 3-6 of the user manual), and use the port read.vi and port write.vi inside the same while loop.
Hope this helps.
Filipe Altoe
Applications Engineer
National Instruments
Message 2 of 3
(3,772 Views)
See file below.
0 Kudos
Message 3 of 3
(3,772 Views)