Run a subvi by pressing a button multiple times

Hi
I wanted to run a subvi each time the user pushes a button.
So the subvi might be called multiple times & different instances of the subvi run simultanously with their front panels open.
To do this I made a .vit & call it by refrence wehenever a button is pressed but it doesn't work.For the first time it opens but it seems as if the .vit doesn't return after it is called. while if I use the same method & call the .vit by reference 2 times in parallel both of the front panels open without problem.
How can I solve this problem(the main & the subvi are attached LV 7.0).
Thanks for your attention in advance
Attachments:
main.vi ‏35 KB
subvi.vit ‏43 KB

Hi,
You have to run it dynamically, with the Run VI method. This method can
optionally wait or not. Before running the VI, you have to set the controls
with the method Set Control Value (or Set Control Value [Variant]).
There are several ways to read back values from dynamically started VI's.
One is to use a buffer (lv2 global). Another is to use the Get Control Value
method.
It's complicated, but if you put all this code in a sub vi, you'll end up
with a nice main...
Regards,
Wiebe.
"smal" wrote in message
news:[email protected]..
> Hi
> I wanted to run a subvi each time the user pushes a button.
> So the subvi might be called multiple times & different instances of
> the subvi run simultanously with t
heir front panels open.
> To do this I made a .vit & call it by refrence wehenever a button is
> pressed but it doesn't work.For the first time it opens but it seems
> as if the .vit doesn't return after it is called. while if I use the
> same method & call the .vit by reference 2 times in parallel both of
> the front panels open without problem.
>
> How can I solve this problem(the main & the subvi are attached LV
> 7.0).
>
> Thanks for your attention in advance

