10-23-2020 12:19 PM
Hello,
I am looking for the easiest way to accomplish this:
I have a subVI which takes about 30 sec to execute. I would like to know the status of the execution and get data (Integer value) out of that subVI.
Global variable?
Any direction is appreciated.
Thanks!
Solved! Go to Solution.
10-23-2020 12:28 PM
@_TestMan_ wrote:
Hello,
I am looking for the easiest way to accomplish this:
I have a subVI which takes about 30 sec to execute. I would like to know the status of the execution and get data (Integer value) out of that subVI.
Global variable?
Any direction is appreciated.
Thanks!
There are so many ways to do this that it is hard to say with the limited information that you have given. What are you doing with the information once you've gotten it back from the subVI? If you use a global variable how are you planning to read it? In most cases I would either send a reference of my indicator to the subVI and let it directly write to the indicator or I would be more likely to set up a messaging loop between the main VI and the subVI. I might also consider using a notifier. I tend to shy away from global variables, though they do have their uses.
10-23-2020 12:32 PM
10-23-2020 01:13 PM
@Gregory wrote:
Also, you could have your subVI's front panel open up with a progress bar of some sort so that the user knows what's going on.
You could even open the subVI in a subpanel in your calling vi, with only the information that you want visible.
10-23-2020 02:10 PM
You could use channel wires with a writer in the subVI and a reader in the caller.
10-23-2020 02:22 PM - edited 10-23-2020 02:22 PM