Calling a VI to run in the background

Hey, can anyone help me with this:
I have a vi which is eseentially a sequence (though I do not use a sequence
primitive). At one point during my sequence, I need to launch another VI
that goes and does its own thing. Then, the calling VI (the original one)
has to finish a few steps, while the other VI is doing its own thing. I
have no experience using the 'VI Control' primitives on the controls
pallete, so if anyone has experience with this, could you please help me
out?
Essentially, I need to run two VI's at once. I know how to do that in terms
of making each while loop have a 'Wait for Milliseconds' within the loop so
that the currently executing loop does not hog the processor, I just don't
know how to launc
h another VI to run in the background from within a VI.
The only way that I have done this in the past is to call a VI as a
subroutine, have it do its task, and then return to the calling VI.
Any ideas?
Thanks,
Wes
[email protected]

Wes,
Apart from calling a VI as a sub-vi you can use VI Server to call another VI. The VI you are calling can be on the same machine or could be called remotely from another machine.
There are a few examples on using VI Server you may find helpful. If you go to the Resource Library in NI Developer Zone http://zone.ni.com/libraries/ and then go to LabVIEW-Connectvity-VI Server you should find quite a few examples.
One that is pretty simple and useful is titled - Programmatically Opening and Running One VI from Another Using VI Server
In the diagram of the This.vi you'll see that there is an invoke node that is calling a Run VI method, the parameter for the method is Wait Until Done. By setting this to true you can ensure that the VI you are calling completes executi
on before the next VI (with flow being controlled through the error cluster) executes. If you set it to false the VI will go off and run and you can continue doing things independently.
Do be careful in case you are getting into situations where you might be calling the same VI again before the previous call has completed. If that is a possibility mark the VI as re-entrant, this is wether you're using VI server or just calling the same sub-vi multiple times in another VI. If you don't set the VI up to be re-entrant you run the risk of the same data space being used for different calls.
Regards,
Kamran

