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?

Similar Messages

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

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

  • 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

  • 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

  • How to run two versions of dreamweaver at the same time

    How to run two versions of any dreamweaver at the same time?
    There must be a way to do this.

    east99 wrote:
    > How to run two versions of any dreamweaver at the same
    time?
    > There must be a way to do this.
    Yes, there is: on two separate computers.
    You cannot run two versions of Dreamweaver simultaneously on
    the same
    computer. They can coexist side by side, but the operating
    system will
    not let you run them together.
    David Powers, Adobe Community Expert
    Author, "The Essential Guide to Dreamweaver CS3" (friends of
    ED)
    Author, "PHP Solutions" (friends of ED)
    http://foundationphp.com/

  • How to run two query  in the same preparedStatement

    Hi all,
    Please tell me how to run two queries in the same preparedStatement object ?
    In my module I have to run two queries and I don't want to make two methods for running two different queries.
    I just want to call this method for both of my queries.
    methodName(long param)
    Connection conn=null;
    PreparedStatement pstmt=null;
    //////////////// some coding
    Please Help !
    Thanks in advance
    amitindia

        public void foo()
            Connection connection = null;
            PreparedStatement stmt = null;
            try {
                connection = ...get from pool...;
                stmt = connection.prepareStatement("...");
                ...fetch results...;
                stmt.close();
                stmt = null; // So the finally statement works if there is an exception
                stmt = connection.prepareStatement("...");
                ...fetch results...;
            } finally {
                if (stmt != null) ..close it...;
                if (connection != null) ..return it to pool...;
        }

  • 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

  • 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 icalenders on the same computer?

    How can i run two separate icalenders on the same computer? I have my own icalender with work, home, etc, and it's totally full. I am now running an artists collective and will publish the collectives icalender on the web. I don't, however, want to mix what will be a pretty busy calender with my own already too full one. Is it possible to run two totally separate calenders on the same computer?
    macbook   Mac OS X (10.4.8)  

    trsv,
    Welcome to Apple Discussions.
    Create two Groups...
    Calendar 1:
    Work
    Home
    etc
    Calendar 2:
    Collective Calendar
    You can then switch which groups you wish to display by activating/deactivating the check mark in the Calendar source window.
    That will also allow you to selectively publish the Collective Calendar.
    ;~)

  • How to query two data blocks simultaneously?

    Dear all,
    Need your inputs on the following problem statement...
    Existing Functionality:
    We have two data blocks A (Parent) and B (Child) in a relationship. Both data blocks refer to different tables.
    Data block A is the query data block and for a single record in block A we can have multiple records in block B. Multiple records in block B are shown one at a time after executing a query, this is implemented by using a list item C (belongs to a third block).
    For example
    Let us say block B can have 5 different types of entries for each record in block A. In this case the list item C will have 5 values corresponding to these entries. Once the query is executed, block B will show the default entry for the queried record in block A. To see other entries for the record user can select the required value in list item C and corresponding entry in block B will be fetched.
    Requirement:
    Our requirement now is to enable querying upon both data blocks A and B simultaneously. To implement this I replaced data blocks A and B with a single data block X which is based on the join of the two tables referred by the Data blocks A and B earlier. As the fields should allow insert, update, delete operations we did not use a view here.
    Issue:
    Now the problem is, each record in block A for which block B had multiple entries earlier is now getting listed multiple times because of the join.
    I have tried but could not find any solution for this. I would appreciate if any of you can suggest how we can query both blocks simultaneously without affecting the existing functionality.
    Thanks,
    Amit

    I don't understand your requirement in detail. I try to repeat what i understood so far.
    You have a master-block A based on a table A and a detail-block B based on a table B. So far so good. You can now query based on conditions just the datablock A, because B is a detail and therefore can only be queryied in context of block A.
    Your reuirement is to query on both blocks A and B and find block in B also without giving conditions for the relevant block A.
    Is it that ?
    What i don't understand, what is block C used for?
    An idea for the querying of block B's data: Create Non-database-items items in block A for the search-criteria you need on block B and make them Queryable.
    In the PRE-QUERY-trigger on block A build a WHERE-condition if that search-criteria is entered, something like
    IF :BLOCK_A.SEARCH_CRITERIA_FOR_BLOCK_B IS NOT NULL THEN
      SET_BLOCK_PROPERTY('BLOCK_A', ONETIME_WHERE, 'WHERE PKVALUE IN (SELECT FKVALUE_TO_A FROM TABLE_B WHERE FIELDVALUE=' ||:BLOCK_A.SEARCH_CRITERIA_FOR_BLOCK_B)');
    END IF;This would query also records to A for which you want to have the B-records. So you could keep block-structure up to master-detail.

  • 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

  • How to run two libraries? [11.0.0]

    Hey everyone. I've been using iTunes for a long time now, as it is a relatively good program for organizing my huge library> I don't use it to listen to music, but I often need to move files around and onto the appropriate devices for my family. Because of this, I got an external hard drive. From time to time, iTunes will forget that my library comes from my external. usually, this is after booting iTunes without having the external plugged in. This can be a nuisance, because iTunes then decides to fill up my laptop's free space with the large amounts of music I put on at once. It gets especially annoying when I need to consolidate files to ensure they are all on the hard drive because it will consolidate to the computer instead.
    My question is, how do I set iTunes up so it will always look for my hard drive and use that as the library first? Then, and only then, if it cannot find my hard drive, it will use my computer's storage. Most important to solving my problem is that during those times it uses my computer's storage, it should automatically use my hard drive if present upon restarting iTunes.
    I have figured out how to have two libraries, but I need to know how to put one on a higher priority and as a default that doesn't get changed.
    To recap, If I run iTunes without my external hard drive, it changes the library location to my computer and does not put the setting back to how it was.

    Aarowaim wrote:
    how do I set iTunes up so it will always look for my hard drive and use that as the library first?
    This is done by default, but it is up to the user to ensure the external or network drive is connected.
    Aarowaim wrote:
    Then, and only then, if it cannot find my hard drive, it will use my computer's storage.
    Again, this is done by default.
    If the user fails to connect the external drive before started iTunes the following steps should be taken.
    Close iTunes.
    Connect drive.
    While holding SHIFT, launch iTunes.
    When prompted to locate or create a new library, select locate and point iTunes to the external drive.
    Is the iTunesLibrary.itl file actually on the external drive or is it on the C drive of the computer?

  • How to run two files with same url-  urgent

    hi,
    i created two servlet page and both are working very fine.but at same time i only able to run one file with same url. Is possible to run two or more file at same time with same url name..
    if you r not understanding what i want to ask then, i have two file names under helloWeb directory
    1) helloWorld.java(servletname s1, url /man)
    2) helloWeb.java (servletname s2,url /man)
    to run - http://localhost:7001/helloWeb/man - it runs very first file which is added to deployment module.
    so i want to know how i can run both file with same url, for this what i have to pass on my address bar.
    plz help me i m wating
    <b></b>

    Hi,
    We can give same url mapping to both Servlets but we can access the servlet which is entered first in web.xml because whenever we send a request to the webserver then webserver look at the elements in web.xml file one by one.
    When it finds the corresponding url mapping then immediately sends the response to the client.The same url mapping for the next element will be ignored.
    I think there is no possibility to access both servlets with same url.
    Regards
    Anilkumar kari

  • How to run two instances of WoW on a Mac?

    So I am looking to run two windows/instances of WoW on my mac. Basically so I can use my mage on a seperate account to rush my lowbies through instances. It wont let me simply load the game twice like on a PC, does anyone have any ideas how I could do it?

    I've never played WOW so I do not know how the settings are setup on a Mac but one way that you might be able to do it is to create a second account and try running it in both accounts. Go to System Preferences/Accounts and click on the plus to create a new account. Next click on Login Options and put a check in the box that says Enable Fast User Switching. Then from your Finder in the top right hand corner you will be able to switch between your 2 accounts.

