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 .

Similar Messages

  • Can i run two widgets at the same time on the same page?

    Can i run two widgets at the same time on the same page?
    Hi
    I have created and published 4 free ibooks and i would to run two widgets
    - a countdown clock
    - a review test
    at the same time on the page. Can i do that?
    Thanks in advance
    Haris

    thanks for your answer. Yes indeed HTML widgets run only full screen (snif snif). I consider this as a "distinguishing treatment".
    One solution  i read !!!!! was to create through keynote a countdown clock, to export to quicktime move and to imported at iBA predefined widgets. of course this is not the solution i need.
    So, in order to have at the same widget and run together a count down clock and a preview test (20 questions)  i must
    1)"hack" the preview widget and insert a countdown clock
    2) create a preview test using iAD.....
    thanks again
    haris

  • Can i run two PIDs at the same time?

    Hi
    I want to control speed of the rotating shaft and force applied by the pneumatic cylinder using two different PIDs from the same program.
    I managed to get two PIDs to work separatly using PID control loop VI`s supplied with labview 6.1 (I got Kc, I and D right, so there is no overshoot). When I try to run both PIDs within my vi they don`t work. I again tried various gains and managed to get one PID to work but not the other. Then through trial and error I managed to get a second PID to work but I had to change refresh time of the FOR loop from 100msec to 1msec.
    Does anyone have experience with running two PIDs in the same program? Does the timing of the FOR loop influence PID contorller? Does equiring of other data while
    running PID has effect on the PID?
    I would really appreciate any comments/help. I am pretty thrustrated at this time
    Thanks

    I don't know whcih PID vi's you are using but I had similar problems. I
    solved it by going to the VI properties of the PID subvi, select category
    execution and make sure that reentrant execution is selected. Only then two
    instances of the PID vi can run without interfering each other.
    Martien
    solved by setting the execution mode
    "smartlander" wrote in message
    news:[email protected]..
    > Hi
    >
    > I want to control speed of the rotating shaft and force applied by the
    > pneumatic cylinder using two different PIDs from the same program.
    > I managed to get two PIDs to work separatly using PID control loop
    > VI`s supplied with labview 6.1 (I got Kc, I and D right, so there is
    > no overshoot). When I try to run
    both PIDs within my vi they don`t
    > work. I again tried various gains and managed to get one PID to work
    > but not the other. Then through trial and error I managed to get a
    > second PID to work but I had to change refresh time of the FOR loop
    > from 100msec to 1msec.
    > Does anyone have experience with running two PIDs in the same program?
    > Does the timing of the FOR loop influence PID contorller? Does
    > equiring of other data while running PID has effect on the PID?
    > I would really appreciate any comments/help. I am pretty thrustrated
    > at this time
    > Thanks

  • "Newbie" Unable to run two actions at the same time please help

    Hello
    I'm a newbie (2 weeks) on Labview, so I hope my problem will sound easy for some of you.
    I want to read a file and at the same time get the reading from my sensors (4 sensors).
    My program is working when I do each thing in a different program but when I add them the program only read the text file and stop reading the sensor signals...I attach the program file.
    The goal is with the text file to add an exact time for each sensor signal I record.
    Is there any other possibilities to include a time with the sensors signals recorded ? I need to do this to synchronize the sensors values with CAM program.
    Thanks
    /Xavier
    Ps I used a scan rate of 12000/s but I try 1000/s
    and the sensor acquisition is still not working
    Attachments:
    test3Rdif2802.vi ‏493 KB
    readfile.txt ‏195 KB
    sensoracquisition30s.txt ‏210 KB

    from a glance at your code, it appears that you have nested a loop to read your file, inside a loop to read your sensors. this means the nested loop to read your file must finish before the outside loop to read your sensors can run through another iteration. what you want to do is separate the two loops to run independently of each other (in parallel). use a global variable to know when to stop the loop (if they need to stop at the same time) and if you need to pass data between the loops use a queue (easiest) or you can also use globals with semaphores.

  • Run two vi at the same time

    I WANT TO HAVE A VI RUNNING (WHILE LOOP, COLLECTING DA DATA, OPERATING AN ACTIVE TEST, ETC.) AND WHILE THAT IS GOING ON, OPEN ANOTHER VI (FROM WITHIN THE MAIN PROGRAM) TO DO SOME SEPERATE FUNCTION (PRINT OUT A LOG REPORT, PREVIOUS TEST RESULTS, ETC.). BUT EVERY TIME I OPEN ANOTHER VI's WINDOW, THE MAIN PROGRAM WINDOW's WHILE LOOP STOPS LOOPING.
    I AM SURE IT IS JUST A SIMPLE SETTING, BUT SO FAR HAVE NOT BEEN ABLE TO FIND THE RIGHT SETTING OR AN EXAMPLE OF TWO VI LOOPING AT THE SAME TIME.
    THANK YOU FOR THE HELP.
    DOGFACE

    I HAVE ATTACHED A ZIPPED FILE CONTAINING TWO SAMPLE FILES (CARL1MAIN.VI AND CARL1SUB.VI) THAT SHOW WHAT I WAS TRYING TO DO. I HAVE BEEN USING TEST POINT AND HAVE RECENTLY SWITCHED OVER TO LABVIEW, SO I AM STILL LEARNING. I TOOK BOTH BASIC COURSES (AND SCHEDULING ADVANCED COURSES IN LABVIEW). BUT BECAUSE OF THE DIFFERENCES BETWEEN LABVIEW AND TEST POINT, I MIGHT BE STRUCTURING THIS WRONG.
    I AM OPEN TO ANY SUGGESTIONS.
    THANKS.
    Attachments:
    CARL1.zip ‏16 KB

  • Running two EXE at the same time

    I have two EXE.
    I cannot run both at the same time.
    What should I am doing wrong?

    Yes, these are two different applications with different names.
    I double-click on the first EXE and I see the start-up form. Good so far.
    I double-click on the second EXE and I don't see the start-up form. Instead the "icon" for the first EXE in the taskbar flashes.
    I am running Visual Basic Express 2010.
    Are these some settings for the compile that I should be using?
    Individually the two EXEs work fine. 

  • Running two methods at the same time

    Hi, I need to run a bubble sort and an insertion sort at the same time.
    How can I do this? Threads?

    It doesn't work when I put in the algorithms though.
    It works when I do this:
    Bubble class:
              for(int x=0; x<20; x++){
                    try {
                        Thread.sleep(0000001);
                   } catch (InterruptedException e) {
                        return;
                   System.out.println("yes");
              }Insertion class
              for(int x=0; x<20; x++){
                    try {
                        Thread.sleep(0000001);
                   } catch (InterruptedException e) {
                        return;
                   System.out.println("no");
              }but when I try it on an algorithm it doesn't do anything
    public void insercionDirecta(int [] a, int[] num){
              for ( int i = 1; i < a.length; i++ ){
                 int aux = a;
         int aux2 = num[i]; //coordenadas y
         int j = i - 1;
         while ( j >= 0 && aux < a[j] ) {
         a[j + 1] = a[j];
         num[j+1] = num[j];//
         j--;
         a[j + 1] = aux;
         num[j+1] = aux2; //
         try {
                        Thread.sleep(60000);
                        } catch (InterruptedException e) {
                        return;
         System.out.println("1");
         }]/code]
    I've tried different amount of milliseconds and it doesn't work....
    my run() is like this
         public void run()
              int [] a = {5,2,4,3,1};
              int [] num = {1,2,3,4,5};
              insercionDirecta(a,num);
    } any ideas?

  • Is it possible to run two applications at the same time on ipad.

    Hi,
    I would like to know of it is possible to play media apps (movies or bbc iplayer programs) while surfing the Internet with safari on ipad2. Even if I can't actually see the video while I'm surfing the net but can still hear it and can jump between the Internet and the movie without the movie stopping.
    Somehow I think the answer to this is no but then I also thought it wasn't possible to do print screen images with ipad until someone showed me how.
    Can anyone help?
    Thanks :)
    Locard

    Prior to iOS 6, it was possible to "multitask" with some media like playing audio from YouTube video while playing a game or surfing the web, but it changed in iOS 6.
    There are always a few surprises in major iOS releases, so who knows, it might work again in iOS 7. I never set my expectations for anything other than what Apple talks about publicly, but like I said, you never know.

  • How can I start two Vi at the same time?

     I have two Vi's, each of these Vi has a stop button. I want to start these two Vis at the same time. I also want to be able to stop the two Vis at the same time. What should I do? Thanks.

    One way to start them is with an Invoke Node and the Run method. You can then stop them with the Set Control Value [Variant] method. When you use the Set Control Value [Variant], you just have to specify the name of the front panel control that stops the while loop. Older versions of LabVIEW only had the Set Control Value method in which you had to use the flatten to string function to pass the Type Descriptor and Flattened Data.
    Message Edited by Dennis Knutson on 03-20-200609:35 AM
    Attachments:
    Run Method.JPG ‏44 KB

  • How can I compare more than two VIs at a same time in labview 2009

    How can I compare more than two VIs at the same time. I am an Lab Engineer I have to check assignments submitted by students and I want to know how many of them are copied from each other. Labview compare VI can only compare two VI at a time while I want to check about 30 VIs at same time.
    Regards,

    I'm not aware of a tool to compare multiple VIs.  If you don't find anything, consider posting this to the LabVIEW Idea Exchange to expose this idea directly to NI R&D.
    Thanks!
    - Greg J

  • Singletons running on two servers at the same time

    Hello,
              we faced one interesting situation with our application, running on clustered BEA Weblogic 9.2. We implemented some Singletons (ie. Singleton Service in a Weblogic cluster) and they are running fine. Most of the time.
              Common scenarios: cluster is started -> the singletons run on one server; the server is brought down -> the singletons are started on the second server.
              However, we had recently two situations where the Singletons started on both servers! Here they are:
              1) We use Database Migration Basis and we have a dedicated table for Weblogic to capture current state of the singletons. Due to the fact that database (Oracle RAC) was partially available one of the Managed Server could not get the lease and probably assumed that no singleton is running, therefore started the singletons locally.
              2) Network outage: we had several minutes where none of our servers could communicate between them (neither between SASU MS nor with the database). Consequence: each MS decided to start the singleton locally (after some time, which I assume is the waiting time). Once the network came back the servers could communicate again but the duplicate singletons are not deactivate, so they are running in parallel.
              Anyone experienced the same or similar issues? How to prevent the above? Is the Consensus Migration Basis a better choice? (I think yes for #1 but not for situation #2).
              Any helpful answer is appreciated.
              Thank you, best regards,
              Remus.

    In general its not a good idea.  Running PSConfig will try to establish a lock on the configuration database.  Doing that from two servers at the same time may cause the update to fail.
    Paul Stork SharePoint Server MVP
    Principal Architect: Blue Chip Consulting Group
    Blog: http://dontpapanic.com/blog
    Twitter: Follow @pstork
    Please remember to mark your question as "answered" if this solves your problem.

  • My MacBook is almost two years old and has started running really slow. It gets bogged down when it is running different programs at the same time, like Safari and Pages. It didn't react this way until recently. Any advice would be very welcome.

    My MacBook is almost two years old and has started running really slow. It gets bogged down when it is running different programs at the same time, like Safari and Pages. It didn't react this way until recently. Any advice would be very welcome.

    Launch Disk Utility and select the icon of the internal drive (the drive itself, not the volume icons below it.) Is the SMART status "Verified?" If not, replace the drive immediately. If the status is "Verified," the drive may still be failing. Back up all data, if you haven't already done so. Reinstall Mac OS X, then run Software Update. Test with all wired peripherals disconnected. If it's still slow, you have a hardware problem.
    Mac OS X 10.6 Help: Reinstalling Mac OS X

  • Running pse on two computers at the same time

    I have installed pse 12 from the same disk on 2 computers.  One computer runs pse 12 and the other doesn't.  Is it because I'm only allowed to run the program on one computer at a time?

    Do you run pse 12 aat the same time on 2 macnines?
    No.  I must admit I don't have PSE12 yet.  I suggest wait for Barbara, Kelly or others who have PSE12 because they are in a better position to answer this than I am.
    Sorry for the confusion.
    BARBARA OVER TO YOU.

  • Using a Dell 2407WFP with two Macs at the same time?

    Hi ... I have a Dell Ultrasharp 24" WFP display that I was using with my old G4. Connectivity isn't the issue ... it works beautifully on both the G4 and my new Mini. I've read that I can put the VGA cable on the G4 (no biggie -- it's what I was using before) and I have the DVI on the Mini.
    What I want to know is: Can I (and is it wise to) have both machines running at the same time and toggle the display between the two or should I keep one machine off when the other is on? There is a button on the display for toggling between a variety of displays.
    I've activated file sharing, etc. on the old box, but there are some things I still can't do unless I'm on the G4 desktop -- mostly my graphic apps. I've been holding off from swapping cables around, but now it's getting to the point that I need to get back on the G4 because of apps that I don't have on the Mini.
    I haven't put the VGA cable back on the G4 yet. It seems like it -should- work -- I just need some verification that it will or won't futz up something. I think what I might be most concerned about is that the monitor isn't powerful enough to run both machines at the same time, but I could be wrong.
    The info at the Dell site is somewhat dated.
    TIA!

    I use a KVM switch with a Dell monitor that has DVI and VGA inputs. I only route the K an M portions (keyboard and mouse) through the switch. The computers connect directly via VGA and DVI to the Monitor, and then I use the monitor's switch to make the video switch. Works fine. Don't worry about taxing the monitor.
    I'd suggest buying the KVM switch from a vendor with easy return policies, since it can take a few tries to find a model you like.

  • How do I open two profiles at the same time?

    until i updated to Firefox 7 i got prompted to which profile i want to open every time i open firefox, i am using one profile to play and one for work. i get prompted the first time but not the rest of the time how do i fix it so that i can again run two profiles at the same time

    See:
    * http://kb.mozillazine.org/Using_multiple_profiles_-_Firefox
    * http://kb.mozillazine.org/Opening_a_new_instance_of_Firefox_with_another_profile

Maybe you are looking for

  • Opening a PDF in Illustrator

    Hello. If I open a PDF document I have been sent with Illustrator with a view to edit the document, will the file be a lower quality than if i were to edit the original Illustrator file? Thank you

  • New photographer, new camera, no support in Aperture:  Have you been there?

    So I can't ask when support for the EOS 450D (Canon EOS Rebel XSi) might mystically appear, because nobody ever talks about product release dates, I guess. So let me ask the opposite question - how often have updates happened in the past? Every month

  • Upcoming SAP Best Practices Data Migration Training - Berlin

    YOU ARE INVITED TO ATTEND HANDS-ON TRAINING Berlin, Germany: October 06 u2013 08, 2010     ` Installation and Deployment of SAP Best Practices for Data Migration & SAP BusinessObjects Data Integrator Install and learn how to use the latest SAP Best P

  • Plugins and twain for CS5

    I spent four hours trying to find the plugins and twain drivers for CS5 that the "read me" file for CS5 said was available for download. They even gave a link for them.  Finally called them and spent another hour and and a half on the phone and was t

  • IMac Ethernet Issue

    I have an iMac G5,1.8GHz, 10.4.11, 512MB. When the machine is started up in the morning, it will not connect to the internet. I have replaced the ethernet cable, and verified that the ethernet wall outlet to the patch panel as well as every switch an