Counter/Timer

cancel
Showing results for 
Search instead for 
Did you mean: 

Controlling counter's output value when gated

Hi,
I am using LabView 7.1 with NI-Daqmx 8.0.  I want my signal source (CTR 0 )  to be edge triggered when my gate is high (CTR 1 ).  Basically, I would like my signal source and my gate to act like a AND Gate.  
 
I was able to gate two counter together by following  "Count Digital Events-Pause Trig.vi", however when a counter is "paused" due to gating, it will always remain in its current state.  So, can anyone please provide some hints for my problem?
 
Thanks,
Waymon
 
 
0 Kudos
Message 1 of 4
(3,678 Views)

Hi Waymon,

I'm not sure I understand completely what you are trying to do.  Do you have two digital signals that you are trying to get the logical AND value from? Are you trying to read events on one counter, but only if two other signals are high?  Are both counters being used as inputs, or is one an output?  Are you trying to output a values on a counter, but return to a low state when it is paused? What board are you working with?

Please clarify so I can give you some suggestions.

Regards,
Jennifer O.

 

0 Kudos
Message 2 of 4
(3,652 Views)

I am trying to implement a data acquisition program that required to gate 2 counter output together.  The counter that I'm using is 6602.  My understanding is that the Gate function in Traditional NiDaq is replaced by Pause Trigger function in Daqmx.  However, when a counter is “paused” due to gating, it will always remain in its current state.   Is there a way that I can make the paused triggering work like a AND Gate (or forcing the output to low when gating)? 

Does this help to clarify my question?  Or you need more description.

Thanks for your help,

Waymon

0 Kudos
Message 3 of 4
(3,649 Views)
So if I understand you correctly, you are sending a signal to the gate of the counter and generating pulses on the counter output.  You would like the output line to show the pulses when the gate is high, but return low when the gate drops low.  Is this correct?
 
Depending on the speed of your signals you could programmatically stop the task when the gate goes low to force the channel to return to an idle state and then start the task again using the gate as a start trigger. 
 
A simpler option would be to add a logic gate to your output to AND the gate and output lines together. Would this be an option for you?
 
Jennifer O.
 
0 Kudos
Message 4 of 4
(3,633 Views)