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.

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?

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

  • How do run two instances of a LabView program

    Hi,
    I have a LabView application that is used for RS-485 diagnostics with a 2-port PCMCIA card in a laptop.  The application is written to access only one of these ports at a time, although the user interface does allow the user to choose which one.  What I need to do is to run two instantiations of this application, accessing one port per application, yet keeping them completely independent.  How do I do this?
    So far, I have complied an executable application, but they don't seem to be independent.  Could it be that opening one port interferes with the other.  Also, renaming the app doesn't seem to work.  It does seem clear that I have to run a compiled application because I can't run the same VI with the same subVI's independently within LabView.
    Thanks,
    Jason

    Jason,
    Here are a couple of things to think about:
    To run within the LabVIEW environment you could make the subVIs reentrant. This creates a separate data space for each instance of the VI. It does, however, mean that you cannot use the subVI's front panel.
    The built executables share the LV run time engine so there may be resource contention when you try to open the second port.
    I think you should be able to write a program in LV using VIs without reentrancy that will do what you want. Try a simple program which opens Port 1 and then Port 2 using the standard communications VIs (VISA?) and checks for errors. Multiple port stuff is done all the time. Unless the PCMCIA card does not support it. If this works then you could put together a program which monitors both ports as a single port and the port number is a parameter.
    Lynn

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

Maybe you are looking for

  • Error while doing GI to cost center (201 Mvt type)

    Hi, While I tried to do Goods Issue to Cost center through mvt type 201. I get the following error. "Account type K is not defined for document type WA" Kindly help reg it. Regards, Vimal

  • Error in SFP (SOAP Exceptional error)

    Hi, I have ECC 6 and Adobe livecycle designer 7.1 installed in my system. When Im trying to design layout in SFP (via. layout button) it is taking me to Adobe form designer(i have done with interface and print program step) however when im executing

  • ApplicationUnderTest.CloseOnPlaybackCleanup property doesn't work as intended with MS Test Agent 2010

    Hi All,  I launch the application which I need to test by using ApplicationUnderTest.Launch() method and I need to keep the application open for the rest of the tests so I tried to set ApplicationUnderTest.CloseOnPlaybackCleanup = false to achieve th

  • Problem while querying a form

    hi, if i query my form with wrong value ie, press F7 give wrong value for EMPNO and press F8. it says Query caused no records to be retrieved. but after that its not coming out of the first row. if i press cancel button, the cursor remains in the fir

  • Cannot print out of Photoshop CS5.1?

    I have Photoshop CS5.1 & it will not recognize my printer. Now the print option is totally grayed out & I have to print out of Elements. I have tried reinstalling the printer software. Suggestions? I am on an iMac with os10.9.5?