Similar Messages

  • Help - HP Pavilion a6030.uk desktop. Have to press the power button multiple times to start up?

    Hi, 
    I have a HP desktop computer. The model is HP Pavilion a6030.uk, Opertating system: windows vista.
    My computer has had no problem at all until yesterday for some reason i  had to push the power button multiple times to start it until it finally turned on and did the normal start up. Such as i would press the power button as normal to start it, but all of a sudden, it would turn off after about 2 seconds, and so I would press the power button several times and each time it would not start up and turn off, so the power button would be pressed again until it would finally turn on and start up and run as normal and seems to work fine. And it was the same today, i pressed the power button mutiple times (e.g. 6 times) until it finally started as normal.
    As im not very knowledgeable or very computer/technology savvy wise in this area, please will someone help me and give me some advice/help to fix/solve this.
    Thankyou for taking time to read this and any help would be much appreciated to resolving this problem.
    Thanks.
    This question was solved.
    View Solution.

    Vonbon90, welcome to the forum.
    When I see these symptoms on an older computer, I believe that it may be a failed/ing power supply unit (PSU).  Here is a guide that will help your troubleshoot it.
    Also, you could test the memory.  This can be done by removing all of the memory modules and replacing them one at a time and booting.
    Please click the " Thumbs up + button" if I have helped you and click "Accept as Solution" if your problem is solved.
    Signature:
    HP TouchPad - 1.2 GHz; 1 GB memory; 32 GB storage; WebOS/CyanogenMod 11(Kit Kat)
    HP 10 Plus; Android-Kit Kat; 1.0 GHz Allwinner A31 ARM Cortex A7 Quad Core Processor ; 2GB RAM Memory Long: 2 GB DDR3L SDRAM (1600MHz); 16GB disable eMMC 16GB v4.51
    HP Omen; i7-4710QH; 8 GB memory; 256 GB San Disk SSD; Win 8.1
    HP Photosmart 7520 AIO
    ++++++++++++++++++
    **Click the Thumbs Up+ to say 'Thanks' and the 'Accept as Solution' if I have solved your problem.**
    Intelligence is God given; Wisdom is the sum of our mistakes!
    I am not an HP employee.

  • My iphone 4 will not unlock when I press the home button, I have to alternate between the home and off button multiple times before my home scree will appear

    My iphone 4 will not unlock when I press the home button, I have to alternate between the home and off button multiple times before my home scree will appear....please help!!!???

    Do a reset
    Reset: Hold down the Sleep/Wake button and the Home button at the same time for at least ten seconds, until the Apple logo appears. Note: You will not lose any data

  • Is there any app to quit from application with out pressing home button every time

    is there any app to quit from application with out pressing home button every time?

    Months ago my home button was screwed up, and I was worried. I'd have to wait atleast for a week to get it repaired as I was busy with my exams. So I found a solution. Goto Settings->General->Accessibility.
    Scroll down, and under "Physics & Motor", select "Assistive Touch". Toggle it on, and you get lots of options. You don't need to click the home button all the time. It is a very simple widget like stuff, that stays no matter what app you're using and you can do various functions with it. Initially, it's irritating as you see it everywhere. But it fades itself out and appears when needed. After you get used to it, it's really helpful.

  • P35 Platinum: I have to press the power button multiple times to start

    Hello fellow MSI customers,
     as written in the subject, I have a problem with starting my PC. When I press the power button, the computer powers on, but there is no output to the screen. In fact, my LCD stays in standby mode. I can hear the fans running, so something is going on. According to the LEDs on the mainboard, it is a memory problem.
     Now I turn the computer off, using the power button (have to hold it for a few seconds). When off, I start again and everything runs as it should.
     After starting, I ran memtest86 multiple times without any errors. I ran a few games, compiled some programs, installed Vista 64bit, Linux, all without any crashes or hangups. It is just the starting that makes problems. After booting it is very stable.
     Seeing that it could be a memory problem, I brought another pair of memory, just to be sure. I couldn't reproduce the problem on that day! Any type of memory I put in (the one before, or the newly brought home) the computer always started on the press of the button. So I thought, OK, maybe they were not seated correctly. But, alas, two days later it is again only starting by pressing the power button three times.
     What I tried:
     1. Boot using only 1 piece of memory stick
     2. Boot using only 1 piece of memory, but different one
     3. Use another pair of memory   <-  worked, but on that day it also worked using my original memory
     4. Disconnected everything except graphics card, to make sure it is not a power supply issue (minimized power usage)
     5. Tried all of the above with a different processor
     6. Used another power supply
    Any other ideas?
    Here are my specs:
    MSI P35 platinum
    Core2 Q6600
    Nvidia 7900GT
    4GB V-Data DDR2 800MHz      <--- I think this is the problem, any experiences?
    Enermax Liberty 400W
    a few other things (HDDs, XFi, DVD-RW)
    By the way, how can I boot from an external DVD-RW? It doesn't show in the menu when I press F11 (boot menu).
     Thank you for any help, muro
    And just to let a bit of steam off:
    1. I had major problems with the RAID controller (not MSI fault, rather intel) - I put two disks into a RAID 0, then RAID 1 and they always failed after a few boots - member missing on both disks. I was getting angry, so I put them as normal (non RAID) disks and everything is fine since, although no RAID.
    2. Installing anything except windows with an IDE DVD-RW is very hard. It took me ages until I got Ubuntu booting (there are guides on the net, google is your friend), and much longer to get grub (boot loader) working. Long story short - if you have multiple disks, use the Linux disk as the bootable, do NOT put grub on the disk where Vista is installed.
    3. I have no idea, how to update the BIOS, if I had to. I'm using 1.1 that came on the board. I use 64bit Vista and Linux, none of which is supported to upgrade the BIOS. Any hints how to do it (if I needed to)?

    Hello,
     now today is the day I've finally received my replacement board. The good news first - it DOES work! Yepeeee!
     Now some more information:
       The jmicron controller seems to be missing - a screen with something about "Marvel" is shown before the intel raid screen. However, it is only visible for a fraction of second, so I cannot read it. I think it detects my IDE DVD-RW so I'm quite certain it's the replacement for jmicron. I won't miss it - it took me ages to install Linux with the jmicron controller.
       The problem where I had to restart the computer sometimes because it didn't even post (RAM error) is gone. It boots just fine now.
     I had an extremely long first post - about a minute, but after that it boots very fast now.
     anyway, regarding some questions around here - the manual states MSI recommends using an 350W power supply. My 400W is more than enough. Please note - it is an Enermax, not one bundled with a cheap case. My cheap RAM sticks also work very well now. I did try them on different boards before, so now I know I just had a faulty board.
     In the end, I can only say this: This is my 3rd board already and it's the first one that works well. As the hardware changed, I presume there were major issues with this board that lead them to make a new revision. What is strange, though, is that the revision is still 1.1, as were my previous two. I pity everybody who had the same problems as I did, but I can now say that I'm very happy about the board now.
     Cheers, muro

  • HT1349 i need to press the home button multiple times before it works

    I bought my daughter an ipod 4th generation (with camera) about 6 months ago. Her home button is having issues - she needs to press it 3-4 times for it to work. Any idea to fix this?

    Bring your phone in for service.

  • How can I restore Thunderbird behavior so I can delete emails by pressing delete key multiple times (without using mouse to change focus back to message list)?

    Thunderbird 24.3.0 (latest under OpenBSD)
    I (like most people) get spam in my inbox. When there are multiple spam messages in a row in my inbox I used to click on the first message and then press the delete key repeatedly for each sequential spam message.
    After upgrading, this doesn't work. Instead, when I click a message it opens in the message preview pane and moves the focus to the message. Thus I need to click twice to even be able to press the delete key to delete one message. When I press the delete key, the message is deleted and the highlighted message becomes the next one in the list. This opens the message in the preview pane and again shifts the focus to the message. Thus I can't press the delete key again but must move the mouse to click on the message before I can delete it.
    As a result, what used to be a very fast process of weeding through spam has become a real annoyance.
    I realize I can hide the message preview pane to prevent the focus from moving, but this means I must delete solely based on the email subject/sender -- or open each message (which is even slower).
    I also realize that I can press tab multiple times (sometime 4, sometimes many more) to shift the focus back but that's not much faster than using the mouse.
    How can I prevent Thunderbird from shifting the focus away from the email list panel unless I actually click somewhere else?

    Well said! And you said it about six weeks ago. And 4 other people said "Me Too." - I guess we're screwed.
    I guess it's time to switch to GMail.
    Such a trivial thing, but it irritates me every single time.
    MOZILLA - YOU'RE GOING DOWNHILL...

  • When a click a button multiple times it opens multiple windows instead of only one. Is this a bug in Firefox?

    If i click a link multiple times, it should open only a window(login popup window), but it opens multiple windows.
    This does not happened on any other browser(IE, Chrome, Safari, Opera).<br />
    If this helps i'm using a jquery plugin popupwindow( http://rip747.github.com/popupwindow/ ).

    A good place to ask advice about web development is at the MozillaZine "Web Development/Standards Evangelism" forum.
    *http://forums.mozillazine.org/viewforum.php?f=25
    The helpers at that forum are more knowledgeable about web development issues.<br>
    You need to register at the MozillaZine forum site in order to post at that forum.

  • Mac book pro mid 2009 shuts down after a few hour then will only boot after waiting and pressing power button numerous times. I am running mountain lion with most recent updates.

    Mac book pro mid 2009 shuts down after a few hour of use and then is very difficult to reboot. Sometimes I have to wait hours, sometimes I have to repeatedly press the power button and then it will slowly start a little longer each press untill it completely boots. It has done this three times know.  Each time I was watching a video.

    Try running the Apple Hardware Test - sounds as if you've hardware issues.
    Clinton

  • [iPhone] - button press even firing multiple times

    Hi - first post here, so sorry if it's dumb (doesn't seem to have been answered previously, by searching)...
    I have an iPhone app, with a button. In my ViewController code I have an IBAction, which I've linked up with the Touch Up Inside event. The Action function increases an integer score by 50, and then updates a label to display the new score.
    When I run this, the score goes up in increments of 200 - implying the button even is being triggered multiple (four) times per click.
    Is that normal / is there any obvious reason why this might happen? I can post code if that's useful...
    Thanks,
    Muzz

    Hi Ace, and wecome to the Dev Forum!
    Acemuzzy wrote:
    When I run this, the score goes up in increments of 200 - implying the button even is being triggered multiple (four) times per click.
    No need to guess. Add a log statement as the first line of your action method like this:
    - (IBAction)incrementScore:(id)sender {
    NSLog(@"incrementScore: sender=%@", sender);
    The above will print one line in your Debugger Console window (Run->Dubugger Console) each time the method runs. It's very unlikely that your button is sending more than one action message for each Touch Up Inside event. The console log should tell us exactly who is calling your action method and how many times.
    Is that normal
    No.
    is there any obvious reason why this might happen?
    My three top guesses would be: 1) The code in your action method isn't doing what you think; 2) The action method is being called from more than one object; 3) You hooked up the button so that some of its other events (such as Touch Down or Touch Down Repeat) are also connected to your method.
    I can post code if that's useful...
    Yes, if none of my comments lead you to a solution please post the relevant code. To format code in this forum, please take a look at the first, yellow alert message on the topics page. You can see how your code will appear by clicking the Preview tab above the Reply editor panel. If and when your question is resolved, here's how to close your thread: [http://discussions.apple.com/help.jspa#answers].
    - Ray

  • How to use Java Robot to click the same button multiple times

    Hi All,
    I am trying to use Java Robot to turn a Windows utility located on the Desktop by clicking the same button on and then off with the following code:
      1.  Robot robot1 = new Robot();
      2.  robot1.mouseMove(400,180);
        // Turn on the utility
      3.  robot1.delay(100);
      4.  robot1.mousePress(InputEvent.BUTTON1_MASK);
      5.  robot1.delay(100);
      6.  robot1.mouseRelease(InputEvent.BUTTON1_MASK);
        //Wait for 2 minutes
      7.  robot1.delay(200);
        // Move the mouse to disconnect button
      8.  robot1.mouseMove(400,180);
        // Turn off the utility
      9.  robot1.mousePress(InputEvent.BUTTON1_MASK);
    10. robot.delay(100);
    11. robot.mouseRelease(InputEvent.BUTTON1_MASK);However, only the first click (line 1 - 7) worked. Everything from step 8 onwards doesn't appear to be doing anything. Even instantiating another robot2 to carry out step 8 - 11 did not work either. Also have tried running steps 9 - 11 only. ie skip 8.
    My aim is to turn this tool on and off at regular interval.
    Any assistance would be greatly appreciated.
    Thanks in advance,
    Jack

    Hi darth_code_r and Vincent,
    Both you and Vincent are right about insufficient time between the release ( 6 ) of mouse button and step ( 9 ) press the same button again to turn it off. You are also correct in saying that it was not necessary to move the mouse again ( 8 ) since it was sitting on the right button already.
    Below is the code I have ended up with which worked for me:
    1.  Robot robot1 = new Robot();
    2.  robot1.mouseMove(390,150);
    4.  robot1.mousePress(InputEvent.BUTTON1_MASK);
    6.  robot1.mouseRelease(InputEvent.BUTTON1_MASK);
         //Wait for 3 minutes
    7.  robot1.delay(30000);
    9.  robot1.mousePress(InputEvent.BUTTON1_MASK);
    11. robot1.mouseRelease(InputEvent.BUTTON1_MASK);This utility also takes a few seconds to turn itself on and vice versa. As a result, it is necessary to give it sufficient time to turn on prior to turning it off again with the second mouse press.
    Thanks to both of you very much,
    Jack

  • Can I use the "same" button multiple times for multiple galleries?

    OK so I am extremely untrained in CS4 and Actionscript. However I have managed to get along fairly well until I started to dynamically upload images as a gallery. This works great if I have one gallery, but for my site I have 9 galleries!!! I have a back and next button, but I want to be able to use those same buttons for all of the galleries so they look the same. I have split them up and renamed them, but I am clueless on how to script the buttons to work. Please help...and don't laugh at my poor scripting. This is what I have now because I do not know where to put the other button names without getting errors.
    stop();
    next_btn .addEventListener(MouseEvent.CLICK, nextImage);
    var imageNumber: Number=1;
    function checkNumber(): void{
        next_btn.visible=true;
        back_btn.visible=true;
        if(imageNumber==15){
            trace(imageNumber);
        next_btn.visible=false;
        if(imageNumber==1){
            trace(imageNumber);
        back_btn.visible=false;
    function nextImage(evtObj:MouseEvent):void {
        imageNumber++;
        mc_engagement.source= "photo/engagement/en0"+imageNumber+".jpg";
        mc_amish.source= "photo/amish/Amish"+imageNumber+".jpg";
        mc_chicago.source= "photo/chicago/ch"+imageNumber+".jpg";
        mc_landscapes.source= "photo/landscapes/land"+imageNumber+".jpg";
        mc_goodvsevil.source= "photo/goodvsevil/ge"+imageNumber+".png";
        mc_animals.source= "design/animals/an"+imageNumber+".png";
        mc_icons.source= "design/icons/icon0"+imageNumber+".png";
        mc_objects.source= "design/objects/pc"+imageNumber+".png";
        mc_typography.source= "design/typography/type"+imageNumber+".png";
        checkNumber();
    back_btn .addEventListener(MouseEvent.CLICK, backImage);
    function backImage(evtObj:MouseEvent):void {
        imageNumber--;
        mc_engagement.source= "photo/engagement/en0"+imageNumber+".jpg";
        mc_amish.source= "photo/amish/Amish"+imageNumber+".jpg";
        mc_chicago.source= "photo/chicago/ch"+imageNumber+".jpg";
        mc_landscapes.source= "photo/landscapes/land"+imageNumber+".jpg";
        mc_goodvsevil.source= "photo/goodvsevil/ge"+imageNumber+".png";
        mc_animals.source= "design/animals/an"+imageNumber+".png";
        mc_icons.source= "design/icons/icon0"+imageNumber+".png";
        mc_objects.source= "design/objects/pc"+imageNumber+".png";
        mc_typography.source= "design/typography/type"+imageNumber+".png";
        checkNumber();

    I'm still a novice with Flash myself, but I have two comments.
    First, at this point, won't your buttons control all galleries at the same time? Which means, if I go to image 5 in one gallery, then move to another gallery, I'll start at image 5, because the actions are all connected.
    Second, you can definitely use the same buttons for multiple galleries. It seems to me that as long as you've assigned the buttons an instance name, these actions should already work to control all the galleries (see the note above). I guess I would need to understand a bit more about how your project is built.

  • Have to press power button many times before computer turns on.  Help!

    Sometimes I push the power button, and it turns on immediately. Other times, I have to fidget, and push it many times before it decides to turn on. Am afraid that repeated pressing, and fidgeting is going to make problem worse, but is the only way I can turn computer on now. Does anyone know why this is, and how to fix it?

    Chris's advice sounds good. I press my 'on' button and my BlackBook JUMPS to start. Use the adapter and make sure it isn't a battery problem. If all else fails don't hesitate to call Apple or take it into an Apple store. They will happily fix it.
    Tim...

  • Will I have to press "accept" button each time I use adobe reader?

    Do I need to press the "accept " button (which I don't see) each time I want to use adobe reader?

    Only once.  See if anything in here helps: http://helpx.adobe.com/acrobat/kb/cant-click-accept-acrobat-reader.html

  • Have to click back button multiple times

    I have seen same problem posted, but no resolution that has worked for me. On some sites, once I click on a link (once), I have to click the back button 2-3 times to get back to the page I was originally on. If I right click on the back button, I see that 2-3 copies of the linked page are in the back button history. This happens a lot on cbsnews.com. If I click on a photo list on that site, it will load 2-3 copies of every single picture that I look at. I have tried running firefox in safe mode, but the same thing happens. If I visit the site using Chrome, it does not happen. This has been happening since version 29.0; I am currently running 31.0 for windows (8.1).

    Hi there. I avoid that issue by clicking the link I want to check and
    selecting '''open new tab / window..''' This way the page I left will
    still be waiting for me.
    Also, right click the back arrow and choose from the menu.

Maybe you are looking for

  • Mail attachment (.csv) to File (.csv)

    Hi mates, I have a requirement where I have to pick the attachment(.csv format) of an incoming mail and store this file ( in .csv format)onto a file server using  a reciever file adapter. Please suggest how can i go about it ?

  • Whats the right Digital Camera to show video Clips on my new iMac OS X Lion

    Hi, Can anybody tell me what Type or Model of Digital Camera (with Video Clip Facility) to purchase succesfully down loading on to my brand new iMac OS X Lion?? I'm new to Apple iMac, found out that my 2 year old Samsung camera when downloading Photo

  • Memory Leakage in dlls called through JNI

    I have some dll that are called through a JNI code that have a memory leakage. I need to find how much is that. Do we have some functions for that to find it in the code.Is that possible without making changes in the JNI code. I checked but all sugge

  • "iphoto won't send e-mail" Mac OS X 10.6.8 iphoto'11 9.2.3?

    My iphoto when I select share and e-mail it refuses to send my photo messages now. It has worked in the past.

  • Suddenly dropping calls

    How do I report trouble with dropped calls, spotty service? Used to get perfect service here at home and suddenly in the last 1-2 weeks I cannot talk to anyone when I am at home, it braeks up and drops calls. I have the old iphone 4. Had great servic