Counter/Timer

cancel
Showing results for 
Search instead for 
Did you mean: 

How to disable (turn off) a counter output

I have a similar question up on the the board but I thought I would ask it in another way to make it simple and straightforward. 
 
Can an E-series counter output be disabled (and enabled) quickly through some software command?  When I say " disabled" I mean switched off to a TTL low state.  I have tried both the "disable" counter control command and gating the counter with a TTL signal.  Both methods leave the output pin in whatever state the output happens to be in at the time of the command or gating.  I need a disable function where "disabled" automatically sets an OFF or LOW on the output.  I am using this to generate a pulse train where the pulse train switches off at certain times, and I cannot have the output remain high at these times.
 
I am using traditional DAQ but if there is a method in DAQmx that works I'd be willing to try it...


0 Kudos
Message 1 of 4
(3,813 Views)
Have you tried using the following vi with a reset command (search in help, it works with the E series counters)

Counter Control

This VI controls groups of counters. Control operations include starting, stopping, and setting the state of active acquisitions. This VI works with DAQ-STC and NI-TIO-based devices.

Control code 1 (reset) reinitializes the counter back to the default settings.

~~~~~~~~~~~~~~~~~~~~~~~~~~
"It’s the questions that drive us.”
~~~~~~~~~~~~~~~~~~~~~~~~~~
0 Kudos
Message 2 of 4
(3,809 Views)
Yup.  That would work great if it did not take 200ms to re-arm the counter and restart it.  I need to bea ble to do this via a faster method.  I think my only option here is to use a board like the 6602 that has more counters.  I really thought that disabling the counter would set the output to "low".  I'm not sure why this isn't an option.


0 Kudos
Message 3 of 4
(3,813 Views)
I don't have a system to try this at the moment, but I'm pretty sure that using DAQmx, when you stop (disarm) a task it will go back to the idle state. It is definitely strange that the same behavior doesn't occur in traditional DAQ. There are some things you might be able to try in traditional DAQ. Are you using the C API or labVIEW? You might be able to use the Route Signal VI to explicitly route low to the counter output pin. I'd suggest looking at the Route Signal VI to see if there is something you can do there.

I hope this helps!
gus....
0 Kudos
Message 4 of 4
(3,794 Views)