From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

is it possible to generate only-high or only-low state with counter?

Hi all,

  I have one digital line connected to an external switch. I am sending a TTL high or low to switch the device on or off. But for some reason, I need to consider the synchronized issue so I have to switch the device on for some times and turn it off, which was done by using a counter instead. I set the counter to use external clock to drive the counter to output 1 TTL pulse. Now come to the question. To use counter, I must output a pulse (HIGH and LOW). But sometimes I need to output only HIGH state or only LOW state. Is it possible to implement that with counter line?

0 Kudos
Message 1 of 4
(2,444 Views)

Can you explain more about why you need to use a counter? There are ways to synchronize digital outputs, so maybe you could still use this option.

Applications Engineer
National Instruments
0 Kudos
Message 2 of 4
(2,393 Views)

You can clear the counter task and create a new digital output task on the same line.

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

No need to clear the counter task, just unreserve it!

!0.png


"Should be" isn't "Is" -Jay
0 Kudos
Message 4 of 4
(2,373 Views)