02-06-2023 06:21 AM
Solved! Go to Solution.
02-06-2023 07:17 AM
Hello,
why do you use VI Server to call the SubVI?
This is much easier than you thought. Just put the subVI on you block diagram. In the SubVI connect the Login1 and Login2 indicators to the connector pane - then their values will be accessible in the "VI principal". No need to store them in a file.
You must configure the SubVI to behave as a Dialog Window: press Ctrl+i , select "Window Appearance" in the Categry Drop-Down-Menu and select "Dialog" (when you then click on Customize and select Window Behaviour:Default, the subVI remains debuggable).
If all of this is new to you, please consider taking the learning ressources on top of the forum posts.
02-06-2023 07:18 AM
Instead of using the Run VI method, why don't you just place the SubVI as a normal subVI with string indicator output data back to the calling VI?
You can use asynchronous calls if you want to use the VI Server method to call different subVI. See examples at <LabVIEW>\examples\Application Control\VI Server\Asynchronous Call By Reference
02-06-2023 07:51 AM
Hello daveTW
I thank you for your answer
I used VI server because I thought it would be easier for me. I don't master the other method with the outputs and everything.
I'm going to see on the forum as you indicated.
Thanks
02-06-2023 07:59 AM
Hello @ZYOng,
I would like to use the method you said there but I didn't know this method, I will try to do what you said to see if I can do it.
I would look at the examples you suggested too
Thanks
02-06-2023 08:51 AM - edited 02-06-2023 08:52 AM
Here is an example of how you can use subVI with minimal effort. You can resize the front panel window such that the indicators are hidden.
Control When the Front Panel of a SubVI Opens in LabVIEW
02-07-2023 07:22 AM
Hello ZYOng
02-07-2023 08:40 AM
You need to check the Show Front Panel When Called in VI Properties.
I posted the KB Control When the Front Panel of a SubVI Opens in LabVIEW in my last comment. Make sure you read it.
02-08-2023 03:44 AM
Hi dear ZYOng,
Yes ts right thank you very much.