labview >> check how many times button is pressed

by jeyanthi » Wed, 04 Jun 2008 15:10:06 GMT

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?

labview >> check how many times button is pressed

by MikeS81 » Wed, 04 Jun 2008 15:40:08 GMT


Hi jeyanthi,
you can use a while loop with an event structure in it. Create a shift register in the loop. count every button value change in the "value change" event. To store the current value you can use an action engine. Call this (action engine) vi before the while loop to read the last value und after the loop to store the last value.
Mike

labview >> check how many times button is pressed

by parthabe » Wed, 04 Jun 2008 15:40:08 GMT

Hi Jeyanthi,
What re W1, W2 & W3?
Can you explain a bit more on what you are doing or what you are trying to achieve?

labview >> check how many times button is pressed

by MikeS81 » Wed, 04 Jun 2008 15:40:09 GMT

Hi jeyanthi,
here is a short example (LV80) for you. The "sub.vi" is the vi in which is your button.
Hope it helps.
Mike


Sub1.vi:
http://forums.ni.com/attachments/ni/170/328694/1/Sub1.vi


AE.vi:
http://forums.ni.com/attachments/ni/170/328694/2/AE.vi

labview >> check how many times button is pressed

by jeyanthi » Wed, 04 Jun 2008 15:40:09 GMT

W1= Write1
W2= Write2......
 
hi Mike wat is action engine vi...how to tht can i get some example...plz
 

labview >> check how many times button is pressed

by parthabe » Wed, 04 Jun 2008 16:10:05 GMT

To know more about AEs read <a href=" http://forums.ni.com/ni/board/message?board.id=170& ;thread.id=240328&view=by_date_ascending&page=1" target="_blank">here</a> and <a href=" http://forums.ni.com/ni/board/message?board.id=170& ;message.id=289688&query.id=54349#M289688" target="_blank">here.</a>

labview >> check how many times button is pressed

by jeyanthi » Wed, 04 Jun 2008 16:10:06 GMT

thk u very much

Similar Threads

1. 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

2. run a subvi by pressing a button multiple times

3. 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 ?

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

5. 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.

6. reinitialize button after pressing

7. 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:
 

8. Event control of button press and hold