Dormidont Posted April 28, 2006 Report Share Posted April 28, 2006 There is an easy sample: two buttons Start and Pause, and String Box. Event Structure has case Value Change for Start button. If Start button is pressed value in String Box increases each second (I used Loop Structure). After you have pressed Pause button loop execution pauses and waits until you press Pause button the second time. The problem is: event for Pause button is not handled until event handling for Start button has been finished Quote Link to comment
didierj Posted April 28, 2006 Report Share Posted April 28, 2006 If I read your mail correct, the "increasing loop" is inside the start event case. If so you have two possiblities: Either move your "increasing loop" outside the event-loop and communicate with notifiers or queues. Or, set the timeout of your event-structure to -1, Start-case sets it to e.g. 1000ms and pause/stop-case sets it back to -1. In the timeout-case increase your value by +1. (see example) Didier Download File:post-253-1146231692.vi Quote Link to comment
Dormidont Posted April 28, 2006 Author Report Share Posted April 28, 2006 If I read your mail correct, the "increasing loop" is inside the start event case. If so you have two possiblities:Either move your "increasing loop" outside the event-loop and communicate with notifiers or queues. Didier Could you please describe th way of using notifiers or queues in detail Quote Link to comment
hviewlabs Posted April 29, 2006 Report Share Posted April 29, 2006 Could you please describe th way of using notifiers or queues in detail First of all, this is definitely a wrong forum to post such questions Well, OK Nu vot tak, naprimer. Here is a simple event-driven state machine example. Of course, there exist simpler and more advanced patterns. Using car analogy the state machine pattern NI pushes as THE state machine will be a Ford Escort (that's for for US readers, Zaporozhets - for former Soviet Union residents). The attached one is then a Chevrolet Malibu maybe. For the Rolls-Royce of state machines see labhsm.com First of all, this is definitely a wrong forum to post such questions Well, OK Nu vot tak, naprimer. Here is a simple event-driven state machine example. Of course, there exist simpler and more advanced patterns. Using car analogy the state machine pattern NI pushes as THE state machine will be a Ford Escort (that's for for US readers, Zaporozhets - for former Soviet Union residents). The attached one is then a Chevrolet Malibu maybe. For the Rolls-Royce of state machines see labhsm.com Sorry, can't upload anything from my computer for some reason right now. Not even to my web site with Frontpage. Gotta talk to the ISP OK here it is: http://labhsm.com/Simple_event_driven_SM.zip Quote Link to comment
AMSLLC Posted May 2, 2006 Report Share Posted May 2, 2006 The problem is: event for Pause button is not handled until event handling for Start button has been finished Yes well just put a condition to stop the execution of the start event activities while they are executing. That is inside the start event activities be sure you also check for some sort of exit or termination condition (in this case not event triggered but checking a flag of some kind). Quote Link to comment
hviewlabs Posted May 7, 2006 Report Share Posted May 7, 2006 Here, let LAVA have all this traffic, not my site. Download File:post-1166-1147021095.zip Quote Link to comment
crelf Posted May 7, 2006 Report Share Posted May 7, 2006 Here, let LAVA have all this traffic, not my site. If you don't want the traffic, you might want to edit your original post and remove the link there. Quote Link to comment
hviewlabs Posted May 7, 2006 Report Share Posted May 7, 2006 If you don't want the traffic, you might want to edit your original post and remove the link there. Nah, it's not a big deal. However, editing previous posts - that's interesting! I can see the Edit button for my latest post, so, apparently I can edit it, but how can I edit my earlier posts? OK, here: this sentence was added after posting the above had been done: at that moment my 2 last posts had Edit button, but not the one where I posted the link! Quote Link to comment
Yair Posted May 7, 2006 Report Share Posted May 7, 2006 I can see the Edit button for my latest post, so, apparently I can edit it, but how can I edit my earlier posts? You need to be a premium member. Just follow the link in Chris's signature. Quote Link to comment
crelf Posted May 7, 2006 Report Share Posted May 7, 2006 Just follow the link in Chris's signature. Well put! Quote Link to comment
hviewlabs Posted May 8, 2006 Report Share Posted May 8, 2006 You need to be a premium member. Just follow the link in Chris's signature. Ok , I will consider that as soon as find a job. Quote Link to comment
Yair Posted May 8, 2006 Report Share Posted May 8, 2006 Ok , I will consider that as soon as find a job. Looks like you should post to this thread to show that being a CLA does not automatically mean you get a job. Quote Link to comment
crelf Posted May 8, 2006 Report Share Posted May 8, 2006 Looks like you should post to this thread to show that being a CLA does not automatically mean you get a job. I think that that thread already makes the point pretty clearly. Quote Link to comment
hviewlabs Posted May 8, 2006 Report Share Posted May 8, 2006 I think that that thread already makes the point pretty clearly. Agree. The certification helped me to find previous gigs. The main (negative) factor in my personal job search is not the posession/lack of certification but the xenophobic, cruel, exploitive, unfair and simply totally screwed up US immigration system, in which I and hundreds of thousands of other people are trapped now. (See immigrationvoice.org, for example, for shocking details that are unknown to the majority of Americans.) So, as Chris knows, I am on the world wide job search now and hope my CLA will help me. Quote Link to comment
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.