Multifunction DAQ

cancel
Showing results for 
Search instead for 
Did you mean: 

Trouble getting 2 8-bit ports on a 6025E DAQ to work concurrently

Hello,

I am using a PCI-6025E DAQ card in a PC running WinNT, and am trying to interface to it with Labview 6.0.2.

More specifically I try to use portA and portB at the same time (two of the three digital I/O ports that the card has.)

I am trying to write and hold a digital 8-bit pattern on portA, then write another pattern on portB.For this purpose I use the "Write to Digital Port.vi" twice, within another VI. I slightly modified it with "error in" and "error out" terminals to ensure they operate in the correct sequence, but I doubt this is causing my problem.

My problem is that after I write (successfully) to portA, portA is grounded (reset?) before proceeding to write to portC (again su
ccessfully.)

I opened up the VI and cannot seem to find a reset command anywhere in it -though I don't understand everything in there, so I could be missing it.

How do I get to use two copies of this VI as sub-VIs without having them interfere with each other? I need to hold their outputs to the correct value simultaneously while a third VI executes (it involves the counter.)

Thank you,

-Alexander
0 Kudos
Message 1 of 2
(2,425 Views)
Alexander,

The three additional digital ports of the PCI-6025E use the 8255 chip. When any port on this chip (Port A, B, or C) is configured, all of the ports will be reset. To get around this, you will just need to configure all of the ports initially and then perform the reading/writing within your application. The link below describes the 8255 and how to effectively program with this chip. I hope this helps.

Why Do All My Digital I/O Ports Reset When I Configure One Port?
http://digital.ni.com/public.nsf/3efedde4322fef19862567740067f3cc/3e25a9780f2c48b986256120005af098?OpenDocument

Regards,

Todd D.
Message 2 of 2
(2,425 Views)