Similar Messages

  • ATI Monitor running in the background

    Hi all,
    On my new MacBook Pro 2.33Ghz I have something called ATI Monitor constantly running in the background. It shows up in Activity Monitor, using 15mb of RAM, and it shows it as a PowerPC type of application.
    Can someone tell me:
    - Do I need this? I'm surprised this PowerPC apps is always running on my Intel machine. I really don't want any hidden process that I don't need.
    - How can I remove/uninstall it?
    Thanks so much,
    Mon

    If you installed the software that came from the ATi web site then you don't need it.
    As for uninstalling it, check the installer disk or disk image you used to install it and maybe there's a uninstaller. Otherwise, you may find ATi elements in the /Library/Startup Items folder. You should find them at the top level in this folder so you will not have to look inside any folder here.

  • I want thunderbird to run in the background when i call the default email client

    I have software that sends emails out for reports. The software calls the default mail client (Thunderbird) and sends the email. However this opens Thunderbird and gets in the way. Is there anyway that this could send the email without opening Thunderbird? Can it run in the background like outlook express? It needs to close after email is sent.

    Try with "Minimize to Tray" Add-ons
    *https://addons.mozilla.org/en-US/thunderbird/search/?q=minimize+to+tray

  • When making a call, sometimes, my iPhone 5 , gets stuck on 'Calling' than I have to press END..but still nothing happens, than when I press HOME button, the call app keeps running in the background and it keeps saying CALLING... please help

    When making a call, sometimes, my iPhone 5 , gets stuck on 'Calling' than I have to press END..but still nothing happens, than when I press HOME button, the call app keeps running in the background and it keeps saying CALLING... than I have to wait 2 - 3 minutes and call again.
    please help

    Has nothing to do with the SIM or master reset.  This has been done to my phone.  The SIM once and the factory reset many times over.  You all just sold us a bad piece of equipment and have us by the tail with our contracts so none of us can get a new phone without paying full price or re-upping our contract.  I just got off the phone last night with your high up tech people (you know, the hidden number we get once we tear into your support people enough), they went into my phone again and still didn't find anything wrong.  I about got fired from my job for not getting my calls and texts.  The BBB has now been contacted, and I feel your end should shore this up for all of us!

  • Can the width of a report that has been run in the background be increased?

    Hello Experts,
    How can I increase the width of a report that I have run in the background so that it does not wrap text to the next line?
    I have been running the same HR report successfully in the background for many months.  Today I ran it with the same parameters that I've always used and when I retrieve it from my Own Job Spool - System | Own Spool Request | Display Contents the last field is wrapped to the next line.
    Thanks.
    Regards,
    Jeanette

    Jeanette,
    Thereu2019s another possibility if Tedu2019s suggestion doesnu2019t work. When you look at your spool requests, thereu2019s an icon on the toolbar next to the eyeglasses that looks like a yellow rectangular callout. Itu2019s called u201CDisplay in Maximum Widthu201D. Select the Spool no. to display and then press this icon. Shift + F4 is the shortcut.
    Regards,
    Howard

  • Page breaks appear in the spool output of report when run in the background

    Hi All,
    Report is using fm 'REUSE_ALV_GRID_DISPLAY' to display the report. parameters passed to this fm for display are :it_fieldcat,is_layout,it_events,t_outtab.
    Page breaks appear in the spool output when report is run in the background.These page breaks needs to be removed. When executed in the background, the excel extract should be the same as if pulling directly from the report itself.
    How to remove the page breaks in background?
    Thanks & Regards,
    Abhishek Singh

    Hi
    You can use the below code , which the reprt run in background. If you run the report in background thenyou need to use  'REUSE_ALV_LIST_DISPLAY'
    if sy-batch = ' '.
    call 'REUSE_ALV_GRID_DISPLAY'.
    else.
    call 'REUSE_ALV_LIST_DISPLAY'.
    endif.
    if you are using OO alv then write this code..
    CALL METHOD cl_gui_alv_grid=>offline
    RECEIVING e_offline = off.
    IF off IS INITIAL.
    CREATE OBJECT g_custom_container
    EXPORTING container_name = g_container.
    ENDIF.
    Regards

  • Apps running in the background

    It seems to be if you have the app linked to a watch complication or you have it on your glances page, then those apps loads much faster.  I figure they are always running so the data can be displayed on the watch face or quickly at a glance.
    So if you have every possible app on your glances page, then your battery life would drain much faster than if you have fewer apps.
    I only have 3-4 apps on my glances page and I can easily get 20 hours of battery life, and this includes a 1 hour workout using GPS and HR monitoring.

    Tbh, the biggest battery drain is your email push settings. I'd look at those before worrying about terminating background apps.
    You can see everything that's running on your phone by using a "process monitor" app. I use one called "iStat". Unfortunately, iStat can only show you what's running, it can;t actually kill anything. It will definitely tell you which of the 1st party programs (browser, email, ipod) are running in the background.
    If you actually want to kill one of these, the procedure is:
    Open the app in question (e.g. launch the ipod app)
    Hold the power/sleep button until the red slider appears.
    Hold the sleep button for around 6 seconds (eventually the red slider will disappear and you will be returned to the home screen).
    Whichever app was running (e.g. ipod) will now be forced to close.
    ** note: To close safari, you can simply close all the "tabs" down, and then exit. If you close safari when there are no tabs in use, it will completely shut down.

  • Program running in the background

    Hello!
    I am wondering if it is possible to create a java program that runs in the background on a mobile phone. I.E can it run without beeing interuppted by a call or the locking of the key pad.
    Is it possible to let the program run without interfering with the normal functionallity of the phone?

    qnx wrote:
    1) Stop trying to make spyware. -> I don't do anything like this!
    2) Stop re-posting the same questions. -> didn't know they are the same, sorry.
    3) Stop taking us for fools. -> what? Honestly, I don't think that I realy deserved this :)With a limited posting history and the type of questions you are asking they are unusual.
    There are very few legitimate problem domains that would require what you are asking about. There are illegitimate ones though. And the legitimate ones would generally require someone with quite a bit of programming experience and would also be required (the fact that java can't do it would not get rid of the requirement.)
    Thus one might make assumptions about your intentions.

  • Midlet running in the background

    Hello!
    I am wondering if it is possible to create a java program that runs in the background on a mobile phone. I.E can it run without beeing interuppted by a call or the locking of the key pad.
    Is it possible to let the program run without interfering with the normal functionallity of the phone?

    Hi
    To make a midlet run in the background you have to do as mentioned:
    Display display = Display.getDisplay(this);
    display.setCurrent(null);
    This will make the midlet run in background while you can continue working with other midlets. This strategy was tested with J2MEWTK 2.5 & Black Berry.
    Thanks
    Bruce

  • Firefox running in the background

    I've noticed that Firefox often hangs and keeps running in the background even after I closed the browsing windows, which is quite annoying.
    I'd like to use a VPN but it's kind of pointless given such an error; I'd switch it off thinking Firefox is down but it's running.
    I've had problems with constant error messages and slow performance.
    I'm sure there are ways to work around this, such as shutting down the process in task manager each time or changing this and that setting, but can we expect a version that does not contain this error in the first place?
    That would be so much easier.

    I have noticed that sometimes I suspect, but it has been either explainable, or on other persons machines where I have not been able to troubleshoot
    Before starting any further troubleshooting I suggest you try updating to the current version of Firefox
    * [[Update Firefox to the latest version]]
    As a first troubleshooting step then try Firefox in its safe mode. That is a temporary and reversible troubleshooting stage with some features shut down
    * [[Troubleshoot Firefox issues using Safe Mode]]
    You mention error messages please paste them into your next reply, (or attach as a screenshot) and say what you were doing at that time.
    As an Aside
    I would also point out there is a reported but unfixed bug (or was last week) on what was the Aurora channel and is now called Developer Edition, that some times causes this, but even worse as it crashes and locks profiles.
    Unusual that, common bugs breaking through form Nightly to Aurora.

  • Vi running in the background

    Hi,
    I try to write a VI running in the background -- but it doesn't work properly.
    The VI is supposed to do the following:
    hide the panel
    write 1st time (actual time) to c:\temp\wtft.txt
    wait 5 sec
    write 2nd time (actual time) to c:\temp\wtft.txt
    show the panel
    wait 1 sec (just to see the panel)
    exit
    The hiding and exiting are easily adjustable using booleans for testing purposes. The front panel is completely empty.
    Everything works as expected in the development system. But it doesn't after building an application. When running as application, the 2nd time won't be written to the text file if the panel is hidden. As far as I underst
    and that's because the VI is terminated after the panel is closed. But I have a reference to the VI opened and I just close it after showing the panel again.
    Can someone give me a hint what I'm doing wrong?
    The VI in question is attached. We're running LabView 6.1 in Windows 2000.
    Thanks,
    Carsten
    Attachments:
    wtft.zip ‏21 KB

    A built application must always have one window visible, otherwise the application terminates, having a reference open does not help.
    Opening a reference to avoid a VI from terminating is useful e.g. if you dynamically load a VI using an invoke node and the wait until finished set to false (if you close the reference the VI will terminate...the trick is to make it open a reference to itself prior to closing the reference in the caller). But again - the application must always have one window visible. That window can be minimized and/or moved off-screen, but not closed.
    MTO

  • "weather has been running in the background"

    My iPad said "weather has been running in the background," but las I checked iPad didn't come with the "weather" app. What's the deal?

    Jeanette,
    Thereu2019s another possibility if Tedu2019s suggestion doesnu2019t work. When you look at your spool requests, thereu2019s an icon on the toolbar next to the eyeglasses that looks like a yellow rectangular callout. Itu2019s called u201CDisplay in Maximum Widthu201D. Select the Spool no. to display and then press this icon. Shift + F4 is the shortcut.
    Regards,
    Howard

  • Too much stuff running in the background

    I have a Casio Commando Gz'One.  I installed an App called Advanced Task Killer to be able to turn unnecessary things off that are constantly running the background.  What I have noticed is even right after I run Advanced Task Killer, there is A LOT of stuff that keeps turning itself back on.  How can I permanently turn off apps/stuff that I rarely if ever use? 
    As an example of Apps/stuff that constantly is on and turning itself back on in the background........My Verizon Mobile, Gallery, Camera, Desk Cradle, Mobile IM, Skype Mobile, Slacker, City ID, etc etc etc.
    I'd prefer to not have all this stuff constantly running in the background and using up memory.  I notice that when I don't run Advanced Task Killer for a while my phone responds slower and slower and the longer I leave things be, my available memory available goes down......
    How do I do this?

    Thanks, Ann, that's a great article, very helpful to a veteran Windows user like me, who isn't used to RAM being managed this way by the OS.
    I  just did a quick check on my Samsung Stratosphere using Menu > Applications > Memory usage, then tapping Running. There's a lot of stuff running, and I do wonder about some of it. Slacker Radio, for instance, which I've never used and don't intend to use, has been running for 24 hours and is using 2.3 MB of memory. When I press and hold it, I get a screen informing me that it was started by an application called Tap to stop, and a warning, "Service started by application. Stopping service may cause application to fail." If I throw caution to the winds and tap Stop anyway, I get another message, "Stop this system service? Some features of your phone may stop working correctly until you turn it off and then on again," at which point I grab caution back from the winds and hit Cancel.
    So, granted that I should just leave things alone and "let Android be Android," as the writer of the article you linked to says, I'm still curious. What the heck is the application called "Tap to stop"? I don't see it anywhere. What feature of my phone would fail if I forced Slacker Radio to stop?
    Thanks again for the article. It's fun to learn about a new OS.

  • Cisco mobile does not running in the background ont my ipad

    Hi
    I have a Cisco Callmanager 7.1.5, an ASA5510, an Iphone and an Ipad
    I have configure the VPN on my iphone and my ipad and I can make a VPN connection to the ASA through the WIFI
    I have configure the  Cisco Mobile 8.1.2.3245 on my iphone and my ipad.
    If the application is open, I am connected to the CCM and I can make and receive calls.
    On the iphone when the application is  running in the background, its good I can receive calls
    On the ipad when the application is running in the background, I can't receive calls, I am unregistered
    On the ipad, if I disconnect the VPN, and make a WIFI connection on my local network. When the application is running in the background, I can receive calls.
    It is an ipad2 with iso 5.0.1 (9A405)
    I reverse the ID of the IPAD and IPHONE, and it is the same.
    The problem is only on the IPAD when there is my VPN connection
    Could you help me?
    Thanks
    nicolas

    A double click on the Home button will reveal a tray containing all apps that are currently running (suspended?).
    Side swiping this will reveal as many as are active, with a swipe to the right when on the first display will reveal further controls for the iPad, mainly relating to the iPod part, but also containing a screen lock option I believe.
    Click and hold any one of them till they 'jiggle' and show a - you can then click this to remove it, relaunching the app as required in the normal way.
    Regards,
    Colin R.
    Message was edited by: Colin Robinson
    PS Tap the Home button once to get out of this mode.

  • LabVIEW closes while VI's are still running in the background

    I have created a large application that is split between VB 6 and LV 6.1. The LabVIEW portion runs in the background, except that the VB portion can request that a LabVIEW user interface be presented on demand. Any time after this LabVIEW user interface has been opened and closed, opening and closing another application (or even just hiding a top-level window in another application) will cause LabVIEW to close, taking my background processing with it.
    If the LabVIEW code is running as source code, LabVIEW prompts me before closing. However, when the LabVIEW code is running as an executable (.exe), the executable closes without prompting in this circumstance.
    The scenario can be reproduced with a standard LabVIEW sample program. Proceed as follows:
    1) Open VBToLV.vbp (the example program distributed with LabVIEW 6.1).
    2) Start the VB program running.
    3) Press the Launch LabVIEW button on the user interface of the VB program.
    4) Enter an expression in the text box provided.
    5) Select Display VI Front Panel.
    6) Press the Run VI button.
    7) Close the VI front panel by clicking its "X" button.
    8) Open any handy application, such as Windows Explorer or Notepad.
    9) Close this most-recently-opened program.
    10) The LabVIEW Exit screen appears.
    11) Exit LabVIEW.
    12) Press the Run VI button.
    13) An error occurs because LabVIEW has closed.
    If the LabVIEW code had been built into an executable and called accordingly, there would have been no LabVIEW exit screen. The executable would have just exited silently.
    This is not the way a COM server is supposed to behave. The VB program is still holding a valid reference to the server and it should remain open.
    It appears that LabVIEW is monitoring the total number of top-level windows that are open. I suppose that this is how LabVIEW figures out when its own FP windows have been closed. In this case, it doesn't notice that all of its windows have been closed until some other window closes.
    I have a work-around, but it's ugly.
    Ron Martin
    Balance Technology Inc.

    Hi,
    Perhaps you use references to windows in LabVIEW. If you get those
    references with a full path (e.g. c:\code\subvis\vi1.vi), this will work
    while in LabVIEW environment. But when an application is build, this will
    fail, because the vi is no longer there. Try using the name in a string
    instead (the OpenVIReference is polymorphic) with only the name of the vi in
    it (e.g. vi1.vi).
    There are some other isues that change when building an application. Most of
    them are paths that change, and references that fail to open because of
    them.
    Regards,
    Wiebe.
    "cpuwzd" wrote in message
    news:[email protected]...
    > I have created a large application that is split between VB 6 and LV
    > 6.1. The LabVIEW portion runs in the background, except that the VB
    > portion can request that a LabVIEW user interface be presented on
    > demand. Any time after this LabVIEW user interface has been opened
    > and closed, opening and closing another application (or even just
    > hiding a top-level window in another application) will cause LabVIEW
    > to close, taking my background processing with it.
    >
    > If the LabVIEW code is running as source code, LabVIEW prompts me
    > before closing. However, when the LabVIEW code is running as an
    > executable (.exe), the executable closes without prompting in this
    > circumstance.
    >
    > The scenario can be reproduced with a standard LabVIEW sample program.
    > Proceed as follows:
    >
    > 1) Open VBToLV.vbp (the example program distributed with LabVIEW 6.1).
    > 2) Start the VB program running.
    > 3) Press the Launch LabVIEW button on the user interface of the VB
    > program.
    > 4) Enter an expression in the text box provided.
    > 5) Select Display VI Front Panel.
    > 6) Press the Run VI button.
    > 7) Close the VI front panel by clicking its "X" button.
    > 8) Open any handy application, such as Windows Explorer or Notepad.
    > 9) Close this most-recently-opened program.
    > 10) The LabVIEW Exit screen appears.
    > 11) Exit LabVIEW.
    > 12) Press the Run VI button.
    > 13) An error occurs because LabVIEW has closed.
    >
    > If the LabVIEW code had been built into an executable and called
    > accordingly, there would have been no LabVIEW exit screen. The
    > executable would have just exited silently.
    >
    > This is not the way a COM server is supposed to behave. The VB
    > program is still holding a valid reference to the server and it should
    > remain open.
    >
    > It appears that LabVIEW is monitoring the total number of top-level
    > windows that are open. I suppose that this is how LabVIEW figures out
    > when its own FP windows have been closed. In this case, it doesn't
    > notice that all of its windows have been closed until some other
    > window closes.
    >
    > I have a work-around, but it's ugly.
    >
    > Ron Martin
    > Balance Technology Inc.

