LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

timing in case structure

Solved!
Go to solution

well try it with the way questionmarker has given ,

put your whole code (without while loop) inside the boolean - value change event and see.

I can explain it more clearly but i want you to learn and do it yourself.

Happy on discussing........

0 Kudos
Message 11 of 18
(1,223 Views)

Fixed.

/Y

 

Untitled1.png

G# - Award winning reference based OOP for LV, for free! - Qestit VIPM GitHub

Qestit Systems
Certified-LabVIEW-Developer
0 Kudos
Message 12 of 18
(1,218 Views)

is this what you mean?

0 Kudos
Message 13 of 18
(1,211 Views)

@ Yamaeda

 

i think the question is not about doing the things rather what is wrong in the attempt................

please continue the discussion till the person is satisfied.

Thanks.................

0 Kudos
Message 14 of 18
(1,193 Views)

give him a fish or teach him how to fish...

 

To answer the question:

"i want different reactions, if boolean true, wait 5 seconds and execute, if false, then reset immediately, whats hard on that ?"

Absolutely nothing is hard on that. The Event Structure clearly is what you want to use; adjust it to your needs. I posted you a functional sample code, all you have to add is a case structure within with and without timer.It will work fine, though its not the best solution (try what happens if the user clicks faster than each 5 sec after you added your delay)

Besides; as you used the words execute and reset, I would reccomend have a look at queued step engines / queued state machine, maybe these design paterns may be useful for you.

 

I hope you can solve your problem with the hints given in this thread, enjoy!

Message 15 of 18
(1,188 Views)

@Questionmarker yes, looks like am little rusty on loops, will try to practice more on that.

0 Kudos
Message 16 of 18
(1,167 Views)

thank you, @alok.p , will work harder on loops, and thanks more for insisting on doing it on my own.

Message 17 of 18
(1,166 Views)

B4S3M,

You are always welcomeSmiley Happy

0 Kudos
Message 18 of 18
(1,158 Views)