03-09-2020 05:23 PM
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
Solved! Go to Solution.
03-09-2020 08:08 PM
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 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).
03-10-2020 01:41 AM
@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?
03-10-2020 03:42 AM
i want to call the same referenced vi running multiple times based on user action
03-10-2020 06:09 AM
Check for reentrancy execution.
You can find examples in NI Example Finder "Reentrant VI Execution"
03-10-2020 07:32 AM
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).