Running the same VI twice

I am trying to run to same main VI twice simultaneously. I do not want the two main VIs to share information. They need to run totally independantly. I have copied the original VI and all SubVIs to a new directory, but when I load the second main VI it shares subVIs with the first main VI. How can I avoid this? I want them to run totally independantly.

I think your problem is that you're trying to open VIs with the same name. LV can only hold one VI of a given name in memory at one time, so if you want the VIs to be completely different, you will need to rename all of them.
Another option would be to make all of them reentrant. This will mean that each place you call the VI will hold a seperate copy of the VI. You should make sure this doesn't affect the way your code works (for example, if you have a functional global, it will be affected by this).
I think the easiest way would be to make an EXE and then copy it and rename it. I believe that when running in the run time engine, you get seperate execution for each EXE, but I'm not at all sure of this, so you should check it.
If this isn't so, you can try merging the first two options.
Try to take over the world!

Similar Messages

  • Prevent running the same program twice or more + some other..

    Hi All,
    I'm trying to figure out how to do the following
    1) How can I prevent a user from running the same program more than once.
    2)If a user try to shut down the computer while my program is running, I need to trap it down and save some data before terminating the program, how can I do it?
    Can any one help me???
    thanks a lot in advance!

    Don't [url http://forum.java.sun.com/thread.jspa?threadID=699067]cross post.
    Answers in the other post please.

  • Backup-restore vs running the same SSIS datacopy project twice

    I have 2 different applications which need the same source data which is copied from a production database. The 2 applications run on different servers, so they can not use the same source database. The way I see it, I have the following two options:
    1. I develop a SSIS solution to load the required data into the source database and run the same project on both servers, creating 2 identical source databases.
    2. I develop a SSIS solution to load the required data into the source database, run this solution on one of the servers. I then create a job on this server to make a backup after this process is done and restore it on the second server, also creating for
    me 2 identical source databases.
    Which method would be more efficient and why? (what also might be relevant is that one of the two sourcedatabases needs to refresh every night, the other one only once a week)

    I would definitely use backup and restore. It will consume fewest resources and you *know* that the data is identical.
    Tibor Karaszi, SQL Server MVP |
    web | blog

  • Illustrator CS3 opening the same file twice

    Hoping someone has an answer for this because I'm stumped.
    Just set up CS3 on a new iMac for one of my users, imported her Illustrator files from her hold PC (also running cs3).
    When she opens a file its opening the same file twice. When she modifies one, its all being mirrored on the other. When she saves, she has to save both "files" although they're really only 1 file.
    Any ideas?

    You can open multiple windows looking at the same file. It comes in handy when you're zoomed in, working on some detail and want to see the big picture...
    Open a new one by going to the window menu and selecting "new window" This will open a new window with "filename:2" in the title bar.
    To get rid of additional windows, just close them. You'll have to save the file to get it to remember that the other windows are closed.

  • Deployed the same report twice

    I am running SQL2008 R2, with Visual Studio 2005. I thought I selected to build the reports in VS, but must have selected build and deploy.
    I have deployed the same report twice. Both reports have exactly the same file name. The original report has been configured with for a while. The new report i accidentally deployed recently.
    I have tried going into the properties of the new report via the Report Manager and selecting DELETE, but it generates an rsINTERNALERROR.
    The subscriptions for the 2 reports are different. How do i remove the second deployed report?

    Hi totallychibi,
    If I understand correctly, you want to deploy the original report to report server. However, for some reason, the new one report is deployed. As per my understanding, a report will overwrite the same name report when we deploy it to the same folder on report
    server. So we can directly deploy the original report to replace the new one to fix this issue.
    As to rsInternalError, we can review the report server log files to determine the specific cause for this message. By default, the log files are located at \Microsoft SQL Server\MSRS10_50.<instancename >\Reporting Services\LogFiles.
    If there are any misunderstanding, please elaborate the issue for further investigation.
    Regards,
    Katherine Xiong
    Katherine Xiong
    TechNet Community Support

  • Prevent double running the same FORM application

    Dears,
    Anyone knows how to prevent users from running same FORM application in the same computer twice? Is there any ways to detect the application is already running and refuse to run it again?
    Thanks,
    Vic

    i have a tree-menue where i use code like this in the when-tree-node-activated trigger which opens new forms:
    frmId := find_form(frmToOpenName);
    -- Open form only if there's no instance (for current user) of it at the moment
    if id_null(frmId) then
    open_form(.....);
    else
    go_form(frmId);
    end if;
    of course, if the user opens another tree-menue, he can open the same form again. but in one browser (i use 9i), he can open it only once.

  • How to down load the same app twice to home page

    How do I download the same app twice so I have both on my home screen.  I want to monitor cameras at 2 different locations and need to have 2 apps to load seperate info into each.  When I try to down load the app for the 2nd time the only option is to REPLACE the current app with the same one. Anyone have any ideas?

    Yeah, too bad the app won't let you switch between locations.  I don't think you can have 2 instances of the app running on the BB.  I'm not developer, but I've never seen that before.
    Please click the Thumbs Up icon if this comment has helped you!
    If your issue is resolved, please click the solution button on the resolution!
    Every BlackBerry should have BlackBerry Protect, get it now! | Follow me on Twitter | Bring Back BBM Music!

  • How to down load the same app twice

    How do I download the same app twice so I have both on my home screen.  I want to monitor cameras at 2 different locations and need to have 2 apps to load seperate info into each.  When I try to down load the app for the 2nd time the only option is to REPLACE the current app with the same one. Anyone have any ideas?

    Yeah, too bad the app won't let you switch between locations.  I don't think you can have 2 instances of the app running on the BB.  I'm not developer, but I've never seen that before.
    Please click the Thumbs Up icon if this comment has helped you!
    If your issue is resolved, please click the solution button on the resolution!
    Every BlackBerry should have BlackBerry Protect, get it now! | Follow me on Twitter | Bring Back BBM Music!

  • Avoid Math.random() from looping the same number twice?

    I'm trying to play a random gallary image by making it stops at different frame every few seconds, and the actions is completely random.
    The problem is, since there are only 5 different images(5 frames) I'm displaying, there is a high probability that it stays at the same frame, how do I avoid that? Like avoid staying at the same page twice, if not run the function again....?
    setInterval(createItems,throwItems);
    var RandomImg:randomImg =new randomImg();
    RandomImg.y=100;
    RandomImg.x=180;
    RandomImg.gotoAndStop(Math.floor(Math.random()*(1+5-1))+1);//generate random value between 1-5
    addChild(RandomImg);
    Thanks

    How do I keep track of the random value, like what value should I put within the if to compare?
    I try modify it a little, and wrap it within an if(), and use preValue to track down the previous frame, am I doing it right?
    setInterval(createItems,throwItems);
    var preValue:Number;
    function createItems():void
         var RandomImg:randomImg =new randomImg();
         var randomFrame= Math.floor(Math.random()*(1+5-1))+1; //generate random value between 1-5
         RandomImg.y=100;
         RandomImg.x=180;
         RandomImg.gotoAndStop(randomFrame);
         if(preValue == randomFrame)
              RandomImg.gotoAndStop(Math.floor(Math.random()*(1+5-1))+1);
              addChild(RandomImg);
              preValue = randomFrame;
         }else
                        addChild(RandomImg);
                        preValue = randomFrame;

  • How do I use the same photo twice in a slideshow created in iPhoto'11?

    I created a slideshow in iPhoto'11 and would like to use the first slide also as the last slide.
    How can I use the same photo twice?

    Seems you have to duplicate the photo in your Library to add the same picture twice.

  • How can I retrieve the same figure twice in report?

    Hi guys,
    If we have the same selection twice in the same report, it only retrieves the figure once (see example below, were the same period has been chosen twice). Is there any setting I can adjust, so it will retrieve the figures for double-selected members also?
    Thanks,
    Dorthe

    Hi Dorthe,
    No issues in my system (BW 7.3, BPC SP12, EPM SP16 patch1):
    B.R. Vadim

  • HT204053 my wife and i have seperate itunes accounts is there a way we can link our accounts to share songs so we dont have to pay for the same song twice?

    When the first ipad came out i set it up and created an itunes account, since then she got an iphone and an ipad and everything was good. I had an android but wanted to try out the iphone. When i set it up ut jumpled all of our contacts, apps, and everythin. it was a mess.
         Since, i purchased and ipad 2 and an iphone and to keep our stuff from combing i used a different computer and created an new apple ID for myself so our info wouldnt combine, I was wondering if i did the right thing or if i should have went about it a different way. I was going to see if there was a way when she purchased a song i could get it. I dont want to pay for the same song twice and only want to share songs. If i cant do this can i copy her library and paste it into my itunes??
    Any help wouldl be greatly apprecieated we both have icloud set up but i cant figure out the best solution.

    Welcome to the world of digital media. Your can't really transfer it. I don't know what the rules are about transferring to your spouse but I do know that in some cases when you die, your heirs cannot inherit your digital media. This is why there is still an advantage to buying the CD since the usage rights belong to whomever holds the physical media.
    A possible workaround is to burn the songs to a music CD with yout account (tracks only without song titles) and then having your wife upload it as a regular music CD onto her account. It's been a while since i've done this so I'm not sure if it would work now.
    Please note that I'm not advocating copyright and/or TOS violations. I'm only suggesting ways to copy music for your own personal use which has traditonally been permitted. I only did this because I wanted to convert iTunes songs to mp3 files so I could burn them onto a data CD for use in my car. It would make sense that since married couples are a joint entity, this would be personal use.
    Also, I'm not a lawyer so don't take this as legal advice.

  • I keep getting calls from non existing area codes and phone numbers.  They are never the same number twice.  How do I stop this?

    About a week ago I started getting phone calls on my cell phone from numbers that do not exist, including the area codes.  I can not report these to the Do Not Call list because the area code is non existent.  I'm getting these calls all the time now and never from the same number twice so there's no point in blocking them.  If I answer I may or may not get a person who has an accent from India so heavy that I can't understand what they are saying.  This is getting to the point where I just want to cry I'm so frustrated.  Anyone else having this issue or does anyone know how to stop it?
    Thank you

    I'm sorry that you are having all these troubles. I have sent you a private message.
    Anthony_VZ
    **If someones post has helped you, please acknowledge their assistance by clicking the red thumbs up button to give them Kudos. If you are the original poster and any response gave you your answer, please mark the post that had the answer as the solution**
    Notice: Content posted by Verizon employees is meant to be informational and does not supersede or change the Verizon Forums User Guidelines or Terms or Service, or your Customer Agreement Terms and Conditions or plan

  • Can the 4th gen iPod Touch run the same apps as iPhone 4?

    I am sorry, I'm not much informed about stuff like this, so I'm pretty much a noob.
    I got my eye on the new iPod Touch, especially because it is (from what I've read) an iPhone 4 without the phone and the GPS and a somewhat slightly inferior camera and display. I like the iPhone, too, of course, but the price is something that is really important to me, so it's iPod Touch for me.
    I read about all the new features for the new iPod, such as games and other apps, but I'm wondering - can it run the same games apps as the iPhone?
    From the fact they operate on the same OS and that they're very similar hardware wise (same processor) I concluded that they can run the same apps, but as I never seen it officially and as there only "iPhone apps" on iTunes store (not iPod Touch apps) I got the impression that might not be true.
    So I am asking here now, does the latest iPod Touch run the same apps (games etc.) as the latest iPhone? And can I run the iPhone apps I buy from the appstore on the iPod Touch 4th gen?
    I am sorry for my uninformativeness and I thank you in advance.

    Most of the iPhone apps will work the same way on the 4G iPod as they do on the phone. However, other that rely on the specific feature unique to the phone may install but will not work well if at all. The App Store should identify the system/device requirements.

  • Can I use the same SSI twice in same page?

    Hey all,
    i'm having a problem whereby several SSI's are not showing on my page.
    I'm wondering if it's because the instances that are not showing are the ones called the second time round.
    Before i start posting code etc, i just wondered if it was actually not possible to call the same SSi more than one time on a page.
    I can't seem to find documentation stating this anywhere.
    Thanks in advance,
    Katrina
    Edit 1: I tested using a new unique SSI (i.e. one that wasn't called anywhere else on teh page, and it doesn't show either... so I've started a new thread where i post my code here: http://forums.adobe.com/message/5345250#5345250
    Edit 2: I guess i didn't test properly initially. It seems it is NOT possible to use the same SSI twice on a page...   What a bummer!!!

    This issue was resolved in a different thread where s member supplied the following information...
    t's certainly possible depending on the PHP command which you use as the include directive.
    <?php require_once('includes/include-address.php'); ?> will only include the file once
    <?php require('includes/include-address.php'); ?>  will include the file more than once
    <?php include('includes/include-address.php'); ?>  will include the file more than once
    Each has its own rules and quirks.
    http://php.net/manual/en/function.require-once.php
    http://www.php.net/manual/en/function.include.php
    http://www.w3schools.com/php/php_includes.asp

Maybe you are looking for

  • Hyperlink in Stickies

    How do I create a hyperlink in Stickies? I use the stickies as a general repository of information and it is not very tidy to have whole URLs pasted in to them.

  • Query Builder - Find WEBI reports that are using a table

    I am trying to find list of WEBI reports using a specific table. This specific table is used in only 1 universe. Though I could successfully find list of reports that use this universe, I am unable to find drill down further and find the subset of re

  • Caching swf per page with document.write

    To solve "click to activate this object", i use document.write to put flash files.. But this prevents caching. I have "the same" swf files for many items on the page, and browser loads that swf, "item" times. And this triggers my Denial of Service pr

  • ESS Scheduler metadata information in SOA Composite

    Hi, I am working on SOA 12c and Scheduling a SOA Composite, in the process i need to track the ess scheduler request id within SOA Composite and log the composite details with ess scheduler request id. how this can be achieved Thanks & Regards, ANVV

  • I need bootcamp assistant original Info.plist please

    Hello, I am currently trying to run windows 7 on my mac through bootcamp. I have a 2010 macbook pro and so it requires a CD to install windows 7. I know you can alter the Info.plist file so that bootcamp assistant can recognize a USB version of windo