Counter/Timer

cancel
Showing results for 
Search instead for 
Did you mean: 

Setting output pin to high while counter counts edges - 660x

Traditional DAQ allowed you to set the output of a counter while it counted, is there an equivalent for daqmx?  The counter output for our current setup spins a motor until the counter reaches the proper number of counted edges from another pulse generator on the board. Perhaps I need to reconsider the setup, but there should be a method to do this action.  I was only able to find an indicator of the output state in the Channel property nodes. Any ideas? Thanks.
0 Kudos
Message 1 of 5
(4,045 Views)
Hello Roth,
 
An event is thrown whenever a counter reaches its terminal count, and you should be able to use that to your advantage here.  Once that terminal count is reached, you can use DAQmx properties to set the counter to output a pulse or toggle the line.  If you use this property in conjunction with the initial count property, you can have the counter cound X number of edges and then toggle the output line:
 
 
I hope this helps!
 
Thanks,
 
Justin M.
National Instruments

Message Edited by Justin M. on 06-12-2006 01:05 PM

Message 2 of 5
(4,033 Views)
I modified the "Count Digital Edges" VI and placed the Export Signal modifiers in between when the channel is created and when the Start Task is called. I set up the counter to count down from 1000, however, the action is a short pulse when the counter rolls over from 0 to the 4294967108 number. I tried setting the toggle state to High, but then no action occured. I'm trying to simply set counter output to high while it counts and then toggle it, but that doesn't seem to be happening.   Thanks.

Marshall
0 Kudos
Message 3 of 5
(4,022 Views)
Nevermind, it helps when you read the schematics properly. Sorry to waste your time, I don't actually need this action. Thanks for your help anyway.

Sincerely,

Marshall
0 Kudos
Message 4 of 5
(4,021 Views)
No problem Marshall...this thread may help someone else out in the future.  Good luck with your application!
 
-Justin M.
0 Kudos
Message 5 of 5
(4,009 Views)