04-27-2007 12:40 AM
04-27-2007 02:31 AM
Harsha,
First clarify me if you have put your Event Structure inside a while loop ?
If not, read the online help about them & start to code accordingly.
See the attached links below for more on Event Structures.
http://zone.ni.com/devzone/cda/tut/p/id/3331
http://zone.ni.com/reference/en-XX/help/371361B-01/lvconcepts/using_events_in_labview/
Moreover, you might have set the button in Latch mechanical action. So, once it is read by the code, it gets reset, which is its usual behaviour. Rt click on the button -->> Mechanical Action, choose 'Switch Until Released' action. This way the value of the boolean will stay there till the user changes it by clicking again, and in turn, the process will continue to repeat.
Ask here if you have got more doubts.
04-27-2007 03:53 AM
04-27-2007 01:48 PM
04-30-2007 01:21 AM
i have already put event structure in while loop only.
my problem is once an button(mechanical action:switch until pressed) is clicked, i am doing some action which runs out of the event structure and also i should run in the same event structure executed before, until the button action is released. i already have a different action for "Time out" event case, where i could use value signalling to change the value of the button.
hence the problem.
04-30-2007 02:00 AM
04-30-2007 02:25 AM
Hi
here is an attached example showing my problem.
after user clicks on any of these (UP,DOWN,LEFT,RIGHT),i am displaying the picture2 with the new position by switching to "showpic" state as in example and again i should execute the same event structure as executed before,if user is still holding the same button i have to show picture2's new position.
04-30-2007 03:30 AM
04-30-2007 04:36 AM