LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

press button and start an recording for fixed time and then release button for next press

Hi,

Here is the scenario:

A button is pressed and a recording of 10s is taken. During the 10s, the button is greyed out and doesn't respond to any press till 10s passes.

Don't know how to pass time informaton between different cases and so on. Totally lost. A really simple thing, but don't see how it is done in Labview.

Need your help.

Thanks.

Rut
0 Kudos
Message 1 of 5
(2,879 Views)

Hi Rut,

you can use a Event Structure for that. See the attached example.

Mike

0 Kudos
Message 2 of 5
(2,875 Views)
Hi, Mike,

Thanks for the quick response.

During the 10000ms, can the VI perform other tasks? Or it has to wait for this specific button event (becomes available) to finish?

When the button is pressed and a task is being performed, I need to run other tasks in parallel.

Thanks.

Rut
0 Kudos
Message 3 of 5
(2,864 Views)
I added another case that simply turns a LED on and off with another button. Seems it works. But the the turning on and off of LED dramaticall affects the button greying time, ie, if I play with the LED, the button takes longer time to become available than I do nothing.

So my new question is: will the 10000ms affect other real time tasks?

Thanks.

Rut
0 Kudos
Message 4 of 5
(2,863 Views)

Hi Rut,

with the button press event you can send for example an event to another while loop which will work on it. The event structure should have no effect on it.

Mike

0 Kudos
Message 5 of 5
(2,857 Views)