How do I close a sub-VI window from a loop after several iterations?

Hi all,
I am trying to use a sub-VI like a dialogue box, but I'm having trouble getting exactly what I need:
My main program has data acquisition running the whole time, so I don't want to pass control to the subVI or if the user takes too long (which will probably happen), then the buffers over-run and the whole thing crashes.
Global variables are one solution, but they are very slow and the main program is already huge and slow enough.
One potential solution is to construct the subVI so it doesn't contain any loops and so it passes it's useful data when the user finally gets around to pressing the OK (or Cancel) button. The problem is I set the VI to 'open when called', but not 'close whe
n done' (otherwise it would close every cycle and "blink"). When the user pressed OK, VI server sets the 'close when done' property and calls the subVI yet again, but the subVI's front panel is already open, so when I call it, it doesn't close.
Is there a way to force the window closed with VI server? Is there another way to force a window closed? Is there a totally different solution to this problem?
Any thoughts would be a great help. Thanks,
Casey

Nadav already answered this question. Use a queue.
Before the two loops start, create a queue and pass its ref to both loops.
In the GUI loop queue the parameters whenever the user says OK.
In the DAQ loop checks the queue to see if there are updates,....
Ben
Ben Rayner
I am currently active on.. MainStream Preppers
Rayner's Ridge is under construction

