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.

Tags: NI Software

Similar Questions

  • Subvi with while loop + event structure works is not in multi tab VI

    Hi all

    I'm developing an interface for the control of a prober using Labview 2012, and I'm stuck with a question.

    First I provide you with a simplified version of my VI control interface and the sub - VI used to generate and manage the mappings of wafer.

    The VI is composed of several tabs: Prober initialization, manipulation of Wafer, Wafer map, status, error.

    The sub - VI can:

    1 / initialize the grid to display the map (Subvi Init grid not provided here)

    2 / coordinates XY for import a txt file (Subvi Wafer map Import)

    3 / view contact information and the index of the sector under the cursor

    4 / and what position die is double clicked and the Boolean 'Edit Wafer map' is true, then the user can change the State (color) of the matrix between die on platelets and selected Die

    My question:

    If I use the sub - VI by itself, it works fine. However, when I use it as a Subvi in the 'Wafer map' tab, the plan does not rise and I can use any features incorporated into the Subvi.

    I suspect that the while loop + structure of the event of sub - VI the bottleneck here.

    However I do not know which way to go, that's why I'd be happy to have some advice and help here.

    Thank you.

    Florian

    The question arises because your hand loop 'for' cycles of 33 times.  In the loop of 32, appears your Subvi and execution is passed to your Subvi.  During this time your main VI expected Subvi in the end, she never does.  You could spend your Subvi out of the main loop of the program and run in a separate process, in order to pass data using queues, but you have to find a way to close the Subvi (i.e. a queue).  By moving the Subvi on the main process, it is independent and you can do what you want to do with the events and others.

  • Problems with opening the file with while loop

    Hello everyone,

    It is probably a quick question, but I know how to open data files in Labview. The attached code works if you enter a file from the folder on the front panel button. However, if the path is empty and you press the run (arrow) button, a dialog box appears and asks you the file.

    I select the file, but the dialog box keeps coming back. I think it has something to do with my while loop. Can someone tell me where I'm wrong?

    Thank you!

    TheLT


  • Need help with while loop and shift registers

    I have a broad set of data and required to read data at maybe 200 samples at a time to process these samples through my VI and have add and concatenate a file separate lvm.  The part where I am confused is the shift registers. How can I limit the number of samples read in an iteration? How do the while loop to stop when all data are read in?

    I have attached my diagram, there may be something wrong with my technique?

    This will give you an idea.  There are a lot of other (probably more effective) methods.  It is a basic solution, quick and dirty to help you grasp the overall concept.

  • Stop correctly with While loop

    Hello

    I can't stop the information that moves in stages with a while loop I created (see below). I joined the program (LabView 8.5) for reference, just in case.

    Currently, whenever I press the stop button designated for the control of the scene, the stages will not stop until the last part of the scene movement pattern is complented (in this case part 7 of the stacked sequence). Now, I have tried various things, but it was the best I could do to make the stage stop at all. (all other attempts resulted in a clumsy scene movement afetr the boss or not at all stop). Any ideas on what I can do? I'm positive that comes to a while loop on the stacking sequence was probably not a good idea. I also stacked sequences are usually wrong (or it seems) but I it is rather tedious otherwise.

    Thanks for the help, Amend sorry if this question seems pretty basic, I haven't used LabVIEW much until last week.

    It's one of the reasons why the stacked sequences should be avoided at all costs!   They can ALWAYS be replaced by a state machine with several advantages.  No. 1 among the benefits to replace a sequence of stacked with a state machine is the ability to STOP a stacked sequence between state transitions should complete each picture before stopping.

  • problem with while loop graph y Gráfica

    Hola

    Estoy realizando UN programa or UN contador cada vez as recibe UN 1, el contador to con resetea a button Reset o autoamticamente cada cierto tiempo (el don't reset por tiempo're para cuando hace mucho tiempo no to recibe una Señal 1 is resetea el contador)

    I made UN programa hace eso, pero cuando entered el resets del tiempo contador is ahi, nunca sale is asi Señal cambie has 1.

    y mi otra duda are not con the graphic grafica, results quisiera show los datos del contador with the actual date, initiates use las propiedades del chart pero no works... no self if alguien me can help put con problemas

    Gracias

    Herica M

    PD: estoy utilizando LBV9.0

    How dice crows, need leer los slideshows you mismo you of the account of that are what you are doing wrong.

    Aqui el annex you VI con unos cambios para as haga lo that I think quieres hacer, pero comentarios puse if tienes dudas me questions.

    Para lo grafica en las propiedades del eje X, seleccionas as el tiempo absoluto sea dato, y luego con UN nodo propiedad Escalin grafica puedes hacer al eje X shift para as sea the actual date.

    Decree No. presidential Te perfect use el foro en Español, TR o lo going poner Aquí, hacerlo in Frances.

    http://forums.NI.com/NI/Board?Board.ID=6170

  • How the entry changes with each iteration of the while loop

    Hello

    can anyone explain (clarify) to know how or what contribution will be fed like the d block of adaptive filtering for the first, second entry (n) and remaining iterations of the while loop as shown in the picture as an attachment...

    As I need to feed the e (n) out of the while loop as input d (n) to the Adaptive block for the first iteration for the next iteration of the previous output e (n) of the block Adaptive must be fed back as input (n) d and other x (n) of entry form the DAQmx.

    Thank you.

    You have a shift register on the edge of the loop, so for the first iteration, the input (n) d will get everything that feeds the shift register on the left of the outside. After that the adaptive filtering performed, e (n) is injected in the shift to the right, register to be read from the shift register on the left on the next iteration. And so on. This seems pretty much what you want.

    PatanGova wrote:

    As I need to feed the e (n) out of the while loop as input d (n) to the Adaptive block for the first iteration for the next iteration of the previous output e (n) of the block Adaptive must be fed back as input (n) d and other x (n) of entry form the DAQmx.

    If you need retain the value in calls, use a node that is initialized in the world of feedback to feed out of the while loop at the entrance.

  • Since the update a few days ago lost sites often visited on my google search page?

    I used Google for a search engine. Before the update a few days ago, when I opened a new tab, it would give me a Google search page that shows in the lower part of 6 to 9 (forget) boxes inside which were minis first pages of my sites visited most often, so I just had to click on one of the boxes to reach the site I needed immediately.

    Since the upgrade, these boxes have been reduced to 3. If you try to move one of the cover on one of the 3 mini page, you can see that others are attached to the breast but it is impossible to click and go. All sites that were saved, seem to be there, and in each of the 3 boxes but are not accessible.

    Is anyway to recover these boxes separately?

    Thank you

    Nancy Smith

    Firefox automatically adjusts the number of columns that match on the subject: newtab page if you adjust the width of the Firefox window or zoom the page in or out and no longer resizes thumbnails.
    The current version is not resize the image, but instead reduced the number of tiles to fit the current width of the screen, so you can't see the number of columns specified via the browser.newtabpage.columns preference.
    Zoom the subject: newtab page to see more tiles (Ctrl and -).

    Toggle the browser.newtab.preload pref on the about: config page in case of problems with zoom the subject: newtab page.

    You can open the topic: config page via the address bar.
    You can accept the warning and click on "I'll be careful" to continue.

    See also:

  • Password Subvi with enter/return key control

    Hi all, I am a self-taught user of LabVIEW. I hope that someone here can help me with this problem that's driving me crazy.

    I'm doing a small password. Only by entering the correct password, a certain function is executed when running. My code was running without problem until I realized that by pressing the 'Return' key in the added password prompt a new line; as a result, the user is forced to use the OK button. I wanted to capture the return key so that it works as a "standard" password prompt

    That's what makes me crazy: my code works perfectly if I single step it. If I run the code (CTRL + R) when I press 'Return' the password is not accepted. A probe tells me that the password is always empty in this case. If I use the OK button that everything works.

    I've implemented my password Subvi with a small state machine, so that the OK button and the back button run to the same State. In the same way, I grab also ESC, to work as the button cancel, and works smoothly. I also use the feature to discard to abandon the return key so that my rope does not get a new unwanted additional line. I can't possibly think any race condition that can make my code only works when you browse it slowly, step by step.

    I'm completely at a loss, and I hope that someone can help me! Thank you!

    PS: I have included only the VI because the nature of the state machine I should post a bunch of screenshots. I can do it tomorrow if you need me.

    Make a right click on the text field where you enter the password and select "update as you type"

    Mike...

  • Windows KB2572067 for Windows XP security update shows every day. I'm updating, appearantly successfully and 15-20 min. trying to update again. How to solve this?

    Windows KB2572067 for Windows XP security update shows every day.  I'm updating, appearantly successfully and 15-20 min. trying to update again.  How to solve this?

    Hello

    Thanks for posting the request in the Microsoft Community.

    It would be great if you can answer the following questions:

    1 have had any changes made on the computer before the show?

    2. the problem occurs for a particular update?

    Method 1:

    See the article and try to run Microsoft Fix it:

    The problem with Microsoft Windows Update is not working

    http://support.Microsoft.com/mats/windows_update/en-us

    Method 2:

    I suggest you to see link and check if it helps:

    Troubleshooting Windows Update or Microsoft Update when you are repeatedly offered an update

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

    Let us know if it helps.

  • After the update of Sierra: not to Disable Trackpad with Magic Mouse connected

    Hello

    After that I updated to macOS Sierra on my MacBook Pro the Trackpad is not disable mouse connected with Magic.

    Feature: MacBook Pro retina 15 inches (end of 2014) on macOS Sierra.

    Since the update, I noticed that my stays compatible with my Magic Mouse connected after built-in trackpad window connection.

    In system-> accessibility-> mouse and Trackpad preferences, I have not "ignore the built-in trackpad when mouse or trackpad wireless is present". If I switch it off and on again once again, the parameter will be.

    However, once I lock the device (user name right-> connection... window) and reconnect, the trackpad works. You must pass the parameter each time.

    Is this a bug of Mac OS Sierra (can't find anything) or am I missing something? I am aware that the trackpad is reactivated at the login window, but before it will deactivate after logging in.

    I don't use Magic Mouse, but I have USB Wired mouse and I have the same problem since installing Sierra.

    I have the box ticked, but I must go and clear the check box and then save.

    I have to use a mouse all the time because my trackpad goes haywire and I wasn't able to find a solution for this. It moves its own and open stuff on its own.

  • I use FrostWire and the other asked me to update, so I did and came up with this message, 'FrostWire can damage your computer. You must eject the disk image.

    Hello...

    I wonder if you can help me with a problem with my desktop OS X El Capitan 10.11.4 various...

    I use FrostWire and the other asked me to update, so I did and came up with this message, 'FrostWire can damage your computer. You must eject the disk image. There is no disk in my hard drive... I try to download again, but still the same message...

    Help, please...

    Much thanks

    Lisa

    < re-titled by host >

    The actual message means you need to move the mounted image - the small icon that is displayed after you double-click the .dmg - and put it in the trash.

    Where do you see the message your computer?

  • Given that I have updated to IOS 9.2 my Ipad 2 Air is discharge the battery in 12 to 14 hours, even without any use. Before the update, after a day of average use of the battery was still 70-75%. How can I reinstall the IO 9.1?

    Given that I have updated to IOS 9.2 my Ipad 2 Air is discharge the battery in 12 to 14 hours, even without any use. Before the update, after a day of average use of the battery was still 70-75%. How can I reinstall the IO 9.1?

    Hello

    The best way to save battery life is to go into the settings and turn off Apps Refresh

    I now get 3 / 4 hours of battery life more.

    You cannot return to a previous ios 9.1

    See you soon

    Brian

    PS

    If you still have a problem iCloud backup now

    Then restore settings to get rid of any bugs.

  • Why the 66 java update will not install on my iMac with el capitan?

    Why the 66 java update will not install on my iMac with el capitan?

    I recommend that you work with Oracle to see if they are aware of any problems with El Capitan, Java is their product and they would know better. But I was able to find this, it might help you:

    https://oliverdowling.com.au/2015/10/09/oracles-JDK-8-on-Mac-OS-x-El-Capitan/

    BTW, is there a reason you need Java?

  • How to call asynchronous Subvi with version 8.6

    With the new 2011 version, labview has a function to start the asynchronous call, but version 8.6 is not.

    I want to call sub - VI, but not waiting for Subvi to finish before running the next step in primary vi.

    An asynchronous call to a Subvi starts the Subvi execution while allowing the data flow continue in the calling VI.

    Anyone can help on how to achieve this in version 8.6.

    Thank you

    deal 0 look like this

Maybe you are looking for