How can I allow a sub-vi to run independent of the main program once it has been called while still sending data to the sub-vi

I have a main program where I call a sub-vi. In this sub-vi, there is a while loop that is used to wait for commands in the sub-vi. While the while loop is running, I cannot continue with normal operation of the main program. I would like get the sub-vi to run independently once it has been called, but not hold up the main program. As well, I need to still be able to send data to the sub-vi

One way is to use VI Server, which has been mentioned by others. This will allow you to start another VI (by name) and run it entirely independently of the calling VI. This is a good way to start various independent VIs from a main menu, for example. None of the VIs thus called need have any connection to the others.
Another way it to have the SubVI in a separate while loop on the calling VI's BD. Then, use a local var to start this sub VI from the main loop. The calling VI sets a local START bit and continues running. The sub VI's while loop watches for this START bit to go true, and then runs the Sub VI. The advantage here is that one can more easily pass arguments to the SubVI when it is started, using local vars, which are preferable to globals. Once the Su
bVI is running, however, you must use a global Stop Bit, set in the calling VI, to stop it when the calling VI exits, or the calling VI will hang up, waiting for the Sub VI to close and exit its while loop.
If you need an example of this, email me. ([email protected]). I can also recommend Gary W. Johnson's excellent book which discusses this. ("LabVIEW Graphical Programming", 2nd Ed).
Note: Where possible, I try to call a subvi from within the main VI, wait till it is done, then continue. It avoids the use of locals & globals, and results in cleaner code, with fewer "race" conditions. However, the main VI stops until the subVI is done, hence one should make the subVI modal.

