11-18-2008 03:26 PM
Hi Guys , Just wondering how to add a stop button to reset my program without exiting.
I have 3 buttons , 1-Start 2-Pause(it pauses the data collected but once i hit start again , it will continue on the same graph and same output file) 3-Exit (this exit the whole program) .
How can I add a stop(more likely as reset) button to collect a new data without exiting the program ?
I know it is something to do with the inner loop.
Thank you
11-18-2008 03:48 PM
The way you programmed things is not very scalable as you discovered. WIth the current design, you would need to add another while loop on the outside that restarts the bulk of the code. I would not recommend that!
You should be able to do the same thing (and more) with 20% of the code using a simple state machine. Place the user interaction (plot visibility, disabled, menu actuivation etc.) in a seperate loop containing an events structure.
11-23-2008 09:43 PM
I connot change every thing now , time overloaded , i need just Stop it and do reset it wihout exiting , that's all.
11-23-2008 11:24 PM
kmous wrote:I connot change every thing now , time overloaded , i need just Stop it and do reset it wihout exiting , that's all.
My first paragraph above answerd that. Did you try?
01-10-2009 01:33 PM
Ray here are the missing VI's.
Thank you
01-10-2009 03:03 PM
Thnaks kmous,
I'm looking at your VI now. Sorry for such a long delay. Been x-tremly busy..
RayR
01-10-2009 03:13 PM
01-10-2009 04:10 PM - edited 01-10-2009 04:12 PM
kmous,
I'll have something for you tomorrow morning.
I need to substantially modify the architecture to implement what you want.
Thanks Cory . Yes, I'm the same Ray.. 😉 I didn't see that other post until you pointed it out. I'll look at it in more details later.
RayR
01-11-2009 09:04 AM
Hi Ray , Thank you , i am looking at Spiro , i might do something 🙂 who knows 🙂
Thx Cory for the help also.
01-11-2009 01:36 PM
Hi kmous,
Have a look at the attached VI's (inside zip file).
It is untested as I do not have a DAQ setup prepared at this time.
Run it and try it out.. I didn't test the functionality (other than the VI is not broken 😉 ).
Look at the architecture, it is one that will be useful for you. Also, it may be a good idea to use a project for you files..
I need to tend to other things, but I will re-visit the forum later today. I will try to visit the forum regularly.. 😉
Take care,
RayR