How to stop the 2 parallel loops
Hi all
I have a vi (see attached example) that can be closed in 2 ways:
(1) user has pressed a button 'Quit' (with a LATCH action) on the GUI.
(2) the user tries to close the cover by pressing the Red "X" in the upper right.
The vi contains 2 parallel loops: a main loop that contains the actual code and a 2nd loop containing a stop of vi events.
The problem is, while the "narrow Panel?" event works very well and finished the 2 loops, isn't the event "value change.
Then, when I press the button Exit the vi does not stop.
Any good idea how should I apply it?
From my experience, a ValueChange event is not raised when you write to a local variable. I see two quick options:
You could write the value by using the Value property node (Signaling) (which raises the ValueChange event).
Or you could simplify things a bit and just use a local variable. I prefer this option. See attachment.
Tags: NI Software
Similar Questions
-
Control of the event: how to stop the race while loop within a structure of the event
Hello
I have some problems with control of a while loop inside a structure of the event (see annex VI).
I have 3 buttons (the "Start measurement, stop, exit the program"). When a measure is running, it should be possible to stop the measure by clicking on "Stop the measure", but it does not work.
Someone at - it an idea?
Thank you very much and best regards,
Michael
Hi Michael,
create a process parallel to your measurement. You can use the design model "producer/consumer with vents. You'll find it with «File-> new...» ».
Another possibility would be to remove the "lock frontpanel" sign, in the case of event start measurement.
Mike
-
How to stop the timeline loop (where the loop is not activated)
Hello
How to stop the chronology of looping/jump at the beginning of the timeline automatically when the playhead reaches the end of the edition / the end of the timeline please? The loopback feature is disabled. Its really frustrating when you look at the video game back, and when it reaches the end, he always goes early in the Cup again. Any help would be greatly appreciated. Thanks Tatjana
Thank you! I fixed it. Its automatic scrolling of the playback head.
-
How to stop the VI and a Sub VI together
Hi, in my application, I have a vi with a state machine with a loop of event handler. One of the events in my loop of event handler is out who runs the State of the output of my state machine. I also have an under vi outside my statemachine.
The problem:
1. at the exit of pressing my Vi does not stop.
Reason: my sub vi is still running.
Need solution : How tp stop the two loops together using the exit button.
StateMachine P.S:1.My is inside a while loop and while loop runs inside my sub vi also.
2. both the loops are parallel, since I'm on queues in it.
2. both the loops are parallel, since I'm on queues in it.
There are many ways, depending on your architecture.
Can pass you a message from out of your event loop to your another loop on the queue?
Another way is to use a global Boolean variable 'Stop' and use it in your second loop exit condition. Set it in the event loop when you want to stop the program.
The producer consumer example stops the second loop by closing the queue during the first loop stops and then to capture the error when the second loop trying to read the queue.
-
How to stop the remote control to the setting
How to stop the remote control to the setting
Disable the settings > general > accessibility > voiceover.
-
How to stop the music in the iOS download
How to stop the music in the iOS download songs? I accidentally clicked (stupidly) songs to download all the purchased. It will take some time and fill out my iPhone with music. I tried restarting and that did not help. It is also a priority on updating apps from the App store. I use the latest version 9.3.2 iOS iPhone 6.
Thank you
I will try to put the device in Airplane Mode, then signature of the iTunes and the App Store. Then try to disable airplane Mode. While you are not connected to the iTunes Store, you should not try to download on the phone once you turn it off airplane mode.
-
How to stop the new ads on Facebook
I get very annoyed by ads to where they are on the web so I use an add-on called 'Adblock Plus' which uses its database to block known ads and you can even block yourself!
With 'Adblock Plus Adblock Plus ' installed, you can block all advertising photo:
1. right click on the announcement of photo that you want to get rid
2. in the menu, click the option that says: ' Adblock Plus: block image... "(it is usually at the bottom of the menu)
3. when the pop up box appears, simply click 'Add filter' and advertising will disappear before your eyes!
If this was the answer you are looking for, please click 'Resolved' - thank you.
-
How to stop the shortcut ctrl-alt-s
How to stop the shortcut ctrl-alt-s bringing HP info? I use this shortcut elsewhere.
Here it is:
-
How to stop the Animations of Chrome
How to stop the animations in Chrome? We're wasting resources and slow down the user interface, especially when the user interface is already slow due to the nature of Firefox non-multitraitement. It is like throwing cement on a turtle.
The animation of the tab bar has a pref browser.tabs.animate related to this and can be set to false.
-
How to stop the Firefox update page to load whenever I run the FF 3.6.16 application
How to stop the Firefox update page to load whenever I run the application FF 3.6.16. I use it on an iMac G5 ALS.
See the following for a few suggestions:
- Firefox has just updated tab will appear whenever you launch Firefox
- How to set homepage - Firefox supports several home pages separated by ' |' symbol
- http://KB.mozillazine.org/Preferences_not_saved
-
How to stop the dashboard at the bottom of the screen in endangered?
How to stop the dashboard to disappear the bottom of Safari. It did not happen, but I installed iCapitan.
Dashboard or the Dock? If you mean that the docking menu Apple > System Preferences > Dock > automatically hide / show Dock.
-
How to stop the log in page and continue straight on the desktop at boot?
Original title: desktop
How to stop the newspaper in stright page and go to the desktop page when starting
Hi Ms.HarleyChic,
Windows operating system you are using?
If you use Windows 7, try the steps in the following article and check if this can help:
-
How to stop the red symbol to appear when I use the key question mark in my e-mail program.
HI Julie Delany.
1. for how long are you facing this problem?
2. is there any changes made prior to this issue?
3. may I know what mail client do you use?
Disable the function key (lock) and then check
-
How to stop the "Microsoft" folder opens at startup
Whenever I start my computer, "C:\Program Files\Microsoft" opens. I went through each item, start nothing leading to this path. (msconfig, registry, and "Startup" in "Programs" folder.) Anyone know how to stop the start to the top of the file?
You are really the way strong, but as long you are looking at the registry "Run" keys, make sure that the names of path for various startup items are surrounded by double quotes.
I can find no documentation final for this - and there is certainly some entries in my key Run that have spaces in them, but are not surrounded by double quotes - but in general, Windows behaves better if you either do not use characters such as spaces or surround the path with quotation marks name.
For example:
"C:\Program Files\Fichiers Files\Adobe\ARM\1.0\AdobeARM.exe"
Because registry Analyzer seems to know the space in Program Files, and given your statement that the problem started when you installed Office, I suggest looking for an entry that starts C:\Program Files\Microsoft Office\Office14\
If you find such an entry without quotes, modify to add and see if the problem goes away.
In the future, Autoruns is an easier way to find the startup entries... and it shows many places more than just two Run keys you watched.
-
NOTEBOOK: HOW TO STOP THE EMBEDDED "UNTITLED" WORD ON PAGE I USE
HOW TO REMOVE THE EMBEDDED "UNTITLED" WORD OF THE PAGE WHICH SHOULD BE PRINTED... Remember - this is a public forum so never post private information such as numbers of mail or telephone!
Ideas:
- You have problems with programs
- Error messages
- Recent changes to your computer
- What you have already tried to solve the problem
HOW TO STOP THE EMBEDDED "UNTITLED" WORD ON PAGE I USE
Go to file, Page Setup and remove header and footer text.
"jimmcanany" wrote in the new message: * e-mail address is removed from the privacy... *
HOW TO REMOVE THE EMBEDDED "UNTITLED" WORD OF THE PAGE WHICH SHOULD BE PRINTED... Remember - this is a public forum so never post private information such as numbers of mail or telephone!
Ideas:
* You have problems with programs
* Error messages
* These recent changes made to your computer
* What you have already tried to solve the problem, HOW can I STOP THE WORD EMBEDDED 'UNTITLED' of BEING PRINTED on the PAGE that I USE
Maybe you are looking for
-
Under Tools settings, remember passwords, there exception to remember do not sign of netflix in, but every time I come back, even if I closed and reopened firefox, it connects me always. I unchecked remember passwords nothing helps. However, netflix
-
WiFi link for printer EPSON-750 does not work
WiFi link for printer EPSON-750 does not work. In spite of reset the WiFi on the printer and reset the EPSON 750 as default printer on the IMac, the connection between the iMac and the printer does not work
-
As Microsoft no longer stand Windows XP:
Is it now OK to load a disk of Windows XP (Home or Pro) on multiple machines? Thank you! ~ ! Charles
-
Windows can't open add printer
When I try to add a printer I get this message: Windows can't open add printer.O / s: Vista premium 32-bit.Computer: Dell inspiron 1720How to solve this problem?