Similar Messages

  • How can I delete my old iCloud account cause I forgot my password and my email has been block. Please I need help urgently

    How can I delete my old iCloud account cause I forgot my password and my email has been block. Please I need help urgently

    Contact the Apple account security team for assistance resetting your password: Apple ID: Contacting Apple for help with Apple ID account security.

  • When trying to update my IPad apps I am getting the message "Your Apple ID has been disabled". Still have more than 50$ in my account, so what does this mean ?  What can I do to get my ID enabled again ?

    when I am trying to download IPad updates I get the message "Your Apple ID has been disabled". What does this mean? How do I get my ID enabled again? Still got more than 50$ in my account !

    Reset your Apple ID password here >  Apple - My Apple ID
    More information here >  Apple ID: "This Apple ID has been disabled for security reasons"  appears

  • How do you fix the error message, An error has been encountered while writing the current CD list.

    The error message goes on to say, Please check your device settings or consult your device documentation regarding resolving writing errors. Which device do you think they are referring to? The message came up half way through writing Track 5. So I selected a second set of tracks and got the same error message, this time at Track 3. I tried to play written CD (imation CD-R 1x 52x 700 mb). Opened the tracks using Windows Media Player. First time I was able to play one or two tracks, next time Window Media Player gave me the error message error message C00D0FAB. I have twice before successfully recorded the tracks using a Rode Podcaster, mixed them down and successfully wrote two version of my audio book. Now its not working. Any solutions?

    David GW wrote:
    The error message goes on to say, Please check your device settings or consult your device documentation regarding resolving writing errors. Which device do you think they are referring to?
    Sorry, but I would have thought that this was rather obvious! The only device capable of being written to under these circumstances is your CD drive; after all, it's a CD you are trying to create...
    You have two potential major causes of problems here. The most common cause of these difficulties is the disks themselves - you only need a batch with poor reflectivity to cause all sorts of read errors, so that's the first thing to try - using a different brand of disk to write to. The second thing you have to realise is that CD writers have a finite life - the lasers in them simply don't last for ever, and towards the end of their lives the power behaviour tends to be a bit erratic, and it tends to fall off somewhat - which causes the same sorts of errors, simply because the dye doesn't get evaporated efficiently. This causes mis-formed pits, hence the read errors. The only solution here is to install a new drive.
    When it comes to reading, commercial CDs have a much higher reflectivity than ones you write yourself, so often these will play whilst your own will fail - a common cause of confusion, this. But it's worth checking; if you get failures to reproduce all of the tracks from a commercial pressed CD, then almost certainly your drive is failing.

  • How can I have multiple WINDOWS (NOT tabs) with INDEPENDENT content?

    How can I have multiple '''windows''' (''not ''tabs) with '''independent''' content?
    I used to be able to open separate windows with Firefox, and the content could be completely different in each window. No matter what I did in any window, no OTHER window open at the time, nor any of the content therein, was affected. This is no longer the case and it is extremely frustrating for me.
    I do ''not ''like tabs and do not use them. I prefer multiple windows plus I am so used to using them, for so many years now! But with v9.0.1 I suddenly can no longer do what I've always done with my browser without this aggravating problem constantly reminding me that I can't have what I want in firefox anymore.
    Or can I? Does anyone have a solution I don't realize exists?
    Thanks,
    Sowelu

    AppleScriptObjC can use pretty much everything in the Cocoa API, so yes, it is possible.
    Note that a view is not the same as a window, and a window can have multiple views. There are also many ways to implement "tabs";  take a look at some of Apple's applications - they use various mixtures of toolbars, checkboxes, and radio buttons, for example.  An application such as this will be a lot more involved than what you have done so far though, using custom classes and subclassing existing ones, so be prepared to do a lot of reading and researching.

  • How Can I Print from my Microsoft Surface Running Windows 8 RT?

    How Can I Print from my Microsoft Surface Running Windows 8 RT?
    Most new wireless printers won’t have a problem printing from the Microsoft Surface with Windows 8 RT.  All you should have to do for these printers is tell them to print and they will.  Older wireless, Ethernet, and USB printers might not have an officially supported driver in Windows 8 RT, but there is a way to get the printers working.  There are different requirements depending on how the printer is being connected to the Surface. 
    Note:  All steps below are only for PhotoSmart, OfficeJet, DeskJet, and other HP Inkjet printers.  These steps are not for Laserjet printers or printers from other manufacturers.  These steps may not work for all Inkjet printers.  If these steps don’t work, try different drivers from the list until you find one that will work (you’ll understand what I mean once you follow the steps below).  If none of the drivers work, your printer will not work with the Surface.
    For networked printers (wireless or Ethernet), all you need is either the Surface keyboard, or an external USB keyboard to connect to the Surface.  This just makes anything you have to type easier to type.  You will also need to have the Surface and the printer connected to the same network. 
    Starting from the right edge, swipe your finger left on the Surface screen to bring up the Charms bar.
    Touch Search.
    Below the Search Box, touch Settings.
    In the search Box, type Devices and Printers.
    Touch Devices and Printers.
    Touch Add a Printer.
    Touch “My printer is not listed”.
    Select the TCP/IP option and touch Next.
    Enter the printer’s IP address and touch Next.  Note:  You can get this from the printer’s Network Configuration Page, or from your router’s DHCP list.
    The Surface will locate the printer and try to install it.  The install will fail and the Surface will ask you what you want to do, search the internet for the driver, or manually install the driver.  Choose to install the driver yourself.
    Touch “I want to choose from a list of drivers”.
    If no drivers appear in the list, make sure the box next to “Show compatible drivers” is not checked.
    Choose HP from the Manufacture list.
    Choose DeskJet PCL 3 Class Driver from the Drivers list.  If that driver doesn't work, try using the Photosmart PCL3 driver, or the Officejet PCL 3 driver.  (Thank you JonW for letting me know about these other alternates. )
    Touch Next.
    Touch Finish.
    Test printing.
    For USB connected printers, you will need a USB cord to attach the printer to the computer.
    Connect the printer to the computer via USB.
    Windows will try to find the drivers but will not be able to.
    Here Windows may ask you if you want to choose the driver to install.  If it does skip to step 14 below.
    Starting from the right edge, swipe your finger left on the Surface screen to bring up the Charms bar.
    Touch Search.
    Under the Search box, touch Settings.
    In the Search box, type Device Manager.
    Touch Device Manager.
    Touch View and select Show Hidden.
    Search for the printer in the Device Manager.  It should be under Other Devices with a yellow caution sign beside it.
    Select the printer from the list.
    Touch Action.
    Touch Update Driver, or Install whichever one it displays.
    The Surface will ask you what you want to do, search the internet for the driver, or manually install the driver.  Choose to install the driver yourself.
    Touch “I want to choose from a list of drivers”.
    If no drivers appear in the list, make sure the box next to “Show compatible drivers” is not checked.
    Choose HP from the Manufacture list.
    Choose DeskJet PCL 3 Class Driver from the Drivers list.  If that driver doesn't work, try using the Photosmart PCL3 driver, or the Officejet PCL 3 driver.  (Thank you JonW for letting me know about these other alternates. )
    Touch Next.
    Touch Finish.
    Test printing.
    -------------How do I give Kudos? | How do I mark a post as Solved? --------------------------------------------------------
    This question was solved.
    View Solution.

    Hope this helps.  
    -------------How do I give Kudos? | How do I mark a post as Solved? --------------------------------------------------------

  • Is there a way we can use Acrobat Standard to assign a password for opening of signed PDF file once it has been downloaded from DocuSign?

    Prior to implementing DocuSign, we used to scan manually signed document to a PDF file and then store the PDF file in a HR file share.  We would then use Adobe Writer Standard to assign a read/write password to the PDF file.  We now use DocuSign to have documents electronically signed and download the DocuSign PDF in our HR folders.  However Adobe Acrobat Writer does not allow us to assign a password.  It pops up a dialog box saying ""you cannot change security on this document because the document is signed or certified".  We want to continue being able to store the PDF in our HR file share with passwords to restrict who can view off the share.  Is there a way we can assign a password to the PDF file once it has been downloaded from DocuSign?

    Thanks Bernd.  We can't assign passwords before signature process starts as people will not be able to open the PDF without knowing the password.  I think we will change our process and simply leave the electronically signed PDF in DocuSign and then "print" the PDF to our local file share for internal HR purposes.  thanks again.

  • How can I allow other users on my macbook to view my iphoto library when th

    How can I allow other users on my macbook to view my iphoto library when they are logged in. I do not have a network, and the users (my family) all log in seperately when they use the computer. Does anyone know? Thank you.

    rdoss
    Welcome to the Apple Discussions.
    If you want others to be able to see the pics, but not add to, change or alter your library, then enable Sharing in your iPhoto (Preferences -> Sharing), leave iPhoto running and use Fast User Switching to open the other account(s). In the other account(s), enable 'Look For Shared Libraries'. Your Library will appear in their source pane.
    Remember iPhoto must be running in both accounts for this to work.
    Regards
    TD

  • How can I allow a user (client) to choose a local image file (on his hard d

    How can I allow a user (client) to choose a local image file (on his hard drive) and modify it using an applet from his browser ? I am trying to develop a web page that enables the user to choose an Image file, manipulate the image using a java applet, and display the results.
    Using Java�s �JFileChooser� does not work when called from a browser, probably due to security privileges issues. On the other hand, I can choose and upload any file using a JavaScript form:
    <FORM METHOD="POST" ENCTYPE="multipart/form-data" ACTION="process.asp">
    <INPUT TYPE=FILE NAME="file1"><BR>

    It seems that I can choose an image file with a Java script form and process an image with an applet. How can I choose a file AND process it locally ?
    (I do not wish to upload the file to the server using JavaScript form and then back to the client�s applet for processing since it will be a tremendous waste of resources).
    Will appreciate any solution.
    Thanks !
    ( my email is: [email protected] )

    "Using Java�s �JFileChooser� does not work when called from a browser, probably due to security privileges issues. "
    You can do this if you sign the applet...

  • I'm trying to use a madcatz controller on the mac but it turns on for 2 seconds and turns off. the system profiler picks it up as a xbox 360 gamepad but says its not been configured. how can i allow my self use this with my games.

    i'm trying to use a madcatz controller on the mac but it turns on for 2 seconds and turns off. the system profiler picks it up as a xbox 360 gamepad but says its not been configured. how can i allow my self use this with my games!

    I have exactly the same problem.
    I'm a little peed-off with Microsoft on this. The original wireless controller I have doesn't work either since the cable I'm using is 'just' the charge and play cable, so a direct connection to my Mac won't work with this cable. It's a cable for god's sake. Why on EARTH put any limitations on this!?!?
    Next I learn I need an additional USB wireless receiver from Microsoft to get my original 360 controller to talk to my Mac. As I certainly don't want to fork any more microsoft dollars on this, this is not an option.
    Next I think, yes! I have a MadCatz 360 wired USB controller. This should surely do the trick just plugging it in and the way I go. But oh no, for some reason I plug my MadCatz Xbox360 controller in, it flashes a few times then switches off and can't be turned on again.
    The System Profiles recognizes it as a MadCatz 360 device controller but that is about it, but the ontroller software I download for the System Prefs (360Controller, USBOverdrive etc) don't even recognize the controller as being plugged in.
    What the **** Is The Microsoft Deal with all of this!?!?
    PS: Oh, and I forgot to mention, there are No drivers for device 4716 that I can find on the MadCatz website, or am I going blind?
    If anyone has a link, it would be appreciated.
    Message was edited by: nostrawaggus

  • How can I allow the application to line through a field that has been locked after being digitally signed?  We have multiple sections on a form with some fields being proposed information and other in another section having the approved information. once

    How can I allow the application to line through a field that has been locked after being digitally signed?
    We have multiple sections on a form with some fields being proposed information and other in another section having the approved information. once the approved information is entered we line through the proposed field so the data entry clerk won't pick up the wrong information.  However we are receiving an error when attempting to enter data  in the field which we have this edit.  Error property: line through cannot be set because doing so would violate the document permission setting.  any idea how we can get around this issue?

    You can control which fields are locked down after signing by setting up a collection. Then those that are not locked can be changed after signing. If this is not possible, then the line outs must occur prior to signing.

  • How can I allow a customer to upload an image to be stuck onto a mug or t-shirt and then view what it would look like on that mug or t-shirt?

    How can I allow a customer to upload an image to be stuck onto a mug or t-shirt and then view what it would look like on that mug or t-shirt?

    In the absence of drivers, a rather nasty way to achieve this would be to ensure that your software always occupies the same portion of the screen such that you know the position of the 'sample' button. You could then simulate a mouse click at those coordinates when you require a sample to be taken.
    This would not be a robust solution as a user could move or minimise the window, or other windows could also find their way into the critical position and cause the application to work incorrectly or cause unexpected things to happen.
    However, if you just need a short term work around this method might be acceptable, just be aware of the risks if you try it.
    Searching for simulate mouse clicks and having a play is the way forward.
    As an example of simulating a mouse click in a certain position, have a look here:
    http://forums.ni.com/t5/LabVIEW/Programatically-Se​lecting-a-ring/m-p/1463242#M557128
    Ian

  • How can I allow or block the use of local storage by specific sites for all users in my domain.

    How can I allow or block the use of local storage by specific sites for all users in my domain.
    I tried to do this by MMS.cfg but it is not working, the problem is also described in your blog "http://forums.adobe.com/message/3272907".
    What I Want -: "I want to allow youtube for all the users in my domain and this should be listed in Control panel-->flash player-->storage-->local storage setting by site-->websites tab."

    Wow, cor-el... Did you -intend- your reply to be inane, inappropriate and completely inapplicable?
    How would that possibly do what I asked?
    You -might- consider '''''reading''''' the question, -=before=- you reply. And it's really okay to NOT REPLY if you just don't know. Just an idea.
    Feel better, real soon.

  • TS1702 I just paid ten dollars for an app called flash detect. It is a total scam ... I want my ten dollars back. How can apple allow these apps on their store???

    I just paid ten dollars for an app called flash detect. It is a total scam ... I want my ten dollars back. How can apple allow these apps on their store???

    You can try the 'report a problem' link from your purchase history : log into your account on your computer's iTunes via Store > View My Account and you should then see a Purchase History section with a 'see all' link to the right of it ; click on that and you should see a list of your purchases ; find that app and use the 'Report a Problem' link.

  • How can I allow the apHow can I allow the application to line through a field that has been locked after being digitally signed? plication to line through a field that has been locked after being digitally signed?

    How can I allow the application to line through a field that has been locked after being digitally signed?
    We have multiple sections on a form with some fields being proposed information and other in another section having the approved information. once the approved information is entered we line through the proposed field so the data entry clerk won't pick up the wrong information.  However we are receiving an error when attempting to enter data  in the field which we have this edit.  Error property: line through cannot be set because doing so would violate the document permission setting.  any idea how we can get around this issue?

    HI,
    Kindly post this query in Acrobat forum:Acrobat
    Regards,
    Florence

Maybe you are looking for