LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

writing to multiple DIO ports at once 6503

I have a PCI6503, a card with 24 DIO lines split between 3 ports, ports A, B and C.
I want to use the PortWrite.vi to write 12 bits at once: all 8 lines of port B, and 4 (lines 0-3) of port C. All 24 lines were configured for output using a single instance of PortConfig.vi (setting port =0, and port width = 24). Can I just send a line map to PortWrite.vi with 24 bits, indicating which lines I want written, ie:
[00000000][11111111][11110000]? I added brackets to emphasize the three different ports.
Of course I could just first configure each port, 1 at a time, then write the 8 bits of port B, and 4 bits of port C. That would be the "simple" solution, but I want the clean solution.

It would be really great if NI would act
ually document these sorts of things, so I don't have to ask them in a forum...
cheers all.
0 Kudos
Message 1 of 2
(2,640 Views)
You should be able to configure the three ports in Traditional Nidaq or Nidaq6.9.3/earlier as one port, width 24, and then write a 24-bit word to the whole port using the port write function

In Nidaq Mx, you can use the syntax Dev0/Port0:2 assuming the device is Dev 0, when writing to the port
0 Kudos
Message 2 of 2
(2,640 Views)