Similar Messages

  • How do i close the "export pdf" window?

       How do I close the "export pdf" window so my documents can appear on a full screen?

    Click on Tools.

  • How do you close your open app windows?

    How do you close your open app windows?

    Force the app to close
    Double-click the Home button.
    Swipe left or right until you have located the app you wish to close.
    Swipe the app up to close it.

  • How can i hide( close or exit) the windows media player window from front panel after a video is played.

    I want a video to be played when i star executing a vi. After that i want to remove(hide or close) the media player window from my front panel.how can i do this?
    the vi is attached.
    Electronics and Instrumentation Engineer
    Freelance LabVIEW and Arduino programmer.
    For projects contact me ; [email protected]
    Solved!
    Go to Solution.
    Attachments:
    videovi.vi ‏9 KB

    Check out the attached code.
    If it solves your problem then dont forget to mark this as a solution. Also if you like the answer dont forget to give me kudos
    Tushar Jambhekar
    [email protected]
    Jambhekar Automation Solutions
    LabVIEW Consultancy, LabVIEW Training
    Rent a LabVIEW Developer, My Blog
    Attachments:
    Main.vi ‏14 KB
    MediaPopup.vi ‏21 KB

  • How can I close the iOS Diagnostics window?

    When trying to solve a problem through Apple's support service a iOS Diagnostics app started and now I cant figure out how to close it. It's not in the recently used list of apps, but when I swype through the opened apps, it's always there.
    So my question is:
    How can I close the iOS Diagnostics window?

    Try this  - Reset the iPad by holding down on the Sleep and Home buttons at the same time for about 10-15 seconds until the Apple Logo appears - ignore the red slider - let go of the buttons. (This is equivalent to rebooting your computer.)
     Cheers, Tom

  • How do I close the played songs list from the miniplayer?

    How do I close the played songs list from the miniplayer?

    Click on the same 3 bar symbol that opened it.
    tt2

  • How do i get my pics to download from the cloud after resetting my phone?

    How do i get my pics to download from the cloud after having to reset the phone?  I have 1000 pics and only 90 of them came back.

    If these are photo stream photos, what you may not know is that photo stream only keeps photos in photo stream for 30 days, even though they will remain on your devices (up to 1000) photos until your delete them.  The 90 photos that were still there are probably the ones added in the last 30 days.
    Camera roll photos are included in your iCloud backup.  If the missing photos were in your camera roll when you last backed up, restoring the backup to your phone should recover them.  If they weren't in your camera roll there is no way to recover them.

  • Close the ADF popup window from deployed JSP in other server

    I am attempting to open jsp page which one is deployed on tomcat server in adf pop up window from cmd button event.and this first jsp will forward to second jsp and i should able to close from pop window from second jsp close button.
    This is what i did:
    1) created pop-up window and run the delployed jsp on pop up page
    2) i used window.close script in second jsp but not popup window is not get closed .
    help me to achieve this pblm ....

    i was trying to open &close other server's jsp from ADF pop-up window ... so base is internal window (pop-up) only ,
    and already i used onclick="window.close();" in command button...but its not closeing the adf pop-up window ... how that jsp cmd button onclick event take control of adf pop-up to close ?
    help me ???

  • How do I open a new browser window from Flash

    I wish to open a new browser window from Flash and when the new window closes to return to the location from whence I started.
    ThomasChen

    The command to open a new window would be the "_blank" part of a command to link to a web page in the code below.
    navigateToURL(new URLRequest("http://www.anothersite.com", "_blank"));
    As far as the new window closing and getting back to where you were in the original window, I don't understand where that original window might have gone to... You should be wherever you last left it.

  • How can I open a new browser window from UIX?

    I need to open a new browser window from an event handler. How that can be done? HELP!
    Thanks!
    Martin Patrici

    HTML doesn't really let you do this on the server side; the client is in charge
    of creating new windows, not the server.
    If you know that clicking a certain link/button, etc. will always raise a new window,
    then you should use Javascript or "targetFrame" accordingly.
    If the decision will only be made on the server side, then you could reload the current
    window, only this time use an "onLoad" on the <body> to raise a window.

  • How can i stop iTunes 7 for Windows from opening automatically whenever I browse my Music Folder in Windows?

    Whenever I'm browsing through my files on my PC, if I open the iTunes folder inside my music folder, iTunes automatically launches.  If I close iTunes without browsing away from this folder, it simply re-opens itself.
    edit:  I have no Apple devices currently connected to the computer and WiFi Sync is disabled.
    How can I stop this behaviour?
    Message was edited by: azharahs

    Olliev wrote:
    How do I disable itunes on my iphone 4s?
    iTunes app on the iPhone is for purchasing music.
    The fact the iPhone starts playing when connected to your car stereo is a function of your car bluetooth system.
    Consult your car dealer/bluetooth system manual.
    I have attempted to delete all music from the device (so there would be nothing to play), but 1 song remains in the iphone memory and I have been unable to delete that song.
    Connect the iPhone to computer and select it in iTunes.
    Click the Music tab and uncheck Sync music.
    Then click Apply at lower right of iTunes.

  • How to spawn and reuse separate browser windows from CAD?

    I'm currently working to integrate some of our existing web applications with CAD.  My original plan, before I got my hands on CAD, was to spawn new windows from the mbedded browser via targetted hyperlinks or JavaScript.  However, I've learned the hard way that CAD's integrated browser makes every attempt to open a new window in a new tab.  Worse, even if you name your target window, CAD seems to refuse to re-use the previously opened tab but just spawns a new one.
    This is quite problematic.  The agents all have two monitors to faciliate more screen real-state and showing information side-by-side.  Forcing all websites to show in CAD's tabs thwarts this.
    I've considered launch Internet Explorer as a separate application, instead, but that is a degree mroe complicated in building a dynamic URL.  I believe it would also spawn a new window each time, meaning agents would have to re-log-in every time.
    If I disable the integrated browser, will it leverage Internet Explorer on its own?  Or will it just disable HTTP application integration entirely?
    (Am I wrong to be entirely frustrated by such a handicapped web environment?)

    From the sound of it, he was using javascript inside of the web application to open a new window. This was automatically being forced to open in a new tab by CAD, similar to clicking on a link. There is no method I am aware of to directly instruct CAD to open a request in a new tab.

  • How do I close the Directory Utility Window?

    The Directory Utility window was opened and I have not been able to close it.
    Upon restarting, a pop-up message reads that the window must close in order to complete the operation.
    Only the minimize (yellow) button is available for click and the Systems Preference window is closed.

    Click on Tools.

  • How to get the last sub folder value from the string in Webi report

    I have an object coming from universe, this object will contain string e.g. \\Users\Public\Pictures\Sample\
    or    \\Users\Doc\BI\BO\Webi\
    I need the last sub folder from this path to be displayed i.e. Sample and Webi.
    I would like to know how it can be done.
    I tried using formulas like POS, SubStr and Length. however the issue is that the length of the the sting is not fixed and the number of "\" are also not fixed.
    I would appreciate any help regarding this.
    Regards,
    Yogesh

    Hi,
    What is the formula you have written though?.
    =length(right([folderpath]);pos([folderpath];"\")+1)
    Thanks,
    Jothi

  • How to restrict access to sub folders (apart from Manual settings)?

    Hi,
    Is there any method to stop the  group traverse from main Folder to sub folder when user group has access to main folder?
    So that no need to give no access to sub folders manually for given group.
    Manual access settings have become tedious due to large number of sub folder and user groups.
    Scenario:-
    There is a main Folder F1 and it has 100 Sub Folder SF1 to SF100. And these sub folders has child folders.
    Group G1 should have access only  F1, and should not have the access its child folders.
    How can we eliminate manual work to remove access for each group at each sub-folder level?
    Thanks,
    Anu

    Access restrictons by default are inherited from parent folders downward.
    You can break the inheritance, but you'll still need to manualy setup initial security.
    Details are in the Admin guide.

Maybe you are looking for