While the loop does not stop until 2 more clicks

I must say that I'm really not familiar with LV, but Im learning.

So why is that after I clicked on low stop, I had to click my OK button twice, then my program stopped. Why can't it stop immediately?

Furthermore, if I want to do some of the dice to table, which wire do I missed?

Thank you!

Hi RawtoLV,

You have a while loop in loop a while. When you run the other while the loop stops when you press the stop button, the inner circle while loop always executes. Since your OK button use latch release, what I noticed is that when you pressed the OK button, it quickly into position from true to false, which never stopped during the operation of loop (maybe because of the wait). Can I ask what are you actually doing with the structure of sequence?

I would suggest using the event structure in place (http://zone.ni.com/reference/en-XX/help/371361K-01/glang/event_structure/):

Here are some information about the structure of the event:

http://www.NI.com/white-paper/3331/en/

http://www.YouTube.com/watch?v=8eO64fo3Pho

Warm greetings,

Lennard.C

Tags: NI Software

Similar Questions

  • While the loop does not stop when the two values are equal using equal to comparitor

    Hello world

    I have a really, really strange bug. I have a LabVIEW VI that change a chain on a power supply. I have a start and a stop voltage and use a while loop to increment the device. For example if I want to scan from 1, 2V to 2.2 V in 0.2 V incremements, the program will end when "The current tension" = "stop the tension." And it works very well!

    However, when I start - 3 V and want to stop to say-0.8 (new in 0.2 V incremements) the program does not stop when "The current tension" = "stop the tension." I checked with the probe close to what should be the end of the race and - 0.8 V goes both of the entries ' equal to ' comaprison operator, but that his can't trigger a real result.

    It's very strange for me. Espeically as if I'm going - 0.8 V to-2 V but decrement of-0.2 V, the program stops correctly!

    I am very confused!

    See you soon!

    Search on: comparison of floating-point numbers

    The second thread is particularly relevant. This discussion was 2009, but you can find that the same "bug" being reported to enter the end of the 1980s.

    Mike...

  • While the loop does not stop within a structure of business

    Hi all

    I have a business structure that works an engine to a certain PWM when my metal detector does not give an amount greater than the threshold that is ' false '. The motor is controlled by a PI controller so a while loop is used inside the false state. When my metal detector exceeds the threshold I want the "true state" to perform but which does not occur. the entire program is a while loop which aims essentially to maintain the operation of the metal detector. How can I make the State of the switch works.

    Once you get the code is trapped inside the inside while loop, it will never be a Boolean wire change because change is outside. All you need is a loop that contains a structure of housing. Run your program with execution highlighting to get a better understanding of the flow of data.

  • the loop does not stop until an exact number

    When I get the data via the shared variable table, the moment where I click on the 'Ok' button it opens 25 sheet of my workbook

    what I want, it's if my table has just 5 full rows of data, the moment I click 'Ok', only 5 sheet of my workbook opens.

    I think it's indexing related issue.if could someone help

    Thank you


  • SR400 while the loop does not work

    Hello

    I'm using LabVIEW for control SR400 through a GPIB card.

    I use SR400 to count the number of signal in a second, wait 0.05 s, then again count the signal once, wait 0.05 s once again, and so on.

    However, the while loop didn't iterate. When I started the program, it is only once.

    In execution of highlight mode, when an iteration is finished, he waited a long period starting the next. In normal mode, it doesn't have to iterate.

    Also when I clicked the stop button, it's been clicked. However when I wrote a very simple program, the stop button worked normally.

    In any case the button issue is not very important. I don't care that the program iterates forever or not. I just want to iterate.

    I searched the jury and had not could not any related problem.

    Is it better to attach my VI? The VI is in my computer lab.

    Thank you very much!

    This code just feels bad.

    (No real management mistakes, deep, stacked sequences FOR lines that are wired to iterate through only once, controls on the right and right to left, wiring weird code on average the last 10 items (Hint: means ptbypt with a length of 10 sample he would!).) If you want to use the wire of the error, the sequences would not even necessary)

    If the stop button does not reset, it means that the iteration of the loop does not terminate. It can fill in only if the two structures of the sequence ends.

    Have you tried running in execution, emphasizing fashion while looking at the diagram? Probably one of the communications is at a standstill. For example, the instrument sends really 6 bytes at the end? When you set the overall timeout and what is it?

  • In the attached VI why looping force the type of data while the other does not?

    In the attached VI why looping force the type of data while the other does not?

    I'm guessing that you have created the Enum on the front panel.  If you right click and create an indicator, it corresponds to the type and be an enum.  LabVIEW represents enums as U16, but because the types are not the same (for example, your enum has 3 values, but a U16's 65 536 values), LabVIEW automatically converts value (or converts) the smallest representation (enum) in the largest value (U16).

  • After updating my iPhone 6 (9.3.4) the WiFi signal becomes very low! I did everything, but the problem does not stop! I don't a not update my other devices & their very good WiFi signals. Please help me solve this terrible problem...

    After updating my iPhone 6 (9.3.4) the WiFi signal becomes very low! I did everything, but the problem does not stop! I don't a not update my other devices & their very good WiFi signals. Please help me solve this terrible problem...

    Here's a tip for the user on the problems of Wi - Fi. Suggest from the top and bottom. Maybe one of them will help you.

    (1) restart you device.

    (2) resetting the network settings: settings > general > reset > reset network settings. Join the network again.

    (3) reboot router/Modem: unplug power for 2 minutes and reconnect. Update the Firmware on the router (support Web site of the manufacturer for a new FW check). Also try different bands (2.4 GHz and 5 GHz) and different bandwidths (recommended for 2.4 to 20 MHz bandwidth). Channels 1, 6 or 11 are recommended for 2.4 band.

    (4) change of Google DNS: settings > Wi - Fi > click the network, delete all the numbers under DNS and enter 8.8.8.8 or otherwise 8.8.4.4

    (5) disable the prioritization of device on the router if this feature is available. Also turn off all apps to VPN and retest the Wi - Fi.

    (6) determine if other wireless network devices work well (other iOS devices, Mac, PC).

    (7) try the device on another network, i.e., neighbors, the public coffee house, etc.

    (8) backup and restore the device using iTunes. Try to restore as New first and test it. If ok try to restore the backup (the backup may be corrupted).

    https://support.Apple.com/en-us/HT201252

    (9) go to the Apple store for the evaluation of the material. The Wi - Fi chip or the antenna could be faulty.

    Council: https://discussions.apple.com/docs/DOC-9892

  • Firefox seems to have recently developed seemingly random usually do not remember bookmarks, particularly when the pc does not stop correctly. Thank you

    Firefox seems to have recently developed seemingly random usually do not remember bookmarks, particularly when the pc does not stop correctly. Thank you

    If Firefox detects that the places.sqlite database is corrupted then Firefox can create a new database file and import bookmarks from a JSON backup that does not contain the most recent bookmarks (a new JSON backup is created when you run Firefox for the first time on a day), then you may lose the bookmarks in such a case.

    You can check for problems with the database places.sqlite file in the Firefox profile folder.

  • Tecra M3-264: the fan does not stop

    Hello

    I have a labtop Toshiba Tecra M3 264, it's wonderful BUT,.
    The fan does not stop and this sound is a bit noisy in comparison with the other all I have.

    Is this normal in this model or should I take it to the service?

    Hello

    It is normal activity on new laptops cooling fan is very noticeable on older models. I recommend you to check what happen if you change the settings of cooling method in power management.

    By the way: allow the unit to take a breath. Make sure that the ventilation openings are free and that there is nothing that can stop the flow of air. If the vents are dirty and full of dust, it can also be responsible for cooling fans runs often and with a higher speed.

    Good bye

  • Windows xp does not stop running, if you click on < close > to stop computer. How can I

    My Windows xp does not stop running, although I clicked on to stop to the bottom of the computer.

    I tried , but does not work.

    How can I recover the system quite the same for the last available time.

    Thank you

    Hello

    1. don't try to start the System File Checker?

    If not, then I suggest you to run that and then try to do system restore and check.

    Let us know the results.

  • Satellite L40 - the Wireless does not connect until svchost has been disabled

    Hello.

    I have a Satellite L40 without BONES, I bought and I installed a XP/SP3. I have a small problem when I connect to my wireless NET. It does not connect until I open the Task Manager and remove one of the two svchost process open with the name 'network service '.

    Someone has an idea of why this never happens and how to fix it (I can opperate thereafter, but is a little annoying to have to do each time).

    Thank you.

    Tried to reinstall the wlan drivers and utilities already? When you do so, you should check the download pages of Toshiba for the latest version of the driver.

    Is the WinXP installation you have performed, had integrated SP3 or SP2? Because I would like to know if wlan worked with SP2.

  • Create a new folder or change the name of a folder on the desktop does not display until I use the refresh command

    After changing the name of a folder or a file on the desktop or by creating a new folder (and then hit enter), the folder or the text file doesn't change - until I use the Refresh command. Then, the text shows correctly and the movements of folder or a file in a place open to the top left of the screen. Before using "Refresh" the folder or the file will not open. When I save a file on the desktop is not visible until the 'Refresh' is used. Sometimes, but not always the same behavior occurs in other folders as well.  I use Win XP SP3. Can someone please shed some light on this?

    Hello

    ·        Since when are you facing this problem?

    ·        Remember to make changes to the system?

    ·

    Method 1:

    I suggest you check in safe mode. Follow the steps mentioned below.

    a. restart the computer and keep tapping F8 until you reach the start menu.

    b. click on safe mode from the list and press ENTER.

    Check if the problem persists.

    Method 2:

    I suggest you to scan your system for viruses and malware using a care Microsoft and Microsoft security essentials. Check the links below.

    http://OneCare.live.com/site/en-us/default.htm

    http://www.Microsoft.com/security_essentials/

    Method 3:

    Create a new user account and check if the problem persists.

    How to create and configure user accounts in Windows XP

    http://support.Microsoft.com/kb/279783

    Thanks and regards.

    Thahaseena M
    Microsoft Answers Support Engineer.
    Visit ourMicrosoft answers feedback Forum and let us know what you think.

  • LabVIEW 2012 while the structure of the event does not stop

    I am LabVIEW 2012.

    An example of a while loop with the structure of the event inside can not be stopped with the stop key, Boolean.  Something wrong?

    Please see the attached VI.

    Thank you.

    Yes, something is wrong. You must add one for the event in order to detect a change in value on the stop button.

    The thing is now your structure for the event rest waiting for one of the event which she handles and ight now, it handles the "close panel" event, the 'timeout' event is too manipulated, but since you do not have anything related to the terminal of timeout (top left of the structure of the event) the timeout is - 1. So, when you run the VI the while loop is stuck in the first iteration and is waiting for a sign nearby, the stop button will only take into account after that same structure intercepts an event; I think it's because LabVIEW will execute the code related to the Terminal stop of the while until after the rest of the code that he has completed execution of the loop.

    Hope this helps

  • The application does not close until force them to leave

    Hello world!

    I have a problem a few weeks ago: some applications such as preview, or free Office get frozen and I can't close, until I have use the activity monitor, click force quit. It does not help is to go to the icon in the Dock and click force quit. Once again, I open the program, sometimes it works for a while and then again all.

    I tried to restart the Mac, but it won't change anything.

    What should I do?

    Thanks for the help,

    Rezka

    Have you tried to copy the files on your desktop .plist then apps rebuild preferences?

  • Typing or choose the page address in the address bar does not load until a page click on 'green arrow '.

    For some reason, Firefox stopped responding to the ENTRY in the address bar. Also choose a drop-down list page history does not to load.
    In short, to open a page I have to choose or type the address and then click the green arrow. Why? He was always sufficient to press ENTER or select with the mouse.

    This problem may be caused by an extension that is not working properly.

    Start Firefox in Firefox to solve the issues in Safe Mode to check if one of the extensions of the origin of the problem (switch to the DEFAULT theme: Firefox (Tools) > Add-ons > appearance/themes).

Maybe you are looking for

  • Is there anyway to disable the zoom feature?

    zoom (accidental) continuous adjustments b/c my fingers hit the mouse pad is annoying.

  • ThinkPad 10 - Windows 10 company-screen touch does not?

    Hello I have a Thinkpad 10 (type 20E30015MSI) with operating system Windows 10 Enterprise. I can't touch screen not working at all. I tried the BIOS/UEFI update with the latest version, I got on the lenovo support site. I have a missing driver (Wacom

  • Update Windows 7, custom settings for windows desktop

    Just got new pc Saturday, updates today, now pc hangs after connecting with a window that says "Implementation of the custom settings for windows desktop update" cannot do anything else but reboot and get the same results.

  • Windows vista and windows 7 is a nightmare

    I bought 2 new computers with vista installed had no choice about the operating system, I wanted to xp pro and discovered vista was so slow to load, I decided to switch to win 7 after all the hype on this topic and found that it was just as bad with

  • = 1.0 Windows experience index

    My windows experience index is 1.0. It's so disappointing maybe it's because my graphics/video driver? What do you think? I went down my longs E5-411 of win8.1 for 32-bit win7 and it not there no video driver available online.