LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

button don't stop system or routine

Hi,


I have attached a vi. Try to put this logic in your code. It must work i think. Open for more suggestions.:)

 

asdfadsfasdfasdfasdf.PNG

 

Regards,


Nitzz

(Give Kudos to good Answers and Mark it as a Solution if your problem is Solved:smileywink:)

0 Kudos
Message 11 of 15
(431 Views)

One other thing to consider about this architecture:

 

The inner loop is executed when the dial control is != 1.  If the dial control remains on anything other than 1, when the inner Stop is pressed, the inner loop will execute again before the operator can press the 2nd stop.  I am in agreement with smercurio, one loop should be sufficient.

 

 

-----------------------------------------------------------------------------------------
Reese, (former CLAD, future CLD)

Some people call me the Space Cowboy!
Some call me the gangster of love.
Some people call me MoReese!
...I'm right here baby, right here, right here, right here at home
0 Kudos
Message 12 of 15
(425 Views)

Here is what I did to try and show you how I would do this project in a very quick manner. I added the state machine and tried to make it do what I think you had it doing. If you have questions anyone should be able to help with what I have done.

Tim
GHSP
0 Kudos
Message 13 of 15
(415 Views)

@NitzZ wrote:

I have attached a vi. Try to put this logic in your code. It must work i think. Open for more suggestions.:)


It is a really, really bad idea to bury event structures inside inner loops inside case structures. I recommend a single loop solution as suggested by others.

0 Kudos
Message 14 of 15
(406 Views)

Hi Christian,

 

Thanks for pointing it out.. I myself was confused with that code. Was in a hurry from my office to home, so posted it this way. Anyway i'll go through the other posts and try to understand the best way to do it.


Regards,

Nitzz 

0 Kudos
Message 15 of 15
(391 Views)