labview >> run a subvi by pressing a button multiple times

by Wiebe@CARYA » Mon, 27 Sep 2004 20:50:17 GMT

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" < XXXX@XXXXX.COM > wrote in message
news: XXXX@XXXXX.COM ...
> 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



Similar Threads

1. press button and start an recording for fixed time and then release button for next press

Hi, Here is the scenario:A button is pressed and a recording of 10s is taken. During the 10s, the button is greyed out and doesn't respond to any press till 10s passes.Don't know how to pass time informaton between different cases and so on. Totally lost. A really simple thing, but don't see how it is done in Labview.Need your help.Thanks.Rut

2. How To Open a subVi by pressing an "open file button",

3. Performing multiple tasks with a single button press

When I press a button one task should start and after the first task
ends the second task should begin. How can i do this.

4. create a main screen that opens and runs other vi?s depending on the button pressed

5. check how many times button is pressed

hi i have a problem. i have to pass W1, let say the user press OK button. then 2nd time if the user press it should pass W2..and so on it is posibble in ni?
 And let say the user close the vi aftr 2nd time click the button. later went he open the vi again it should stores W3..
How to do tht?

6. I must push the enter button to press OK with my "One button dialog box"

7. multiple instances of a subVI - problem if running as executable

Hello LabVIEW gurus, 

I have written an application, which uses a VI-template to create multiple instances of this subVI which are
running independently. I use 'Open VI Referece' and the 'Call By Reference Node' VIs. My application works
fine if it is executed in the LabVIEW development environment.

But if I use the Application Builder to create a stand alone program, the 'Call By Reference' method seems
not to work. The program works without any error message, but the subVIs created by call by reference
deliveres no results. I suppose the subVIs are not created properly.

Has anybody an idea or hint to solve that problem. Are there any known issues with 'Call By Reference Node'
and 'executables'. Are there special points to pay attention for?

I have that problem with LabVIEW 7.0 and 7.1 (Windows2000 and WindowsXP(SP2))

Thanks for any hint that could be helpful.

Steffen

8. Button Fire Event Multiple Times