Maybe you are looking for

  • Error while doing PGI

    while doing PGI i am getting error : "     Item 000010 requires exactly 10 serial numbers for the asset " i tried by Extra --> serial no here i am not able to do anything, there is no automatic button in pop up screen. and in mm02 also i tried in sal

  • Won't detect the router.

    Hi, I am trying to install a WRT54G model router. It goes through the setup and all the lights and everything else is correct but when the software tries to detect the router it always says the is cannot detect it.  I am able to access the router wit

  • [Reskill] How can I see only my agents/skills?

    Hello, My name is Eric and I would like to know how can I see only agent in my team using Reskill facility. Now I can see all the Skill Groups, but I would like to see only the Skill groups that are agents in my team. I attached a image about it.

  • Can't seem to free enough space on iphone 4 for ios7

    Seems others have this problem too... removing pics and videos, hardly any apps (just not a major app person)  voluntary apps are just WWF, Candy Crush, Amazon, Ebay, FB and Twitter. Linked in, Translate, Pic Stitch, ESRB ratings and Weather. Is ther

  • CSCtj51376 - IE Proxy setting is not restored after Anyconnect disconnect on Win 7 - 1

    I have the same problem, AnyConnect 3.1.04059 and all versions of Windows and Internet explorer. Example: Windows 7 and IE 9.0.8112.16421.