LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

stop without exit

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

 

LV 8.2
0 Kudos
Message 1 of 51
(4,539 Views)

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.

 

  • All your property nodes need to be called only when things change, and not with every iteration of the loop
  • the use if value(sgnl) properties has no purpose, since you don't have an event structure.
  • Use an array of booleans for the visibility control.
  • Your use of "dynamic data" intermediates just to index out some elements seems misguided. Again an array indicator would simplify things eight-fold.
  • ....

 

 

Message 2 of 51
(4,529 Views)

I connot change every thing now , time overloaded , i need just Stop it and do reset it wihout exiting , that's all.

 

LV 8.2
0 Kudos
Message 3 of 51
(4,475 Views)

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?

Message 4 of 51
(4,461 Views)

Ray here are the missing VI's.

Thank you

LV 8.2
Download All
0 Kudos
Message 5 of 51
(4,329 Views)

Thnaks kmous,

 

I'm looking at your VI now.  Sorry for such a long delay.  Been x-tremly busy..

 

RayR

0 Kudos
Message 6 of 51
(4,319 Views)

JoeLabVIEW, if you are the same Ray as this post,

you may want to have a look at this too

Cory K
Message 7 of 51
(4,315 Views)

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

Message Edited by JoeLabView on 01-10-2009 05:12 PM
0 Kudos
Message 8 of 51
(4,307 Views)

Hi Ray , Thank you , i am looking at Spiro , i might do something 🙂 who knows 🙂

Thx Cory for the help also.

LV 8.2
0 Kudos
Message 9 of 51
(4,276 Views)

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

Message 10 of 51
(4,259 Views)