Multifunction DAQ

cancel
Showing results for 
Search instead for 
Did you mean: 

Do other uses of 6024 affect the on-board counters?

Hi, I'm trying to set up the counters on the PCI-6024 to do up/down event counting. Using labview 6.1, I created a program that works completely correctly. But when I place this subVI into my main program, which utilizes other functions of the 6024, the program counts correctly, except that it always counts down. The up/down pins for the counter are DIO 6 and DIO 7, which I never use in the main program, but they seem to be getting set by the card by one of the other operations. Anyone else have any trouble similar to this? The other functions I am using the card for are: DIO 0, ACH0, ACH1, and DACout0. Thanks for your help.
0 Kudos
Message 1 of 2
(2,409 Views)
Greetings,

Which VIs are you using with DIO 0? My guess is that you may be using Write to Digital Line.vi. Even though this VI only writes to one digital line, it configures the entire port for output. Configuring DIO 6 for output will cause the behavior you have described. So, you need to be certain that DIO 6 is being configured for input when DIO Port Config.vi is called. I would suggest that you examine the example Dig Multi-line Direction (E).vi. This program demonstrates how to use DIO Port Config.vi with the proper line direction map input and DIO Port Write.vi with the proper line mask input.

Good luck with your application.

Spencer S.
0 Kudos
Message 2 of 2
(2,409 Views)