11-06-2012 07:31 AM
Hello,
i am looking for logic about how to make start/reset switch.
in my case i have made one switch name start by pressing that one can start operation ,now i want to make same switch for reset means during one execution one can reset the operation any time.
means i have to design one switch which gives two function simentaniously that start and reset.
here in attachment i attach simple program in that i want that i can reset my operation any time ,and i can stop execution at any time.
please help me...
thank you.
Solved! Go to Solution.
11-06-2012 07:41 AM
To put it simply, you need to rearchitect. You should not have a test or sequence running inside of the event structure. You should have another loop that runs a state machine or the like and send commands to it using a queue. You can have a Start, Stop, and Reset commands.
11-06-2012 08:02 AM
thank you for reply,
can you please expalin me step by step.as i m first time dealing with event case.
what kind of changes i need to do in order to have start/reset and stop button,which i can execute at any time during running vi.
thank you very much.
11-07-2012 02:23 AM
Hello,
I made some cahnges in my vi but still i am not able to pause my execution in middle or any time.
will you please guide me that waht kind of cahnges i need to do in my vi.
thank you very much in advance.
11-07-2012 02:33 AM
It is healthier to use Latest version of the software but atleast while posting for queries please post it in an older version (2009).
11-07-2012 03:37 AM - edited 11-07-2012 03:56 AM
hello,
here i post in 2009 version,i want to make one pause button in that so i can pause my execution at any time when i want.
or can it possible to have reset button in this so when ever i press reset then my program will start from begining even in middle of execution if i press reset then at a time its execute reset command.
thank you very much in advance.
11-07-2012 04:28 AM
Let you start with fresh.
1. File-> New
2. From Template -> Design Pattern -> ProducerConsumerEvents
3. Add Run & Pause cases in Producer
4. Add 'State 1,2,3,4 and stop run cases in consumer.
5. Change the Mechanical Action property of the 'Pause' control
For this you need to know about 'State Machine Concept'
Regards,
Yogesh Redemptor
11-07-2012 05:36 AM
Thank you very much yogesh,
i will learn labview and now i ll concentrate on this concept.
thanks again for your help.
11-09-2012 02:53 AM
hello,
here i am attaching my vi.
can you please tell me that how can i make pause and reset button on it so user can perform that operation at any time.
Thank you very much.
11-09-2012 07:05 AM
Guide me please..