SubVI running simultaneously

I'm a beginner in labview and I'm trying to translate a program I put down
months ago in VB.
I've got a block that executes a task and that loops continuously...
If I need 8 tasks running togheter independently, I copy the block 8 times
in a main while loop and it works correctly; if I try to convert the single
block into a subVI in order to call it 8 times from a main VI, the first
subVI called never release the program control, even using global variables
or property nodes, so the other subVI will never be called.
In VB this wasn't a problem because of the events programming, any ideas for
labview?
Thank You
Franco

Sounds like you need to make the VI reentrant as Doug said. This should fix
the problem.
-Tom
"News di Libero" wrote in message
news:W9MO7.7$[email protected]..
> I'm a beginner in labview and I'm trying to translate a program I put down
> months ago in VB.
> I've got a block that executes a task and that loops continuously...
> If I need 8 tasks running togheter independently, I copy the block 8 times
> in a main while loop and it works correctly; if I try to convert the
single
> block into a subVI in order to call it 8 times from a main VI, the first
> subVI called never release the program control, even using global
variables
> or property nodes, so the other subVI will never be called.
> In VB this wasn't a problem because of t
he events programming, any ideas
for
> labview?
>
> Thank You
>
> Franco
>
>
>

Similar Messages

  • User interaction on VI and subVI running simultaneously

    By using labview6.1 how can i create an application which hav some buttons on the vi (say parent VI) & on clicking on any of these buttons will pop another VI(say child VI) to execute.
    NOTE :: Any child VI's(subVI) "Diagram" is in a while loop i.e. it will not return and has to wait for the user interaction.
    PROBLEM :: Initially if i clicks on any button present on parent VI then
    the corresponding childVI pops up and start executing,thats fine...., but
    now if i clicks another button present on parent VI then the click event doesnt works i.e. one more child VI doen't comes up.
    The conclusion is that the Graphical user Interaction can be only on called
    SubVI(while in execution) but not on the main VI si
    multaneously.
    I hav searched examples for the similar kind of problem but didnt found any. Kindly help me for rectifying the above problem.

    You have partially answered the question yourself;
    "NOTE :: Any child VI's(subVI) "Diagram" is in a while loop i.e. it will not return and has to wait for the user interaction."
    The fact that the parent is halted until the sub-vi returns is in other words as it is supposed to be; it's data flow controlled execution...However you can put the sub-vi in another loop (that way only that loop will halt), or you can call it dynamically using an invoke node with the wait until finished set to false.
    MTO

  • I have several firefox tasks running simultaneously but when I try to access a site, it opens in another task, not the one I am currently using.

    On my task bar I have several copies of firefox running simultaneously - I need this for work. Recently, however, when I access one of these and go to a new web site, firefox opens the web site in one of the other tasks instead of opening a new tab in the current one. It's probably some setting but I can't correct it. Can you help? Thanks in advance.

    "Clear the Cache": Tools > Options > Advanced > Network > Offline Storage (Cache): "Clear Now"
    "Remove the Cookies" from sites causing problems: Tools > Options > Privacy > Cookies: "Show Cookies"
    See http://kb.mozillazine.org/Clearing_the_cache and http://kb.mozillazine.org/Cookies
    See also http://kb.mozillazine.org/The_page_is_not_redirecting_properly

  • Firefox 3.6.10 on WinXP spontaneously shuts down without warning after a certain time, whether or not the Internet is in active use, without disrupting or otherwise affecting any non-Internet programs running simultaneously.

    Ffox 3.6.10 on a Compaq Evo N8OOv began spontaneously shutting down w/o warning, closing all Internet applications w/ot affecting the operation of the computer, including non-Internet programs running simultaneously. Avira AntiVir Personal and with Spybot gave no hits suggesting infection.

    See:
    * http://kb.mozillazine.org/Firefox_crashes
    * [[Firefox crashes]]
    Your above posted system details show multiple Java Console extensions.
    You can uninstall (remove) the Java Console extensions and disable the Java Quick Starter extension as you do not need them to run Java applets.
    See http://kb.mozillazine.org/Java#Multiple_Java_Console_extensions
    See also http://www.java.com/en/download/help/quickstarter.xml - What is Java Quick Starter (JQS)? What is the benefit of running JQS? - 6.0
    Disable the Java Quick Starter extension: Tools -> Addons -> Extensions
    Control Panel -> Java -> Advanced tab -> Miscellaneous -> Java Quick Starter (disable)

  • What causes multiple "plugin-container.exe" to run simultaneously?

    I sometimes have up to four "plugin-containers" running simultaneously. What causes that AND what are the possible ramifications of that?

    plugins like flash & java etc that are currently running on sites are outsourced into the plugin-container.exe-process that you've discovered for performance and stability reasons - you can have a look at your currently installed plugins in tools > addons > plugins & disable those you don't need.
    in one of the upcoming releases firefox will ship with a feature that allows you to enable plugins on vistited sites on a per-demand basis, [https://wiki.mozilla.org/Opt-in_activation_for_plugins]
    ''edit - also see [[What is plugin-container]]''

  • Prevent two instances of an application running simultaneously

    Hi,
    This is the code which I use to prevent two instances of an application running simultaneously.
    public void init()
              new Thread(new Runnable() {
                   public void run() {
                   try
                        ServerSocket socket = new ServerSocket(9876);
                        socket.accept();
                   catch (Exception ex)
                       // already running
                        System.out.println("Socket Exception"+ex);
                       System.exit(0);
                   }}).start();
    }This code is not working for mac. Please help with a solution/alternative.
    Regards,
    Rony

    codingMonkey wrote:
    If this is an applet, at least call super.init() in your init() method, though it would probably be better to rename the method.Aside from the fact that I hope the applet is signed, or he can't get a socket of any kind anyway. And it makes the calling of accept that much worse, as now he is opening a port to a client machine (unbeknownst to the user).

  • Timed Subvi run and stop for set time

    I have a program cod controlling temperature, i need subvi run for 5 minutes and stop for 5 minuts continously to controll current source supplying heater around my sample by continous pulses of mA.

    Hello MaTaRaWeY
    Could you be more specific, maybe use a VI with comments to help explain your problem better,
    You may also like to look into the "Wait (ms)" node under the Timing Palette.
    Derick Mathew

  • I downloaded Acrobat in August, and would like to use it on my laptop as my secondary device. I understand that one user may use 2 devices under 1 license, as long as not run simultaneously. How is the second download completed?  (Dummy instructions pleas

    This is the only information I've found about using a second device from Adobe:
    Can I use my software on two computers? 
    If you own, or are the primary user of, a single-user or volume license Adobe product that is installed on a computer at work, you can also install and use the software on one secondary computer of the same platform at home or on a portable computer. However, you may not run the software simultaneously on both the primary and secondary computers.  No more than one user can use a single-user license Adobe product.  Note: AVL customers have to buy two different licenses to use both operating systems, even if they have two different computers. They can only use the same license on another computer (not simultaneously) with the same platform at home.
    This is actually for my boss so any timely help is appreciated!

    Hi rebecca,
    You can download Acrobat from: Download Acrobat products | Standard, Pro | XI, X
    and use the purchased serial number to activate the software.
    Regards,
    Rave

  • How many Management agents can you have running simultaneously on a host?

    Hi all,
    I've scoured the Oracle documentation and not been able to find a definitive answer to this question, how many Oracle management agents can you have on a single managed host target? Can you for example run an 11g agent and a 12c agent simultaneously (whilst migrating to 12c without upgrading the present OEM instance) If so can you run two 12c agents, each pointing to a different OMS? I’ve seen examples of an agent for each database instance on a host managed target, so a host with three Oracle database instances has three Oracle Management agents all pointing to the same OMS with each agent is monitoring just one of the database instances. There must be resource considerations here for memory, cpu and network traffic etc? I’ve always understood it to be one Oracle Management Agent per managed host
    Thanks

    I don't think there's any data on impact or performance since it's not a recommended configuration. If you have host/configuration monitoring enabled on both agents, they will be running the same queries/scripts against the host/inventory, etc. so they will likely have contention at some point. If you monitor the same databases, you will definitely see contention and increased overhead as there will be multiple agents running the same queries. You might also see problems w/ any of the server generated alerts (tablespace, etc) if you change thresholds as the agents send that to the database, and then the database will be out of sync with the other agents.
    What exactly is the goal for having multiple agents? Is it short term or long term?

  • 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

  • Subvi runs slowly

    Hi,
    I have a subvi. It runs fine as a regular vi, but when I use it as a subvi in another vi, it runs very slowly. I notice this when I loop at the indicators on the front panel, which update after every loop iteration. They run very slowly in the subvi. Is there a reason for this.
    Thank you,
    Tim

    Hi,
    I created a project, and saved it as a source distribution. There are some dependecies on an open g package and also on a configuration toolkit from labview. This will be required to open up the vi. The main calling vi is testdataanalysis.vi and the subvi of interest is the rawdatacacluations.vi. The rawdatacalculations vi is the one that runs slow on its own. This also reads in a tdms file, where there is processing of the data. There are some auxilliary files required to run the program entirely, which is why I had hesistated to post this vi at first.
    Thank you for all your comments,
    Tim
    Attachments:
    analysisvi.zip ‏700 KB

  • How many applications can I run simultaneously?

    I just bought a new MacBook Air after owning a white Macbook for the last four years. I used to push that pretty hard, but I feel I'm still habituated towards quitting applications when I'm done with them, rather than keeping everything open.
    With the new MacBook I have two user accounts that I'm constantly switching back and forth between, and I run something like ten apps in each. Mail, iChat, Reeder, Safari, iWork, Skype, Twitter, iCal, iTunes, Grapher, and software called TestGen which I use to make worksheets and tests for my students is in my user account for work, and Mail, Ichat, Reeder, Skype, Twitter, iCal, iTunes, and Safari in my personal account. On the Macbook I used to quit out of the account before logging into another one, but so far the Air seems to handle both being logged in at the same time. Is this level of usage fairly normal?
    If most of the apps are in the background most of the time and none of them are particularly processor heavy, will this level of usage have a drastic negative effect on battery life?

    Idle applications reside in RAM and should not impact on battery life.
    Each users' environment and useage varies.
    Only you can answer your own question by seeing how long your battery goes.

  • Can you have two different tempo's running simultaneously?

    I am sure someone out there has had this following problem:
    You create a melody, love it at the tempo its in, but you realize everything else (particularly the drums) must operate at a different tempo. In my case, the melody is running at 60 bmp and I need everything else to run at least at 80 bpm. Setting the region containing the melody to play according to the project tempo changes its speed so this and its reverse do not work. Time stretching did not work as well. I realize that I am essentially asking for two tempos to operate in sync which seems impossible but maybe someone can help? Please remember I am new to this so there may be something I don't know or haven't tried.
    Thank you for the time and help.

    Aside from not being able to have 2 tempo's at the same time in the same project, I think you are maybe talking about time signatures.
    There is also a half-time feel, for example if you had a 120bpm metronome going you could play at half time which would mean, essentially, what you were playing would also fit a 60bpm metronome.
    If you had 2 tempo's, one would always be chasing the other. It's not really going to work. You can have, though, a 5/4 signature where, say, the bass and guitar play in 5/4 and the rest of the band play in 4/4. It's odd and jazzy but in this example every 20 beats would begin the cycle again.
    This is the only thing I can really think of without hearing what you mean.

  • Runtime updation from two programs running simultaneously

    Hi Experts,
    Need inputs for the situation described below:
    We have two programs prog A and prog B. These are independent executable programs and have no dependency on each other. I want to restrict execution of prog B if prog A is running in any session by any user. Is there any system/basis table which stores runtime status of all the programs? There should be some table where all the currently executing programs get stored and once program is completed, entry is cleared from the table.
    One way can be:
    When prog A has started execution, add an entry in any Z table and at the time of finishing delete the particular entry. In prog B check that the table has any entry for prog A. If yes that means prog A is still running.
    Issue with this approach is, if program A has some error or cancelled while execution, it will not delete its own entry and hence even if prog A is finished, prog B will find entry in Ztable.
    Any other way to achieve this functionality?
    This is very urgent.Please help!
    TIA
    Abhishek

    Hi,
    Check in Table "TBTCO"
    status values.
    btc_running LIKE tbtco-status VALUE 'R',
    btc_ready LIKE tbtco-status VALUE 'Y',
    btc_scheduled LIKE tbtco-status VALUE 'P',
    btc_released LIKE tbtco-status VALUE 'S',
    btc_aborted LIKE tbtco-status VALUE 'A',
    btc_finished LIKE tbtco-status VALUE 'F',
    btc_put_active LIKE tbtco-status VALUE 'Z',
    From table "TBTCO" Write select statement and check the status above.

  • EXPDP/IMPDP run simultaneously

    Are there any foreseeable problems running expdp and impdp contemporaneously? I'd imagine that 10g could handle it, but maybe there may be some sort of deadlock issues. Purely theoretical situation.
    Captain Obvious: "Be kind, he's a newbie."

    I had an import running that bumped up against a known bug that caused it to take a long time to complete. I was worried that it might cause a problem when the scheduled export kicked off later tonight. Is it that the dump that is being imported, was supposed to be in the export dump scheduled later. If yes, then only those tables which have been imported, till the point of the time at which the export starts and export that particular table is going, will be exported.
    But if import is finished, then you will get all the tables/objects in the exp dump.
    Anand
    Edited by: Anand... on Oct 16, 2008 5:24 AM

Maybe you are looking for

  • Install data from external hard drive?

    Hi, we have our old macbook data saved on external hard drive (old laptop had water damage but able to retrieve data). I now have new macbook, how do I install data from external hard drive to new macbook? Is it super easy? I didn't want to set up ne

  • Open .DDS file in Photoshop CS5.1 Extended?

    Hello guys! I download the NVIDIA DDS plug-ins for Photoshop CS5.1. I placed them in C: \ Program Files (x86) \ Adobe \ Adobe Photoshop CS5.1 \ Plug-ins Screenshot of the Plug-ins folder (I overshadowed the other files .. i didn't tought that was so

  • Help with my code

    package Coreservlets import java.io.*; import javax.servlet.*; import javax.servlet.http.*; import java.sql.*; public class Catalog extends HttpServlet {      public void doGet(HttpServletRequest request,                     HttpServletResponse respo

  • Major "BUG" in Imovie 9 - Audio Sync Problem on Export  !

    Well I'm a hard-core Apple user from day one, but unfortunately today I'm not to proud about the latest version of Imovie 9. It seems there has been a "MAJOR audio sync problem on export" in Imovie 9, since July 2009. Apple knows about this bug for a

  • Licensig for this product has stopped working

    Hi, I have set up a new Mac using Mac OS X 10.9.1 Mavericks and migrated my software to it using Migration Assistant. Most software is fine, but I cannot run Director 11.3. I am getting the following error: Licensing for this product has stopped work