Run two VI-s simultaneously

Hi,
I want to run two VI-s simultaneously. I have a VI (Lets say VI-1) that has 4 different parts (look at the image.). What I want is the following:
1. Run VI-1 (Has parts :A1,A2,B1,B2 and all parts will be active.)
2. While VI-1 is running, Run a different VI (VI-2) that needs to access the DAQ card and stage controls.
3. While VI-2 is running, VI-1 also keep on running but the DAQ and Stage parts are deactivated (Part A1 and A2 stays active but B1 and B2 deactivated).
4. VI-2 stops after it finishes its job (in ~1 min).
5. VI-1 keep on running and now as VI-2 stops, the DAQ and Stage parts are active again ( All A1,A2,B1,B2 active).
I was using a global variable to set the DAQ and stage part unavailable while the other program is running and then set the DAQ available again.
But that does not seem to be a good idea. It crashes frequently. Can anyone suggest a nice way to do this?
I did not attach my actual VI-s because it is big and it will require lot of other drivers.
Attachments:
VI-1.PNG ‏17 KB
VI-2.PNG ‏12 KB

Hi Babu726
I modify your example, but keep in mind that it might behave like some sort of state machine but that is not the best way in which you can program a state machine on LabVIEW have a look to this link here they explain how to implement a state machine.
In this example I have modify the code in order to help you with the notifyiers and show you how could you do run to different application and communicate two while loop. Also I have implemented a way to stop both while loops when you press the stop button or there is any error on any of the while loop.
Is not the best or efficient way or program but it might help to get on track.
Regards
Esteban R.
Attachments:
State_Machine.vi ‏28 KB
Control 1.ctl ‏5 KB

