a starting after another while loop

I'm sorry, I'm new to labview, it's probably an easy question, but I didn't really even what to look for. I have two while loops next to each other, control of temperature (left) and the other pumps to control (right). I don't want to start the pumps until the temperature rises to the right value. The<= operator="" in="" the="" while="" loop="" on="" the="" left="" is="" what="" controls="" the="" heater="" in="" my="" system.="" i="" want="" the="" while="" loop="" on="" the="" right="" to="" start="" after="" the=""><= operator="" returns="" false="" for="" the="" very="" first="" time,="" but="" after="" that="" i="" want="" them="" to="" operate="" independently="" of="" each="" other,="" with="" both="" while="" loops="" running="" until="" they="" are="">


Tags: NI Software

Similar Questions

  • position in the property node is not updated in another while loop

    Hello

    I have a structure of the event in a while loop and I have a chart with 2 sliders on it. the chart is in the loop outside the structure of the event and it becomes a wave form when an event occurs.

    in a separate loop, I have 2 cursors cursor position property. I subtracted to get their distance. but when I move the sliders on the chart which is in the first, while the loop doesnot change the values given by the property nodes in the second loop

    is this something related to the structure of the event? don't needs real graphic to be updated all the time or is it ok if she becomes a waveform only on an event

    can someone please help

    Thanks in advance...

    The value of the variable "Stop 2"is in memory still "True" so on that a second (and resulting) running that your upper loop always ends after the first run.

    The display of "stop 2' LED is to be reset when you press the button"Get the waveform". making the False value.

    So reset the variable button after finishing two loops or before starting the two while loops.

    Tone

  • start stop multiple while loops

    I have a fairly large VI that works while several loops with the strutures case inside.

    I would like to be able to close and on all looped programmatically according to events. (complete cycle or cycle started)

    I need to store my data in a table, but whenever I turned off the while loop data I gathered is lost.

    It goes like this-measure analog voltage - put it in a digital indicator... now I want to put it in a table only once by my machine cycle.

    If the opeator push the reset button, the table is available for acquisition of report generation.

    Any help would be appreciated.

    Thank you

    It's here.

  • stop another WHILE loop

    I have two while loops running independently.

    The first has a Structure of the event that controls the STOP button for a user by clicking.

    The second series a bed to a port.

    When I get an error messages entering the serial port, I want to provoke the other WHILE loop stop.

    What is the best way to do it?

    Connect a case structure wire to the error and write to a signaling value property of the button stop in the case of error.

  • Portege R100 laptop computer does not start after a while without food

    Hello

    Well there is some time, I bought a beautiful used R100 - a laptop Toshiba in passing - but now, she has developed an annoying problem. Whenever it disconnect the laptop from the power supply for more than 2 hours about (don't know if this is not longer) I can't begin the R100, even if the battery indicator is green. After pressing the powerbutton the power led lights in green, and nothing happens. The "solution" to this problem is to give the R100 some time in this 'turned on' - State and after 15 minutes, I am able to start the computer (turn market again).

    I think that this could be a problem with a battery on the motherboard that is at its limits and needs time to gather enough power to start the computer.

    I hope you can help me identify the problem with my beloved laptop :)

    Yours,

    Tobias

    p.s. I have more or less need to identify the problem and some tips how to solve - the pleasure with the surgery will be from me :)

    p.p.s. Unlike the problem of the M400 further down, I've won if the beginning focused on the hard disk to Flash. In my case the R100 does not give a glance if it does not start. - And as a reference to the other post: "Hmm, I don't remember of the R100 fan not have it at all" * huggs its r100 * "."
    And I tried unplugging all the bits of the laptop and removed the battery, waited 15 minutes and tried to turn it on. the only way to obtain the departure of r100 is the method described above.

    You have an additional RAM installed?

    Maybe you need to re-seat, or it has a intermittent or heat associated with problem.

  • Why a while loop does not start in a flat sequence if I have another loop running in a different sequence of flat?

    Hi all

    Basically, I'm in the order of many device and regulation for that pourpose, I created a sequence of plate to do. Also, at times I have start the potentiostat measures I use too, which follows a sequence and I created a second flat sequence to do this. In a part of my experience, I want to follow the voltage and current of high voltage power supply that is located in the flat main sequence and also read the results I'm getting with the potentiostat simultaneously.

    In the main sequence, there is a constant bollean which triggers the beginning of the secondary sequence. In the framework after it contant Boolean, I have a while loop in which I read 2 analog inputs of the power supply high voltage with my USB-6218 for awhile every 100 m, my problem is that the Boolean constant actually starts the subsequence flat but when it reaches a while loop in which I continue to read the results of the potentiostat , for a reason that the operation does not start until the while loop in the main loop is not finished.

    I communicate with the software of the potentiostat through a driver made by the manufacturer.

    Is it possible to read analog inputs with USB DAQ and simultaneously read the results of the potentiostat?

    Thank you very much

    Without being able to see the code, can only speculate. My guess is that you have probably some data flow to the second loop that depends on the first loop finish.

  • [begineer] reboot a 'while' loop reading the serial port

    Hello! I read some data from a COM port. I want to read my like this "%d S. the unit will send data continuously and depending on when I push the button run in labview, it can start to read data from the middle (%d is a four-digit number). as: 23 S 15'

    "whenever the first character of my data is not of", I need to restart playback. I read the data in a while loop. so I need to stop the while loop. From what I found on the internet, I used a case, another while loop and shift registers.

    but in some way I'm stuck inside the while loop. My VI is attached. Thanks in advance and sorry if my code is a mess!

    PS: what should I do if the bytes I get to the port is variable? use bytes to the port?

    The device sends a character at the end of the line at the end of each message?  You are currently Setup to do this by activating the stop character (currently set to end of line/10/0xA).  If this is true, then simply set the bytes to be read on the VISA to read something rediculously high.  It will stop playback when it finds this termination character.  From there, you just have to check for the correct format.  If this isn't the right format, ignore him.  Otherwise make your recording.

    I managed to clean up your code a bit on this basis.

  • 2 while loops can work at the same time?

    I have two while loops in my program; We can read the data and the other does nothing until I hit stop on the first. I want the first and the second to run out of the time constraint, I have for it when I hit the Start button to always run. I use a DAQ and transfer data from one to another while loop. See the attached file.

    Main issues:

    How to tie the Start button?

    How to get the second loop to work with the first?

    Thank you

    Your problem is that the loops are dependent on the data.  If you want to run two loops at the same time, they cannot have wires linking one to the other.  Focus on the architecture of producer/consumer .  It uses queues to send data of a loop to the other.

  • Stopping at two simultaneously while loops in a sequence

    I'm under two loops while at the same time. A while loop is used to produce a square using the acquisition of data USB of NOR-6343 wave. The another while loop contains my main code. I make sure that my square wave while loop stops after the hand while the loop is over. I used the function "To highlight the Excution" to see if my code is excuting in order and the way I expected to and it seems to do, but when I hit the button stop the square wave while loop stops so that the main while loop always ends excuation. The main while loop takes a series of measures using the data acquisition Toolbox, so I need to make sure that the square wave is being emitted during the execution of the loop of mian.

    Currently to work around this problem, I wired a constant numberic (101) inside the large loop for a numberic out indicator. And I used a cheque codition "Equal" in the square wave while loop and set it so that this loop stops when he sees the value. This seems to work and made sure my square wave still series, while the main loop is excuting finishing. Even if it works, I want to know if there is a better way. Attached are a couple of screenshot of the loops.

    I vote for using a notification utility.  You must order the loop at the end.  Do a front panel indicator to stop a loop is not a good practice.

  • Updated entries on day of a Subvi with while loop

    Hi there guys! It's my first serious experience with LabVIEW, so the question may seem trivial to you, but it's not obvious to me how to solve this problem. So I do an installation that integrates a number of flow regulators, a temperature regulator, DAQ, some taps and a mass spectrometer basic tasks. All these must be automated using LabVIEW. I started by doing a VI for each separate task is going very well. Now I need to combine the latter in an experience of master VI, and of course I run into trouble.

    The problem is that I want of course to control this experiences with some selected buttons/dials/what is on the face before of the main VI. However, each of these VI runs a while loop in which fact acquisition of continuous/data communication / whatever. Of course, I want to change settings online. If I just naively tie them at the entrance to the Subvi these will be read only when the Subvi is started, not during each iteration of the while loop.

    I added a very basic example of the problem, so we are all on the same page. The main VI has a button, the State which should update something in the Subvi. However once the Subvi is started it takes control of the execution and the hand-VI seems to be ignored (appears to hang) even if the program has a lot of spare time to read the buttons and put on day of admission. What is the official solution for this kind of problem? My experience in programming that I prefer to keep the intact Subvi, so I can use it as a reusable standard library. Of course a similar question can requested the sub - VI output which will be updated only once the execution is completed (which is never during normal operation).

    PS. I'm using LABView 8.6 on XP

    The best way to set up a BT program must initialize first your settings, and then launch a while loop where you communicate/aquire data or whatever, then after the while loop is finished close and clean up your references.

    Inside the while loop, you can place your code in many of the screws and it is possible to run those in parallel, but I defenetly does not recommend the use of loops in slot face, especially without having to open the front panel or a stop test.

    If your code is completely executed up to your Sub - VI, the main.vi will wait for the sub - Vi ends before continuing the code.

  • Valve on / off substitute in while loop

    Hello

    I created a simple VI to change the valves at a specific time constant.

    Now, I want to replace the selection in this while loop (while the VI is running) with a perminant on or off, or disable the substitution. I'm not sure how to go about it. I created one another while loop associated with each digital output line.

    Any advice?

    My configuration:

    Chassis OR cDAQ-9174

    NI 9472 24V sourcing module.


  • VISA problem read: after a while the device stops responding

    Hello world

    I am faced with a really strange bug than anything I've done him could not solve. I have a camera that I made myself communicating with LabVIEW by a RS232-> USB converter. Everything seems to be ok, but all of a sudden (it can last 30, 45 or 50 seconds), judgments of LabVIEW and data reception, as well as other buttons are no more, not even the stop button. I have to remove the usb converter to get the buttons answer once again, and then I got the error:

    Other programs that opens this same terminal can communicate with my camera for hours without errors. I have of course the session open and close only after the while loop. Can someone help me?

    How fast your VI reads the com port?... could he try to read too fast?... Add a waiting in your VI and see if that helps.

    Just a thought...

    Josh

  • Reference to a while loop

    If you open references to a LabVIEW object, such as an application,
    control or VI, close the references using the LV object close
    Datum feature. Otherwise, the reference remains in memory even
    Although the VI is no longer use it.

    This quote is from the development Guide of NOR. I realized that I used for references without closing them. Even if I never met no problems, I decided to add a close reference to my programs. My question is, should I put the reference and close reference as well live in a while loop and open/close each iteration or should I use reference open before a while loop and close after the while loop, in this way, I'll have to use a shift register to maintain the reference. Or if there are other options. Can someone give some advice?

    Thanks in advance,

    Wang Guangde

    Open and close your references outside the loop (i.e. open the ref before the loop and close it once the finished loop execution).  Repeatedly opening and closing the same reference inside a while loop is unnecessary and takes up an unnecessary overload.

    Also, because the reference does not change with each iteration of the loop (unless you're doing something for her specifically?), you don't actually have a registry change.  You can use one if it makes you happy, however.

    d

  • Possible timeout in VISA read/write in While loop

    As the title says, I have a while loop that is constantly written followed by reading using VISA read/write.  I'm waiting for buffer correspond to a certain one, which the true value would end the loop.  In this loop, I have an indicator showing how many times he runs. All of this is repeated in another while loop.

    My problem comes the counter arrives at 10, then stops at the "write" command.  Do not know why.  I tried to increase the time-out of the instruments, but nothing has changed.  I added a delay of 10ms in loop, which also has not changed anything.

    For reference, I use a tektronix scope series 3000 of the MDGS and checking its state of relaxation.

    You said chill to read earlier!

    But it is not supposed to have to write it either.  Experimentally, access all VISA nodes, right-click and choose the Mode of synchronous i/o.  Make it synchronous instead of asynchronous.  The watch symbol will disappear from the top right corner.  See if that changes anything.

    What kind of serial port are you using?  What is an integrated in the PC?  A USB to serial port adapter?  Makes the chips on that, Prolific and FTDI?  You can try with a different serial port or a brand of adapter?  A lot of people have had problems with prolific chips.  And I have also heard of people having problems using adapters who had fake chips in them.

  • Table 1 d in the while loop problem

    Hello world

    I searched this problem in the forum, but seems only some positions quite didn't answer.

    I'm stuck by saving the data in a while loop.

    I have a while loop, within which there are two exits in each iteration, I want to add to a table, and then after the while loop is completed, I want to combine these two tables in a 2D array (since the release of them must be a pair in my case).

    I tried 'Build array' and 'transpose array' and 'write in spreadsheet' element set, which maintains concerns me is how simply to add the result in a 1 d table during each iteration, these 2 outputs are in digital format, which prevent to directly create a table for it.

    Any idea is appreciated,

    Thank you

    Chen Kunsheng

    Here are some other ways to insert.

    It may be useful

Maybe you are looking for