LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

open a new window from the same vi

Solved!
Go to solution

hi

 

in my main vi front panel when the user push any button , a referenced vi displays in new window but i want when the user push it again display  the same vi in another window  

 

is there any way?

 

this picture is my main vi that runs another vi 

0 Kudos
Message 1 of 6
(2,692 Views)
Solution
Accepted by topic author ehsan75

To have multiple copies running in the way that you describe, you'll probably want to take a look at something like this: 

Asynchronously Calling VIs 

Asynchronously Calling Multiple Instances of a VI for Parallel Execution 

 

There are 3 examples in the built-in LabVIEW Examples Finder, that you can find by opening the Detailed Help for the Start Asynchronous Call VI (link in context help, or right click on and choose Help). These show some different behaviours.

 

A good example is also provided by Hoovahh here: Building an executable with .vits with LabVIEW 2011 (ignore the forum post title, the example linked to is good).


GCentral
0 Kudos
Message 2 of 6
(2,653 Views)

@ehsan75 wrote:

hi

 

in my main vi front panel when the user push any button , a referenced vi displays in new window but i want when the user push it again display  the same vi in another window  


Can you Clarify your Question?

1.Do you want to display calling VI (Referenced vi) in the same Caller/Main VI?

2.OR Do you want to call the Same Referenced VI Multiple Times based on user action?

----------------------------------------------------------------------------------------------------------------
Palanivel Thiruvenkadam | பழனிவேல் திருவெங்கடம்
LabVIEW™ Champion |Certified LabVIEW™ Architect |Certified TestStand Developer

Kidlin's Law -If you can write the problem down clearly then the matter is half solved.
-----------------------------------------------------------------------------------------------------------------
0 Kudos
Message 3 of 6
(2,613 Views)

i want to call the same referenced vi running multiple times based on user action

0 Kudos
Message 4 of 6
(2,598 Views)

Check for reentrancy execution.

You can find examples in NI Example Finder "Reentrant VI Execution"

----------------------------------------------------------------------------------------------------------------
Palanivel Thiruvenkadam | பழனிவேல் திருவெங்கடம்
LabVIEW™ Champion |Certified LabVIEW™ Architect |Certified TestStand Developer

Kidlin's Law -If you can write the problem down clearly then the matter is half solved.
-----------------------------------------------------------------------------------------------------------------
0 Kudos
Message 5 of 6
(2,584 Views)

You might also find the answers you need in my first post (#2 in this thread).

 

I'd like to suggest again running the example in the 3rd link and please let us know if it's close to what you need.

 

To run them at "clickable" times, simply open the reference as needed and call each time (as in the linked example).


GCentral
0 Kudos
Message 6 of 6
(2,573 Views)