Similar Messages

  • 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?

  • Running two wireless networks simultaneously

    I am running two independent 802.11n 5GHz networks simutaneously. Each has a unique SSID. The first network is using channels 36 & 40 and the second network is using channels 44 & 48. When the first network is transmitting data and the second network attemps to transmit, the second network must wait until the first is finished and then start its transmission. If the first network then needs to transmit, it must also wait until the second network is finished. They keep flip-flopping back and forth. Is this normal? I know they have to wait until the "channel" is clear before they can transmit, but I'm using unique channels and unique SSIDs. Anybody have any idea what's happening and how to get around it?

    I agree. The Draft N Standard does provide for a "speed drop and wait" period if another N network is running in the same area. I would "guess" that if there is any possible way you can do so - and of course only you know your circumstances, etc., so it may not be an option for some very good reason- consider combining your two units into one network with two accesspoints available on it. This will eliminate the "stop and wait" stuff, give you better coverage than the two separate networks, and be far less sensitive to various slow-downs, etc. If you reason for separating them is because you're isolating the non-N equipment on one network, if you're lucky enough that it's maybe just one or two printers and/or a computer or two - see if you can hardwire them either back to the AEBS N Units or to a powered hub that's then connected to the Base Stations. Getting the 801.11 B&G units off the air and onto hard wired connections will speed them up greatly, and eliminate any problems with these units slowing down your blazingly fast N-network access. I know it sure as **** did so for me. I had two printers (one w/ Ethernet and 1 with USB Only) and I migrated both of them to hard wired connection at the AEBS-N/g. The one non-N computer was literally beside the base station/cable modem anyway - so plugging it into ethernet was no problem at all. The result is that the remaining five or six computers with an "N-spec" card in them jumped in speed to where they can easily outrun anything my Time Warner Cable modem can ever hope to deliver. My whole network suddenly feels like it's hard wired vs airport. Amazing benefit for getting two printers and one aging computer onto ethernet and off the airports.
    Good luck! But I am afraid that as long as your networks are seeing another "N" network in the area they're going to do this slow down and wait routine to avoid collision of data and retrys resulting from that.
    All the best,
    MI

  • Running Two Excel Macros simultaneously

    Hi,
    Can any one suggest me a way to run two excel macros from labview at the same time.
    Regards,
    SODLB

    Call them from syncronized parell loops...
    Why would you need to do that? Seems like a good way to cause an error...
    Use the rating system, otherwise its useless; and please don't forget to tip your waiters!
    using LV 2010 SP 1, Windows 7

  • How to run two Automator actions simultaneously?

    I want to perform two actions at once in an automator applcation, specifically Speak Text and Run AppleScript. I can only figure out how to run one after another. Is there a way to have text spoken as a script is run?

    This is what it looks like:

  • Run two X servers simultaneously with remote access.

    I have a htpc running a xbmc frontend. I would like to have it run a second X environment that I can access via vnc (or VNC like protocol) only. Does anyone have any recommendations or a better solution?
    I would like to have whatever application I am running remotely to continue running if I lose my connection. Would this be possible with screen and ssh X11 forwarding?
    Last edited by wasutton3 (2012-11-02 18:11:59)

    I have the same environment here, an htpc with XBMC. Have a look at xpra (xpra-winswitch-svn in the AUR). It allows you to forward single X windows that integrate more or less in your remote environment. I wrote few scripts to start different sets of applications remotely via ssh. It is often faster than forwarding an entire desktop and you can even have one X $DISPLAY per set of applications. It is by far the most elegant solution I have used.
    If you really need an entire desktop, I'd recommend NX instead of VNC.

  • How to run two vi's simultaneously?

    I am relatively new to labview, so I am not expert enough to figure this
    out,... yet. I am running a test setup using several pieces of test
    equipment. Therefore, the screen is pretty busy as it is. At certain
    points in the test, I want to click on a button that calls up a spectrum
    analyzer, which takes a snapshot of the data, then close. The problem is
    that when I "click" the call spectrum analyzer button, the other test
    equipment stops taking data. I then pretty much have to restart the whole
    shebang. Any help would be appreciated.
    thanks in advance,
    eric

    I've done something similar in the past and used the following
    available vi's Get Instrument State.vi with Preload Instrument.vi, Run
    Instrument.vi, Open Panel.vi and finally Close Panel.vi
    Its been awhile so I don't remeber exactly how I set them up.
    In article <8g0rpe$5do$[email protected]>,
    [email protected] (llertnac cire) wrote:
    >
    > I am relatively new to labview, so I am not expert enough to figure
    this
    > out,... yet. I am running a test setup using several pieces of test
    > equipment. Therefore, the screen is pretty busy as it is. At certain
    > points in the test, I want to click on a button that calls up a
    spectrum
    > analyzer, which takes a snapshot of the data, then close. The
    problem is
    > that when I "click" the call spectrum analyzer button, the o
    ther test
    > equipment stops taking data. I then pretty much have to restart the
    whole
    > shebang. Any help would be appreciated.
    >
    > thanks in advance,
    > eric
    >
    >
    Sent via Deja.com http://www.deja.com/
    Before you buy.

  • Two Dynadocks on Mac - two VGA displays simultaneously?

    I own two Dynadocks: PA3542EY1PRP and PA3541EY1PRP.
    They are connected to iMac 21 "Snow Leopard".
    All USB ports work but I can not run two VGA displays simultaneously.
    If one works, the other does not work.
    Drivers Display Links are updated.
    Surely there is a conflict.
    Any help is appreciated.
    Thanks a lot.

    Thanks for your answer. I also wrote to Display Link forum. Here is their reply (It's not the answer I was hoping for...):
    +Hi+
    +I think these were the first dynadocks Toshiba released. When manufacturing them, they managed to program them all with the same serial number - all zeros. This means multiple devices cannot be distinguished on the USB bus, so our software can only communicate with one dock at a time.+
    +Unfortunately this is a limitation and means only one of this first generation dynadock can be used at a time. Toshiba fixed this in their later dynadocks that are sold now.+
    +And no - there is no way for a user to reprogram the serial number. It has to be done in the factory.+
    +Wim+

  • Run two VI's simulateously?

    Hi,
    I was wondering is anyone has atip how I run two VI's simultaneously. The first VI is collecting data (through an instrument from HP) and I would like the second Vi to dislay the data while it is collected. I have seen some old VI's in a different program that use "Occurences", is that a solution? Or is there ab easier way?
    Thanks!

    Just adding a tidbit or two to devchandler's reply...
    Another key distinction is that a queue is best for lossless buffered transfer of data to exactly 1 reader from 1 or more writers.  A notifier is best for lossy unbuffered transfer of data to 1 or more readers from 1 or more writers.
    Notifiers let multiple independent parts of the code react quickly to read data immediately after it gets updated by some other part of the code.  If there are 2 writes between any reads, the data from the older write is displaced and unrecoverable.
    I've begun making a habit of basing my "global abort" status flags on Notifiers.  Anyone can write an abort condition and everyone can read it.
    -Kevin P.

  • Is it possible to run two different version of jre simultanously ?

    My client is using two diffrent application those supports two different versions of jre(1.2 & 1.4). If he uses jre1.2 only one application works ,and if he uses jre1.4 then the other works but the 1st shows error messege And vice versa.
    Is there any solution to shortout this issue?

    Is it possible to run two different version of jre simultanously ?Yes. In different processes, of course.

  • Does anybody know how to run two independent instances of Calendar simultaneously?

    I've enabled the Debug mode, and have 2 windows open at the same time but can't get them to operate independently. Anybody done this?
    The situation is that I work for a music school that uses iCal to keep track of music lessons for multiple tutors in real time, which sync to relevant tutor's iphones. We've just opened a second premises and would like to use the same system, but be able to monitor everything from either school.
    Debug mode will let me run two instances of Calendar simultaneously, but removing tutors' calendars from one of the Calendar windows removes them from the other.
    Basically I need one Calendar window open for each school, and for them to be independent from each other.
    Any takers?

    How about creating a new "Calendar" with in the same Calendar app?
    Calendar App---> File---> New Calendar
    Name each Calendar for each business location. Example if the original location is on Main St, name that Calendar Main St and the second on Broadway, name that calendar Broadway.
    The other solution could be the same as above, but File---> New Calendar subscription. But I have no idea how that works though.
    KOT

  • Run two versions of Mac OS Simultaneously

    I'll skip the reason, as to not confuse the issue.
    I have Mavericks installed on my Air, and Lion installed on an external drive. I can boot into either one, but I would like to run them both simultaneously. Is there VM software or something similar, that will allow me to run them both at the same time and switch back and forth?

    FatMac&amp;gt;MacPro wrote:
    c_ostmo wrote:
    ...Is there VM software or something similar, that will allow me to run them both at the same time and switch back and forth?
    Within the limits of Apple's End User Licenses, VMware Fusion will run everything from Snow Leopard (Server) to Yosemite.
    Exactly what I am doing right now. I have VMware running two OS plus the host. Mac OS X *forbidden name* as the host, Mac OS X Mavericks and Windows 7 as VMware. I can tell you this, when you install the Mac OS X on the VMware, it will have a 4:3 resolution. In order to fix that, you'll have to manually install VMware Tools. For Windows VMware machines, it's installed automatically.
    However, I do agree with the other two on battery life and RAM space needed. I can't tell you where the cut off point is, because I am on a Mac Mini with 16Gb of ram. So I haven't ran out... Only lost power but so did my whole neighborhood. If that was caused by the Mac Mini... I'm in trouble. lol
    KOT

  • Cannot run two webcams simultaneously under Mountain Lion

    I am working on  a film project for which I want to record skype calls while I at the same time record the "local" side of the conversation in HD quality with the C910 in the Logitech webcam software. Hence, I want to run two webcams at the same time. The in-built laptop camera in Skype and the C910 in the Logitech Webcam software.
    I have had a lot of difficulties doing thid in Mac OS X. On my old MacBook Pro under OS X 10.6.8. the logitech support recommended initiating the skype conversation with the Isight camera first and only then launching the Logitech software and starting the recording with the C910 cam. That worked fine.
    Now, however I have to do the same on a newer 13" MacBook Pro with OS X 10.8.4. and built in Facetime webcam and it just won`t work. Only one webcam functions at a time. If I launch the Logitech software first, the Facetime camera won´t work in Skype   And when I start a skype conversation first, I only get a black screen (no failure notice whatsoever, the C910 is still detected) in the Logitech Webcam Software.
    I am completely desperate and Logitech product service only told me I should contact apple support. Does anyone know how I can get both webcams running simultaneously?

    I am trying to do something similar...not necessarily with skype but need to connect two webcams (via wifi) and want both feeds displayed simultaneosly on imac.  hoping my reply boosts this thread

  • Is it possible to run two GPS tracking apps simultaneously?

    I have a couple of apps that track your position via GPS, like MotionX GPS. They run in the background under iOS 4.2.1. Is it possible to run two of these at the same time? Will they both get GPS updates from the OS as quick as they would if only one were running?

    Before someone says "try it and see if it works," I plan to. I just haven't had a chance yet.

  • Can a mac mini be set up to run two separate users at the same time?

    I work for a middle school and we need to purchase 20 computers that will just be used to run internet apps. Though we have all Macs, we don't have a big budget and for this one use only, we are condsidering purchasing inexpensive HP all-in-ones for about $450 each. However, I was wondering if a Mac Mini can be first set up with 2 partitions, install the OS on both partitions, then run two different users, with two separate monitors and keyboards, at the same time? This way, instead of purchasing 20 Windows computers, we could purchase 10 Mac Mini's (and displays) and save money, and still be supporting just one OS throughout the campus.

    If you setup a server, as in the Mac OS X Server Installation, pages 23ff show configurations, you can have multiple users, but they must all have computers.  Some installations can be done with dumb terminals but that is not what you seem to want.  Unix machines do have a multiple simultaneous user capability but you still have to have a computer for each user, again, not what you seem to want to do.  Right now there are two other users logged in on my Sun workstation on the desk behind me...they are logged in because I permit them to do so.
    And last night for an experiment I connected my iMac and MBP by ethernet wire, logged in on the iMac, then logged in on the MBP and from there on the iMac...but I set up the network to permit that and then disabled it again.  You can create security holes doing things like this.
    As dwb points out switching from Apple to PC equipment is a false economy that lures in administrators.  In our county school system we had a superintendent who hired a good friend...who had PC-industry ties.  Decided to remove all Apple equipment from the elementary schools and switch to PCs.  It wasn't long before they ended up going on a 4-year cycle of "refreshing" the equipment, i.e., completely replacing all hardware in every school on a four year cycle.  Since my wife was a Media Specialist, aka librarian, and responsible for technology in her school, every four years she had to develop a complete school map of where each teacher wanted the computers in their classrooms, complicated by where the technicians predetermined the locations of the network wire drops, of course.  then teachers get shuffled over the summer and all the plans are for naught.
    Anyway, there really isn't a solution to your problem except to buy a large number of computers and let each student use one and have them networked to a server, print server, printers, etc.  This is not inexpensive and cutting corners will only cause headaches for you.

Maybe you are looking for