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.

Tags: NI Software

Similar Questions

  • 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.

  • Reg while loop event reminder

    Hi, I try to put an event reminder Reg within a while loop where it need to be updated constantly and I have the following error:

    "LabVIEW: (Hex 0x4A5) you can not record the same event on an object several times."

    If I remove the while loop it works fine, but I need this loop. How to solve the problem?

    Thank you

    You register the event with the same VI reminder each time? You don't need to do. Once registered, the VI reminder will trigger on every triggered event.

    You would only need to re - register the event if you want to switch to another reminder VI. To do this, you must first call Unregister for events on the first recorded event.

  • 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


  • The quit event structure works when I switch the cdaq to crio

    I changed my structure of producer of written consumer 2009 for use crio in 2010 and my event structure enough work. The event source is the same.

    Panel controls raise no events on targets in real time as the cRIO, as these systems have not really accessible facades by the user.  When they do not display a façade, it runs on the separate development of the cRIO system; LabVIEW just give a homogeneous appearance.

  • 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.

  • Two while loops in parallel - 2 does not run

    Hello

    In this simple configuration, there are 2 while loops:

    • 1st - for installation
    • 2nd - operation, where variable X increments

    The problem is: after 1st run variable X is not reset to X 0, if VI stops immediately after it starts.

    The reason - 2nd loop is not executed, X 0 if value is not propagated to X.

    Thanks in advance

    Pavel

    You want to first one case installation and after perform the different number of steps, based on the parameters for installation.

    A perfect place for one State (a single necessary loop usually) machine. You need an idle state when waiting for user input. After that the user starts the initialization state, which calculates the number of steps for other States required. At the end the system automatically moves back to the idle state, and waiting for the user to install and launch another race.

    No need to sequence meal structure at all. With a state machine, you can just do much more (like abandonment of sequence to Midway, is not possible with the structures of the sequence)

  • Case structure works is not as expected

    Hello all

    I have a business structure which does not seem to work there in the State on.

    I created the circuit 1st in 1st red slice and it works each led flashes on then off in sequence, but when I try this logic in a case statement (in the 2nd red block) they are all remain lit.  What is the way in which the case statement suppose to work?  Is their a workaround solution?

    Thank you

    First of all, you have here a block diagram.  A 'circuit' is what you create in the material of electric wires and components with electronic.

    All your case structures all work as expected.  What you were doing in the upper part is different from the bottom.  In the background, each LED is located inside a special case.  This particular case only runs when something is true.  You have no way of writing a fake to the LED, because if the LED is going to be false, this case will not run.  Up there, the LEDS are always in the path of execution, so that they get a value True or False, written for them, as appropriate.

  • 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

  • continue to open with 'WINRSCMDE' window has stopped working. will not disappear after you restart twice.

    This window allows to appear with the message "winrscmde has stopped working and was closed" thereon and disappeared with restart twice. My microsoft windows is not working properly now. There was a message that was missing a DLL. How to solve this problem? Thank you.

    Hello

    1. have you made changes on the computer recently?

    2. when exactly you get the error message?

    I would suggest trying the following methods and check if it helps.

    Method 1: Put the computer in a clean boot state, then check if that helps you.
    How to solve the problem by running the clean boot in Windows Vista:
    http://support.Microsoft.com/kb/929135

    Note: once you have completed troubleshooting, perform the steps in the step 7: to reset the computer as usual.

    Method2: Chell event logs and post back details
    See: What are the information contained in the logs of the event (Event Viewer)?

    http://Windows.Microsoft.com/en-us/Windows7/what-information-appears-in-event-logs-Event-Viewer

    Hope the information is useful.

  • Event delegation works does not in WebWorks

    After trying many different approaches, I decided to post here hoping for enlightment on my problems. I'm developing an application using WebWorks and jQuery Mobile. My environment is Eclipse with Torch 9800 (6.0.0.277) Simulator.

    I'm trying to view a simple list dynamically (generated from ajax call). I use event delegation to detect which item clicked by the user. This approach works well in my browsers (Chrome, Firefox), but fails in the Blackberry Simulator (also failed when I deployed to my device). The event handler will not catch just the click event.

    I simplified my code to isolate the problem. Here's my index.html page

    My Reksadana

    Back

    During initialization #pageMyRD (link to "pageCreate"), it will replace the content of #pageMyRDcontent through the ajax call. The content of the decision of the server as follows:

    
    

    The page makes well Simulator, user can move around the list view. Then, I tried to identify which element selected/clicked by the user. To do this, I have tried the event and technical delegation bubbling event in the tutorial, works great in my desktop browser, but failed in the Simulator.

    Some of the link, I tried to do a simple trick of the event as follows:

    $("#pageMyRD").live('pagecreate', function(event) {
       $(".myrd-item").live('click', function(event) {
          alert('Clicked on item!');
       });
    });
    
    $("#pageMyRD").live('pagecreate', function(event) {
       $("li").live('click', function(event) {
          alert('Clicked on item!');
       });
    });
    

    I even tried to move the class 'myrd-point' to the element, but still no luck. It seems that the click event is not at all fires, or failed to bind to the newly created items.

    However, I discovered a strange behaviour. If you return the listview, you will see an arrow on the right side of each item. If you click on the arrow, the event fires (alert Pop out). Using this approach, I managed to cross the parent element until I reached the element with class "myrd-agenda. Although this is an equitable solution, but this approach only applies to contact devices. Users with devices touchpad/trackball that scroll and click on an item sees no alert.

    I'm looking forward to lights. Many thank you in advance for anyone who has wanted to consult us on this subject.

    Problem solved. The problem is caused by the behavior of the contact devices. in the torch, touch events will also raise mouse events. Previously, I was trying to catch "click event" (a mouse event) by clicking on an element (without using the touchpad, so it is a key event). Instead of intercepting the mouse and touch events separately (where several response/alert), the solution is to combine the multiple event handler. Here's the code.

    $("#pageMyRD").live('pagecreate', function(event) {
       $(".myrd-item").live('click tap', function(event) {
          alert('Tapped and clicked on item!');
       });
    });
    

    Thank you for your kind assistance Praveen Fox , I hope that soon I'll be too "Developer level 1"

  • Problem with the touchpad doesn't work is not on the computer.

    Today, I was on YouTube, listen to music, when I turned the volume up to full. My laptop (ASUS) is a VERY high - pitched shrill sound that would not stop until I turned the laptop on sleep. When I turned on the laptop back, the screeching stopped but my Touch Pad stopped working. Fortunately, I have a USB mouse which I use now. I tried following the instructions to activate the keypad, but it does not work. I restarted my computer, and that did nothing.

    Help would be GREATLY appreciated.

    (also, I had problems with this laptop in the past, involving having to solve every time turned to have internet access, but a day that goes by and now the internet accessibility works very well.)

    Hi Lucie,.

    Thanks for posting your query in Microsoft Community Forum.

    What is brand and model your computer?

    Problems with the touchpad can occur due to a number of causes, including cables that are not connected properly, lack of updates, corrupt or drivers incompatible or because of hardware problems. So, I would suggest trying the following steps and check if the problem persists.

    Method 1:

    Try to run the suite of equipment fixit and see if the problem still occurs.

    Hardware devices do not work or are not detected in Windows

    Method 2:

    See the additional steps provided in the following article.

    Mouse, touchpad and keyboard with Windows problems

    Hope this information is useful. If the problem still persists, please post back for further assistance, we will be happy to help you.

  • Is anyone else having problems with the tools of photoshop works do not at all?

    I've updated my photoshop CS6 for CC and now a bunch of my tools do not work. The dodge, Clone Stamp tool, and a few other tools do not work.
    Anyone else has this problem or knows how to fix? My application is updated.

    I tried to contact adobe and they have not responded.

    Thanks in advance.

    Hi alexisu,

    Greetings!

    Try resetting all the tools

    To reset a tool, you must first have the selected tool. Then Ctrl-click (Windows users: right click) the button tool preset in the Tool Options bar.

    When you click this button, you will see a small menu and you can select Tool Reset to reset the current tool to its default value or reset all tools to deliver all the tools to its default value. Once selected, the tool will act as the first time you have used it.

    Using this simple method to reset your tool with a single click, you can quickly remedy any situation where the tool does not correctly and to maintain the flow of creativity going.

    Concerning

    Jitendra

  • event.keyCode works does not in Firefox

    When I use this validation. Works fine in IE. Does not not in firefox.
    Gives an error "undefined event".
    How to solve this problem in firefox?

    < input type = "text" name = "var_no" onKeyPress = "check (this); ">

    function check (obj) {}
    If (event.keyCode < 45 | event.keyCode > 57)
    {
    Alert ("correct to Enter value '");
    obj. Focus();
    event.keyCode = 0;
    }
    }

    Instead of
    event.keyCode = 0;
    Try
    Returns false;

    In addition, the alert is really distracting from a user perspective. Very intrusive.

    Some other visual cue, such as briefly to change the background of the box entry or even inserting text beside him, for example, is more user-friendly.

    obj.style.Background = "Red";

Maybe you are looking for

  • Update of El Capitan

    I recently; installed the latest update of El Capitan on my MacBook Pro. Upward until here I've never had a problem with my Mac. Now it is excruciatingly slow and I can't read any of my emails. Even if they are sent, I can't see content or attachment

  • Problem of COM Port on the A30

    Hi allI have an A30 and recently my modem stopped working. The error message want to activate "com port". I checked the BIOS Setup and the currency manager, but all of my com ports have disappeared.I noticed this problem in the forum thread. Someone

  • XControls not found in the Project Explorer

    In accordance with the LABVIEW help section create you an XControl by go to your project and in the project, right click on Explorer window workstation and select new' XControl in the context menu. The problem is that it is not available in my menu.

  • DLLEXPORT, DLLSTDCALL and the two

  • loss of network connection driver problem?

    After years of service without problem pc to my son (wired) suddenly does not connect to my home network (ARRIS TG862). Others - both wired and wifi still work. Windows 7 gives messages: "Intel Management Engine Interface has a driver problem" and "I