Maybe you are looking for

  • Adobe PDF form / submit sutton does nothing in Safari 5.1.2

    Hi, We display embedded Acrobat PDF forms containing a submit button in Safari. If I press "submit" nothing happens, this worked some Safari versions before. My Adobe Reader is: Adobe Reader X, Version 10.1.1 My Safari version is 5.1.2, I removed and

  • Delta from an Export DS

    Hi, I am extracting data into a 7.0 system from Export Datasources based on Cubes and ODS objects in a 3.5 system. A couple of questions: 1. Are all the export datasources delta capable? What kind of delta do they provide. The ROOSOURCE table gives t

  • Problem in extracting from R/3

    when i extract data from r/3 only data is requested and i do nat get the cube updated can u tell me the steps to extract data from r/3 using views also the configuration of bw to r/3.

  • How I 'fixed' my iTunes 5.0 download...

    I too got some errors whilst installing iTunes 5.0. Windows gave me an error during the download. Well, needless to say, iTunes didn't work anymore. Whenever I tried to uninstall iTunes, the uninstaller wouldn't work completely (again, an error). The

  • Bulk insert security

    I have an SSIS package on server A which calls a stored procedure on server B.  The stored procedure runs the bulk insert command to load an XML file.  The service account which SQL Server Services is running under on server A is a sysadmin on Server