ASalcedo Posted January 26, 2017 Report Share Posted January 26, 2017 Hello to all. I would like to know how I can close my program ordely. I mean... I have 4 whiles in my program so when user clicks a "stop" botton close ordely: while 1 and when it is finished then close while 2 then close while 3.... How can I do that just with a stop botton? Thanks a lot. Quote Link to comment
hooovahh Posted January 26, 2017 Report Share Posted January 26, 2017 Need to see the code, but I suspect a few local variables, or some communication scheme between loops would work. Have you looked into Channel Wires? This could also be used to facilitate communication between loops. Quote Link to comment
ASalcedo Posted January 27, 2017 Author Report Share Posted January 27, 2017 18 hours ago, hooovahh said: Need to see the code, but I suspect a few local variables, or some communication scheme between loops would work. Have you looked into Channel Wires? This could also be used to facilitate communication between loops. That is new in Labview 2016 right? I am gonna have a look. Thanks! Quote Link to comment
hooovahh Posted January 27, 2017 Report Share Posted January 27, 2017 Yes Channel Wires existed in a semi-beta state in 2015 but are official in 2016. Go to Help >> Find Examples and you'll find lots of examples showing the different types of Channel Wires and explaining how they can be used for communication between loops. Quote Link to comment
dterry Posted January 27, 2017 Report Share Posted January 27, 2017 Just wanted to point out the excellent NI KB on this subject here. It covers channel wires, locals, queues, notifiers and more. I personally use notifiers (unless I have an event structure) and have never had an issue with them. Quote Link to comment
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.