10-06-2009 03:48 AM
Hello,
Can you help me to find solution for the following problem?
In the attached program, I have 3 buttons - START, STOP and PAUSE and numeric indicator.
I need that when I press START, the data written in numeric indiator, incremented until I
press STOP button to stop the process or until I press PAUSE to pause the process.
How can I organize this? I created an event - START button mouse up, and inserted an infinite loop in it.
Is there a way to stop this event or pause it?
Thanks
10-06-2009 03:57 AM
10-06-2009 04:09 AM
Hi Tar,
now I looked into your vi.
Never, never ever, use UI loops without a timeout. They are just hogging the CPU...
See attachment for simple example (needs some more fine tuning). Read the white papers & context help for the event structure and look through the examples, that come with LabView!
10-06-2009 04:10 AM
Hello,
Here you go
10-06-2009 04:11 AM
10-06-2009 04:13 AM - edited 10-06-2009 04:16 AM
Hi Tar,
then you should look into StateMachines. There should be an example too!
And you should try to ask what you want in the first place... ![]()
@ReG64:
It's definitely nicer to use an enum instead of simple numeric constants!
@Tar:
Use ReG64s example to start building a state machine!
10-06-2009 04:24 AM
@GerdW:
Yes, it simplifies the understanding