LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Auto-clicker

Solved!
Go to solution

I am trying to write an "auto-clicker" VI, or a pulse generator. Basically I want to make an automated "timer" switch that turns off and on (boolean output) with user-set time-delay, without using a DAQ card. Basically I want a automatic boolean switch that switches off and on.

 

The reason for doing this is that I want the user to have an option to click to refresh, or just set an automated timer that will automatically refresh (restart averaging).

So what I am trying to do is a simple switch for the user to restart (already connected), and I would like to use an OR operation, now the next step is I am not to sure how to generate a boolean output.

How do I create a pulse generator in this manner? that automatically "clicks" with a user-set time delay?

 

Help would be much appreciated! Thanks!

 

original.jpg

0 Kudos
Message 1 of 3
(5,047 Views)
Solution
Accepted by topic author MKFX

Look at the Elapsed Time vi.

 

To take it one step further, put it in a case structure which is governed by thr Auto Average boolean in your image. When Auto Average is off, make the result of the case structure false, otherwise make it the Time has Elapsed output of the Elapsed Time vi. Or that result with your Refresh button.

Message 2 of 3
(5,027 Views)

Thank you, it works!

0 Kudos
Message 3 of 3
(5,018 Views)