pop up in the structure of the event interrupts execution

If I place a pop-up Subvi in a business event an event structure and this pop - up Subvi contains a while loop and a stop button that this would stop all loop (which closes the Subvi), will be other events reported in the case of structure be handled until the user has clicked the stop button on the Subvi? If so, is there a way for other events to handle while the pop-up Subvi is still working?

Yes, it stops while you started VI until the popup VI returns. The events will always be put in the memory buffer, but they will not be manipulated by the structure of the event, until your popup is closed (assuming that your pop up is modeless). If it is modal, the user will not be able to click on anything anyone at all, except the controls on the pop - up's.

If you still want the user to be able to interact with your façade while the pop up shows and have the FP to answer, you want to launch the popup dynamically in its own parallel process. If you use LV 2012, you can use the asynchronous call starting node. If you are using a previous version of LabVIEW, you will need to use the 'Run' method with an invoke node.

Tags: NI Software

Similar Questions

  • Errors are displayed in the event viewer whenever I'm pass user

    Greetings.

    I just installed Windows 8 on my PC and noticed a strange thing. I have 2 local accounts on my PC, and whenever I am pass between them an error message popping up in the event viewer.
    It's always the same:
    The application-specific permission settings do not local Activation permission for the COM with the CLSID server application
    {D63B10C5-BB46-4990-A94F-E40B9D520160}
    and APPID
    {9CA88EE3-ACB7-47C8-AFC4-AB702511C276}
    the user NT AUTHORITY\SYSTEM SID (S-1-5-18) from the address LocalHost (using LRPC) running in the container of the application unavailable SID (not available). This security permission can be modified using the Component Services administrative tool.
    And details:

    -
    -
     
      10016
      0
      2
      0
      0
      0 x 8080000000000000
     
      1301
     
     
      System
      PC
     
     

    -
      application-specific
      Local
      Activation
      {D63B10C5-BB46-4990-A94F-E40B9D520160}
      {9CA88EE3-ACB7-47C8-AFC4-AB702511C276}
      NT AUTHORITY
      SYSTEM
      S-1-5-18
      LocalHost (using LRPC)
      Not available
      Not available

    I don't see anything wrong in the behaviour of my OS, but these consistent errors in Event Viewer makes me worry a little.
    What could be the cause of the problem? Is it possible to fix it?

    Hello Andrei Kharitonov,

    1. How did you install to Windows 8?

    2. who was the older version of Windows installed?

    Let us try these methods.

    Method 1.

    I suggest you run the utility for troubleshooting Microsoft accounts from this link and check the status.

    http://Windows.Microsoft.com/en-us/Windows-8/create-user-account

    Method 2.

    The System File Checker tool analyzes the system files and replaces incorrect versions of system files by using the correct versions. To run the System File Checker, you'll need open an elevated command prompt. This can be done:

    • Enter the start screen
    • Press Windows + C keys on your keyboard to show the charms. (If you use a touch screen: touch the right edge of the screen and slide your finger to the center of the screen to display the bar of charms)
    • Click on search
    • Type the command prompt in the search field
    • Click with the right button on command prompt (if you use a touch screen: touch and hold your finger at the command prompt, drag your finger downwards until you see an outline around the tile and finally release your finger on the screen.)
    • Click on run as administrator

    Enter the command: sfc/scannow
    Note: If you use a touch screen you can open the touch keyboard for the command prompt by typing on the keyboard icon in your taskbar near the system tray.

    Let us know if you need assistance with this problem of Windows. We will be happy to help you.

  • Whenever I started my PC a window pop up with the massege to allow execution of "WDBtnMgr.exePublisher".

    Every time I started my PC a window pop up with the massege allow execution of "WDBtnMgr.exePublisher"... allow or cancell are option 2 for a year I have to work and I just press Cancel I didn't see any restraint on the performance of the PC.

    Hello

    ·         What operating system is installed on the computer?

    ·         Did you make any changes before the show?

    Follow the methods and check them off below if it helps:

    Step 1: Start in safe mode and check if the problem persists:

    http://Windows.Microsoft.com/en-us/Windows7/start-your-computer-in-safe-mode

    Step 2:

    If the problem does not persist in safe mode, then I suggest you put the computer in a clean boot and check if that helps:

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

    Note: Reset the computer to start as usual by following step 7 from the link above.

    Step 3:

    Run the Microsoft safety scanner to make sure that the computer is free from virus infection:

    http://www.Microsoft.com/security/scanner/en-us/default.aspx

  • Structure of the event does not not at the exit of a Btn dialog box

    Hi all

    I have here a simple VI. I want to blow a One button in the user dialog box. I want VI to wait until the user clicks on the OK"" button. When we click on the OK button the VI should pop another dialogue a button and stops when you press the Ok button. The VI does not stop. The value change event is not captured by the structure of the event. Can't really understand why.

    What OK button you are wanting to trigger structure of the event?

    1. as you have connected it the case of the event is related to the OK INDICATOR on the front panel.  You don't have an OK button on the front panel. The OK button in the dialog box is not easily accessible to the structure of the event.

    2. programmatically change an indicator does not raise an event to change the value.

    3. you can use a Value property node (signaling) to trigger the occurrence.

    4. There is almost always a better way to do what you want to use an indicator and a value (follow the signs).

    Lynn

  • Structure of the event with sub-panels

    Hi, I tried to find a simple example with a structure of the event and only two sub-panels.

    I found the 'new Event Handler.vi' and I'm doing something with two sub - vi I did 'Add.vi' and 'Mul.vi '.

    To be able to switch between the two sub-panels used in 'New Event Handler.vi', the programmer used a "time surge" which I can't locate

    anywhere, so I just copied 'new Event Handler.vi '.

    I can't get this to work.

    Take a peek inside the world

    Sincere greetings,

    Lasse

    Hi Lasse,

    Yes, there is. If you open the properties of the subVIs Add.vi and Mul.vi (Ctrl + I), you can change in the tab 'appearance of the window' to that custom... There is an option display front panel, when it is called and the close later while initially closed just sellect them. Then, you will have the effect of 'pop up' :-)

    I slightly changed the example, so that can see them in the form of pop-up windows.

    See you soon

    Angel

  • using the structure of the event in the LabVIEW classes

    Hello

    I'm new in the use of LabVIEW classes, so don't know much how I can use them.

    In my main program, I have clusters with five elements in each. The elements are controls two States and in some groups, there are three States controls. The user will press the buttons (controls), and different things will happen. In my first program were I not using classes, I had a structure of the event and the controls were cases of event in the structure.

    Is it possible to somehow use an event of cases in one of the methods that is created in the classes, so that say, that's not in the main program?

    I have attached two photos: I wanted to have a structure of the event in servoTouchEvent (in left.tri.lvclass) who is a child.

    Let me know if my explanation is not clear.

    Grateful for the help!

    Hello

    Yes, you can have a structure of the event in a Subvi rather in your main VI of top-level UI. The trick is to use the 'Save for events' and passing in references to orders that you want to have the event trigger structure for. The refnum output since the function is entered in the terminal of dynamic event of the structure of the event who could live in a Subvi. You can add instances of event where you will see these control events as dynamic events then you can do something with. These excerpts from shows all the code in a simple diagram, but the stuff in the structure of disable diagram could easily transformed into a Subvi:

     

    All this can be done without classes. What will buy classes you include the ability to encapsulate your screws and also perform different code based on what object on the hierarchy of the parent-child classes is on a wire. If the behavior of your code is different between 2-3 State and controls (which I do not know what state controls 3 you are referring), you can take advantage of the classes.

  • major error with the structure of the event

    IM under LABVIEW 13.0 PRO

    I don't know when this strarted bug happening, but now when I add a business to a structure of the event. Freezes in LabVIEW. I have to close labview with the Task Manager.

    It doesn't matter what code I'm working with, even a new VI, with nothing else than a structure of the event.

    I tried this on my desktop PC, my laptop and my CPU DAQ.

    The error occurs on my desktop and my laptop. But it does not occur on my CPU DAQ.

    Whenever I click on add event usually case, you get a popup to configure and add cases, but with the popup error never comes to the top and labview crashes.

    Theres no code to share the problem ocured when adding events to the event structure. It happened with any structure of the event, in any code, all the time.

    I spoke to an engineer of apllication of labview and suggested to delete the labview.ini file located in the installation of labview directory. I did this and the problem was solved.

    Still not sure what caused this to happen.

  • Structure of the event in primary vi and sub - VI with queues

    Hi all

    I have an application that uses the architecture of producer-consumer in which a queue transmits messages of a main VI by a Subvi, in response to the events of the user in the front panel. Inside the Sub VI, the queue is removed and treaty based on the corresponding message, and the result is displayed on the façade the sub of VI. User events are captured in the main VI using a Structure of the event. This works as expected.

    However, I also the controls on the Panel before the sub - VI to change the queue. My approach is to have another structure of the event in the VI sub for this. However, while the events in the main work of fine VI, events of sub - VI never treated.

    A simplified sandbox VI of what I'm trying to do is attached. As you can see, the main VI events are triggered as expected, but events in the sub VI are never triggered.

    I watched this white paper: detect an event in a Subvi from a high level VI , but it's not exactly what I'm trying to do. Instead, I'm just trying to detect an event generated within the Subvi. I searched this forum and found some research related, but none of them seemed to answer what I'm trying to do.

    Thank you

    Matt

    Your major issue here is the loop location.  While the structure should be inside the Subvi to make a message in the appropriate queue manager.  In fact, you should have 2 loops within your Subvi: 1) the QMH and (2) of the event loop.  You must use a user event to congratulate the event loop in the Subvi to stop.  You should NOT use the time-out of the Structure of the event unless you absolutely must.  And since everything in the Subvi is the message function, you do not have expectations.  They will be inactive (no CPU using) when there are no items to process from the queue or queue.

  • How to create a Structure of the event, repeating a task until a push a buttom

    Hello!

    I want to make a program that repeats a task until a push a buttom (indicating to begin another task). I know how to do this with a structure of the case, but I want to know how to deal with the event. Any idea?

    OK, I'm going to help you a bit.

    Here's how it works: the upper part (producer loop) will pass the value of the OK button (switch released) to the Message Handling loop (consumer).  When the button is true the consumer runs the code in the case of the real and enqueus another loyal to himself and then wait 1 second.  When the OK button is False, the value false is appeared on the front of the queue and the message handler runs if false, empty the rest of the queue and waits for the next message the event loop.

    The Stop button (by releasing Latch) exits the event and the queue is destroyed causing the Dequeue return an error and leaves the message loop.

    This is obviously an extremely simplified QMH.  To read up more about concepts go to file > Create Project > and click on the "More information" link

  • Control the Structure of the event with text file

    I'm new relativaly in LabVIEW (experience only about 2 weeks). I am currently control a stepper motor using a structure of the event. Similar to the sample code given by LIFA, I entered my settings how the engine not move away, then press a button on the windows before, and it works this way. I also have other equipment that works as well in LabVIEW, as a transnational step; all components operate individually.

    Now, I'm trying to make the more automated system and to ensure that all the different equipment work in the same code. So, I tried to implement a structure of the event using a text as an input file to try to control events. The text file has a table 1 d of numbers going down vertically (only the line numbers change). So, I used a table of index function to take the numbers one by one, use a loop (while loop in this example) to go to the bottom of the column of numbers. However, the event not register the change, even if the indicator shows the value is changing.

    Attached, it's my test code and the text file that I use to try to control the structure of the event. Please let me know what I am doing wrong. Thank you.

    Oh, now I understand what you tried to say. I'm using a loop and a case structure to activate different events with the entries in the table. I thought case structures and event were the same, but you taught me the event structures are used just for the façade stuff. Thank you all!

  • How to avoid multiple simple clicks in the Structures of the event

    I use the event structures in my program and I want to avoid the case when pressed by mistake on the button to click several times, because if the user presses the button to click several times the event is logged repeatedly and funtion within 'Change of value' is repeated several times as well. I want to avoid this scenario.

    Can someone please help in this regard.

    Well, there is the "Lock Front Panel up to that end case of event.  You may also disable the button until a timeout occurs.  Another option if you have LabVIEW 2013 or later version is to limit the number of event (option just below the locking of the front panel in the dialog box change events).

  • How to control the structure of the event

    What I'm trying to do, it's when the condtion is true, I want that the structure of the event to excute. But the event structure wil excute not except if he's changed the puch model, any idea how?

    It is more likely that he wants the sequence of events that he has set up to run after the result once changes.  If you change the logic to check the values after each numeric change (2), you will need to learn how to check to make sure that the latest iteration was not true.  Otherwise, it will start the sequence over and over.

    Really, you have to escape completely the structure of the event.  This isn't what you want.  Your code lends itself to a great state machine.

    You'll want to ask you a few things:

    (1) I want my code to run continuously or I just want to check double-digit times? (your code is currently the second)

    (2) I want the user to be able to stop my code once the sequence begins? (it is usually a Yes)

    (3) what I want 6 Road, path 5 or the comparison to happen first?  I want all run at the same time?  Do I need one before the other? (currently, you cannot predict what will happen first).

    You will need to understand the topics are: State of the machines, the flow of data, structures, business, calendar, and race conditions.  Now, you need to get you into trouble.

  • Front panel locked, but not due to the structure of the event

    Hi it LV community.

    I did a staemachine program that executes an oscilloscope (screenshot of a provided below... the State of the problem). I ran my program yesterday and it worked very well. Then, like a model, a dialog box opens and I just clicked on it in a hurry. now my front hangs as soon as I move the above-mentioned State "the Oscilloscope settings.

    As indicated, I have go a repeat loop that collects successive impulses of my oscilloscope and displays on the front panel (it works fine). In parallel, I have a structure of the event that makes the tail for the real-time feedback of changes to parameters that I placed on the façade (exodus of state change).

    Here's the problem: as soon as I State 'Oscilloscope Settings' using a Boolean button on the front panel for get me there, the front hangs... No event triggered by this point, and even if it did, I already deselected the "Lock panel until the end of the matter for this event" checkbox in the case where the structure menu.

    So WHY is my front lock now? Thoughts anyone?

    Read the detailed help for event structures.

    He urged that a single event structure serve in a VI. There are moments where more can be used effectively, but caution and a thorough understanding of the structure are needed.

    The problem is that you have several structures of the event in the various cases of the state machine and they are set to respond to the same events.

    When the button Set Oscilloscope, the structures of the event in the purchase Menu and home screen States receive the event. The two lock the screen, but only one of these cases may work. It can transfer control to the State of the Oscilloscope settings, but the other event responding to this same event structure maintains the locked Panel.

    The solution is not not to release any of the event. The default value is usually the best setting. The best solution is to spend on an architecture of producer/consumer (events). Who uses two parallel loops. The producer has the one and the only structure of the event and passes orders to consumer loop through a queue.

    Probalby want as the mechanical action on the buttons to lock when you press. Put kiosks inside the respective case of event changed value and local variables becomes unnecessary.

    Lynn

  • reset the timer using a structure of the event

    I wrote a simple code to count the second and the timer can be reset if I press the button "reset".

    It works; However, there are two problems,

    1. when I run the program, the timer takes 1 second to start

    2 when I press the reset button, the timer also takes a second to answer

    I think it's the 1000ms that is connected to the left corner of the structure of the event. Is there a better way to overcome this problem? (the timer starts and resets immediately

    When I launch the program and press the "reset" button)

    Thank you!!

    Dear ivy037

    You can make the time outside the structure of the event as in the attached code.  I would like to know if this is satisfactory.

    Thank you

  • At all indexes on tables of the same value in the structure of the event

    Hello

    I have a panel with the four bays and I use a structure of the event.

    Now, I want that change of the index of array_1 also affects the index of 3 other tables at the same index.

    But there is only a property "value Exchange" and no property 'index-change' in the properties of the table.

    So I read the 'index' property and write in the other table.

    But: It seems as if I have to do so within the period of waiting-section of the structure of the event.

    Is there another way to do this?

    Thanks for help

    You can use the mouse event on each table to detec the event (of course, that will attract not only a change of index, but I don't think you care too) and then use the 'values of the indices' property on all the table to set.

    See annex VI (LV2012), hope this helps

Maybe you are looking for