LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

pci-6602 numeric outputs

Hello,
I have Labview 6.0.2 in win2000 evironnement with NIDAQ 6.9.1 and a pci-6602 card.
I would like to use this card to configure a series of digital outpout (8). I tried to use the supplied DAQ programs to write a series of digital output in the same port but anythigs works. This examples have a name with the type name port between parenthesis and there isn't the 6602 port. In contrast the solutions for just one digital output work. Does anybody as a labview program to write in several diital output in the same time for a PCI-6602 port?
Moreover I have to use some couters at the same time in the same port, can it produce any problem?
Thanks,

Martino
0 Kudos
Message 1 of 3
(2,373 Views)
I'm not sure waht examples you're refering to. There's Write to Digital Port(8255), Write to Digital Port(652x), and Write to Digital Port(653x) but they're all pretty much the same. You first call DIO Port Config and specify the port number (0,1,2) or virtual port along with line direction, and then call DIO Port Write.
0 Kudos
Message 2 of 3
(2,373 Views)
Yes, you can use the PFI lines as both counter I/O and DIO lines simultaneously. There are actually several Knowledge Bases on this subject. Here's a good search on http://www.ni.com/support you might like linked Keyword Search: (660x 6602) dio.Basically, you end up treating all of the PFI lines as one large 32-bit port. The most important thing to remember is 1) not to use the same PFI line for both counter I/O and DIO at the same time! and 2) Make sure you do all of your DIO configurations before counter configurations else the DIO config will write over your counter PFI assignment
s. Hope this helps!

Russell
Applications Engineer
National Instruments
http://www.ni.com/support

Message Edited by Molly K on 02-18-2005 11:45 PM

0 Kudos
Message 3 of 3
(2,374 Views)