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

by Rut » Sat, 05 Apr 2008 03:40:08 GMT

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

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

by MikeS81 » Sat, 05 Apr 2008 03:40:09 GMT


Hi Rut,
you can use a Event Structure for that. See the attached example.
Mike


ButtonExample_LV71.vi:
http://forums.ni.com/attachments/ni/170/313926/1/ButtonExample_LV71.vi

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

by Rut » Sat, 05 Apr 2008 04:40:05 GMT

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

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

by Rut » Sat, 05 Apr 2008 05:10:06 GMT

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

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

by MikeS81 » Sat, 05 Apr 2008 05:40:08 GMT

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

Similar Threads

1. Record by press of button

2. I must push the enter button to press OK with my "One button dialog box"

When I run teststand with a sequence, which call a One button dialog,
the first validation must be made by the enter Press on the keyboard.
With the mouse, it doesn't work?

Are you an idea ?

3. run a subvi by pressing a button multiple times

4. check how many times button is pressed

hi i have a problem. i have to pass W1, let say the user press OK button. then 2nd time if the user press it should pass W2..and so on it is posibble in ni?
 And let say the user close the vi aftr 2nd time click the button. later went he open the vi again it should stores W3..
How to do tht?

5. how to akill a program when user press the windows close button

6. Is there any event associated with pressing ENTER button on keyboard

I have made an application in Labview which offers a Login window at the start. User enters username and password, and click <OK> button to proceed. The mouse up event for OK button let the application proceed further. I want that when user presses <enter> after entering password in its string control, the application should proceed further in the same manner as it proceeds in the case of mouse up event for <ok> button.
Is there any type of event whcih fires when <enter> button (on keyboard)  is pressed when the focus is over some control.

7. reinitialize button after pressing

8. create a main screen that opens and runs other vi?s depending on the button pressed

Hope you can help, 
I have created 5 separate VI's that I want to run.   For example,  I want a main Vi that will have control buttons that jumps to other VI's depending on which button is pressed.  Causing the selected VI to run.  Then be able to switch back the the main VI after I'm finished running the selected VI. 
I'm not sure where I should start or what is the best way to do this.  I have crated all of the VI's but I can't seem to link them together.  Hopefully, this question makes since. 
Thanks for you help,
Amy:smileyhappy: