Jump to content

Close program ordely


Recommended Posts

Posted

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.

Posted

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.

Posted
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!

Posted

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.

Posted

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.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.