Running two sub vis in parallel

I need to run two sub vis of a main vi simultaneously in parallel.
one sub vi is to run a demo and the other subvi is an application.The demo should run as a small window and the application should run in background

As i said
"If you have the demo vi as floating and the other vi as Default (not floating), the demo vi will allways stay on top"
If you still have problems, just post your vis, (without any unnecessary code), or ask something specific
Message Edited by Pnt on 04-21-2009 08:18 PM
Attachments:
Clipboard-2.jpg ‏44 KB

Similar Messages

  • How do I run two sub-VIs in parallel and have the faster VI continue to execute while the slower one completes?

    I have two sub-VI's - one that makes a laser distance measuring device turn on and return a distance, and another that moves a platform upon which a target is mounted that the laser reflects against. The laser VI takes well under 5 seconds to complet. The platform-moving VI, on the other hand, requires about 30 second. I would like to be able to have the laser on AS the platform moves. Of course, I can accomplish this by running the VIs seperately. However, I would like to control them from a master VI. Currently, the laser turns on as the platform begins to move but then turns off, since the master VI waits on the platform-moving VI to
    complete. Any help with this seemingly simple dilemma would be greatly appreciated.

    In order to synchronize the two VI's I would recommend using a global variable. By creating a global boolean, you can make reference to it in both programs, and control when your "laser" subVI terminates.
    Basically, have your "laser" subVI wait until the global boolean goes true to stop execution. Have the boolean initialized false, and then have your "platform" subVI write a true to the global boolean when it has finished running. This will keep you laser running until the platform has completed its move. Good luck!

  • How to run two sub vi simultaneously??

    i need to run two sub vi simultaneously in one main vi, becasue it is a must the two sub vi run exactly at the same time, but now i find that if i put they in one diagram ,in fact they are not exactly run at the same time. if you see in high light mode Just like the attached simple example code.  any one can help me to handle this to run the two subvi exactly at  the same time ? how to do it ? thanks so much.
    Attachments:
    how to run subvi simultaneously.vi ‏11 KB

    You are correct, they will not run at exactly the same time.  What is it you are actually trying to do?  What platform are you developing on? What version of LabVIEW? What processor does your target system have? This information is vital in order for us to assist you.  In a nutshell, unless you are running a real-time OS, then the OS you are running is not deterministic.  When you say "at the same time", what are you actually referring to? As a note, when executing parrallel operations in LabVIEW, the execution order may or may not be the same with the highlight bubble on as it is when it is running without highlight execution.  It is highly unlikely that you will be able to just run two sub-vis at the exact same nS.  If you are using DAQ boards, you accomplish this through triggering.  Please give a detailed description of what you are doing, and what you see the road blocks being.
    Thanks
    Paul <--Always Learning!!!
    sense and simplicity.
    Browse my sample VIs?

  • Synchronization of two sub-vis!

    I am working under LV 7.0 and I have to acquire videos through FireWire. The cameras are included into LV via an ActiveX control. So far so good. Because I have to control 2 cameras I have to start the capturing simultaneously. I have written to sub-vis where I initialize the cameras and start the capturing. Now I am wondering how to synchronize these sub-vis because sometimes the files have different lengths, up to 5 frames or about one second. Is there a way to get this thing to work?
    Thanks a lot in advance,
    Henning

    Hi Henning,
    Please take a look at the example included with LV that can be found at
    Help >>> Find Examples...
    Optimizing Applications >>> Syncronizing Tasks >>> Rendezvous with SubVIs.vi
    The help for this VI follows
    This VI is a demonstration of using a rendevouz. It creates a rendezvous of size 3 and then calls three parallel subVIs using this rendevouz.
    These subVIs use the rendezvous to synchronize the beginning of their loops. Each one displays integers to a graph. Finally, they all use the rendevouz to exit at the same time.
    Please note that this will get sub-VI sync'd up at the begining of each cycle. I have to raise the concern that the actual interaction of the sub-VI's with their respective activeX service may end up se
    quential if they all execute in the user interface thread.
    The technique illustrated in my cited example should get all of your files sizes to match up.
    I hope this helps,
    Ben
    Ben Rayner
    I am currently active on.. MainStream Preppers
    Rayner's Ridge is under construction

  • Re: Calling two Sub VIs using Test sequence

    Hii All,
    I created main vi and one sub vi...i wanna to call sub vi from main vi using test sequence and controller is Bollean.
    Means when the test sequence detects true condition it will run main vi and when test sequence detects False condition, it will run sub vi.. But sub vi is nit running...can some one tell me the solution...
    With Regards
    Puneet Kapoor
    CLA 2014
    CCVID 2014
    Solved!
    Go to Solution.
    Attachments:
    main.vi ‏18 KB
    sub vi.vi ‏6 KB

    thans for the suggestion...
    i got the solution for it n the VIs is in the attachment.
    Message Edited by puneet.kapoor on 12-12-2007 10:10 PM
    CLA 2014
    CCVID 2014

  • How to pass parameters between main and sub vi during parallel execution using the VI server technique?

    Hello All,
    I am working with the following example (from previous postings on this
    board) that demonstrates how to run a sub vi in parallel with the main
    vi.  I'd like to pass parameters between the main and sub such as
    the control (delay) and indicator (value) parameters of my subvi
    example.  Does any one know how to do this?  Parallel
    execution is important for me, I cannot just paste the subvi icon into
    my main diagram (two nested while loops...)
    Many thanks,
    Luis
    Message Edited by cascao on 08-16-2005 08:42 PM
    Message Edited by cascao on 08-16-2005 08:42 PM
    Attachments:
    VI_Server_technique.vi ‏32 KB
    SubVI_1.vi ‏19 KB

    cascao wrote:
    Hello All,
    I am working with the following example (from previous postings on this
    board) that demonstrates how to run a sub vi in parallel with the main
    vi.  I'd like to pass parameters between the main and sub such as
    the control (delay) and indicator (value) parameters of my subvi
    example.  Does any one know how to do this?  Parallel
    execution is important for me, I cannot just paste the subvi icon into
    my main diagram (two nested while loops...)
    Many thanks,
    Luis
    Luis, you can use the VI Server methods 'Set Control Value' and 'Get Control Value', as demonstrated in the attached examples.
    -Franz
    Attachments:
    VI Server.zip ‏26 KB

  • Can you run two separate vi's in parallel

    Can you run two seperate Vi's in parallel? Will this make response considerably slower? 
    Solved!
    Go to Solution.

    eugeniap wrote:
    Hi, what more detail is needed? They are two entirely seperate independent vi's with no shared sub vis.
    I just wanted to know if you can run two independent vi's at the same time, as in just have two seperate programs and run them.
    Separate isn't the same as independent.  That's why they wanted more information. 
    Your second question asked about slowed response.  That's another place you didn't offer anywhere near enough information for a true answer.  How many loops are you running in each of these independent VIs?  How many cores does your processor have?  Are you including a 0ms wait in your loops to avoid railing your processor?
    It's possible you'll see such a negligible change in processing that you won't notice.  It's also possible you'll feel like you're draining your system.  It's generally best to err on the side of too many details rather than too few when you're asking questions.  If you don't know the answer, you likely don't know how each piece plays a part in the answer.  More information allows others to pick out the relevant pieces and give you a better answer.

  • Using Open VI Reference to run a VI, on an RT target, with sub-VIs not loaded

    I've been using Open VI Reference and Call By Reference Node to remotely run VIs on my RT controller.  I
    usually wire string data to the vi path input, but this
    requires the VI to be in memory.  I understand (from LabVIEW help) that I can wire a path to this terminal and specify a VI that is
    not in memory, but is on the disk.  NI has an example that
    confirms my understanding.  I get errors when I attempt to do the same
    with VIs that have sub-VIs; I suspect that the problem is that
    the sub-VIs aren't in memory and that the top-level vi doesn't know where to
    look for them (because the paths aren't specified).  All of the sub-VIs are on the RT system (in the same directory), they're just not in memory.
    Is there a way to get LabVIEW to look for sub-VIs on the disk?  I don't want to rely on using a startup application and rebooting to get my VIs into memory.
    Thank you,
    Jim Carmody
    Software Engineer
    G2 Technologies
    www.g2tek.com
    Jim
    You're entirely bonkers. But I'll tell you a secret. All the best people are. ~ Alice

    Hi Jim,
    It sounds like you are going about calling VIs remotely the correct way.  It would be very helpful if you could post the errors you are receiving.  I also wanted to know if you saw the note at the bottom of the article that says your VI library must contain everything your top level VI calls.
    Eric A.
    National Instruments
    Distributed I/O Product Support Engineer

  • Show front panels of sub VIs when running a EXE (build application)

    I've created a exe file and it works fine. However, it only shows the front panel of main VI and I can not open sub VIs (it looks like they are all hidden). I know it can be done by creating a library file along with this exe file, but that's not what I want. I want to create a single exe file that shows several front panels, and that can be run with run time engine. Is there any way to show front panels of sub VIs by running a exe file?

    In the development mode, how are you displaying the front panels? Did you right click on the subVI and select SubVI Node Setup and choose 'Show Font Panel when called/Close afterwards if originallly closed' or did you choose the same options from VI Properties for each subVI. If the second, then the app builder will automatically retain the front panels of the subVI. If you chose the first option or if you are using VI Server to open a front panel, then the default setting in the app builder is to remove the front panels. You would then have to go the VI Setting tab in app builder and edit the settings.

  • Demantra - can it run with two Data Models in parallel?

    Hello,
    we face the following situation: we have items that have to planned on a daily basis; many other items, however, only need weekly planning.
    Demantra only allows one base time unit in its data model. If we choose "daily" for all products, the system size will increase enormously.
    If we choose "weekly" for all products, we can not plan our daily products for specific days in the week.
    The idea is now to set up a Demantra System with two data models in parallel. Is this possible? Would they reside in different databases or database users?
    The Business Modeller allows to create new models, but can they run in parallel? If they can, how would the user access the different data models?
    Thanks for any hints on this! 

    Can you please elaborate on this issue?
    Thanks

  • How to run two thread parallel y on two cores of dual-core ??

    I want to run two threads on two cores ???
    is there any package which support parallel computing??
    can we do this by using java.util.concurrency pakage??
    Thanks you
    please Reply.....

    vikram_p wrote:
    I want to run two threads on two cores ???ok
    Threads are automatically spread over the available cores, as the OS sees fit.
    is there any package which support parallel computing??Java does so without any external libraries.
    can we do this by using java.util.concurrency pakage??yes
    One question mark per question is plenty, thank you.

  • The same waveform shows on two independent VIs which are running simultaneously?

    Hi, I am a newbie of LV.
    My computer has two monitors. I am going to run two VIs simultaneously on this computer. One VI window will show on monitor 1 and the other VI shows on monitor 2. The two VIs have totally different looking, but they will show the same waveforms. Is it doable?

    Yes. Via many many many different methods.
    Look into shared variables in the help section.
    Use the rating system, otherwise its useless; and please don't forget to tip your waiters!
    using LV 2010 SP 1, Windows 7

  • Custom run-time menus within dynamically called sub-VIs?

    How do you use custom run-time menus within sub-VIs that have been dynamically called? I'm using Labview 6.02.

    Since you say within subVIs, I am assuming that you have the subVIs open their front panels when called. Each subVI must have the RTM defined when the subVI is created. You can use the same RTM for each one (use the open function in the menu editor).
    If necessary, you can dynamically add and remove menu items using the Application Control->Menu functions. I have some subVIs that add items to the main RTM when they are loaded and remove the items when they finish.
    Rob

  • Run two VIs at the same time

    Hello!
    I want to know how i can run two VIs at the same time.
    I mean that i want to run a second VI ( N.2) while another VI (N.1) is in
    execution without suspend it (N.1)
    If anyone has suggestions, please help me!
    Thank you very much.
    roby.

    If you say "run a vi", I assume that you have the VI open in LabVIEW, then press the run button. (Some of the earlier answers taks about programmatically calling VIs, which I don't think is the focus of your question)
    You can run as many VIs as you want at the same time. Simply press the run button of the second VI and they will both run.
    Of course you should ensure that they don't use the same resources (e.g. DAQ device, or listen on the same TCP port, etc.) In these cases, the second VI might fail. (Also if the second VI is a subVI of the first VI, you won't be able to run it seperately, because it will be already running.)
    LabVIEW Champion . Do more with less code and in less time .

  • Will a Rockford Fosgate P1000-1BD run two P3D412 subs?

    Will a Rockford Fosgate P1000-1BD run two P3D412 subs or would i need more power?

    The P1000-1 is 1 ohm stable so the P3's can be wired for a 1 ohm load and it will run them fine.
    I just had an installer put this in my truck after the other amp I bought went out while being tested after install.
    As I came to found out he blew my Alpine PDX-1.1000 because he wired it for 1-ohm whereas the alpine doesn't support it.  Although it does support 1000@4ohms which he should have wired it for in the first place had he paid attention.
    I'll probably go back to the PDX at a later period, I just have to wait on the warranty for it to go through.

Maybe you are looking for

  • CS4 Master Collection

    When trying to install CS4 Master Collection on Vista Ultimate the installation proceeds for 243Mb and then I get the error message "Installation of the following components has failed - Adobe Photoshop CS4 (64 bit). I have copied the 4 discs to hard

  • New hard drive won't select as startup disk

    I just installed a new hard drive in my 17" iMac flatpanel. I have it set as master, it comes up in Disk Utility, I erased it... again and when I tried to install from a disk, it told me I couldn't use it as the startup disk and had the stop sign wit

  • PO print sent to multiple mail id  via email

    Hi, We are using the standard output type NEU, medium 5 (external send).i maintained multiple mail id in single vendor master, i want to sent po print out for multiple mail id via email,after wt are all configurations do as a mm and abap consultant,p

  • Photos app to Lightroom

    I tried out Apple's new Photos app and it grabbed iPhoto and Aperture libraries. I don't  like Photos and I want to get those photos into Lightroom. Any ideas how to do that? I already moved an Aperture library on another computer months ago, using a

  • Can't stop auto email from support community

    Couple of days ago  I was logged on to the Apple Support Communities. Apparently while there  I  clicked on a wrong link and have been getting dozens Emails concerning  questions from that particular group.   I logged in  to my PROFILE  and revised e