LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Problem of importing Sub VI

Solved!
Go to solution

I'm using the code attached in the following link successfully:

 

https://forums.ni.com/t5/Example-Code/GPS-gather/ta-p/3494576

 

However, it stuck when using as Sub VI in my program. Any suggestions???

0 Kudos
Message 1 of 6
(1,457 Views)
Solution
Accepted by Omda2022

Hi Omda,

 


@Omda2022 wrote:

However, it stuck when using as Sub VI in my program. Any suggestions???


You can copy it's funcitonality, but you need to remove all UI handling stuff including all outer loops…

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 2 of 6
(1,449 Views)

This vi is structured as a main vi, not a subvi. If you want to show its UI in your program, however, you need to edit its properties, Window Appearance, Customize..., the set the following:

pincpanter_0-1655816711963.png

also preferably change the Behaviour to Modal.

Paolo
-------------------
LV 7.1, 2011, 2017, 2019, 2021
Message 3 of 6
(1,438 Views)

For illustration, I need to load some output variable from the GPS.VI (sub VI attached in the previous link) to my VI, not the front panel itself.

 

Kindly, download my VI attached below for more declaration.

0 Kudos
Message 4 of 6
(1,425 Views)

I cannot open your vi because currently I have only LabVIEW 2017 on my machine.

If you want to use the vi functionalities, as per GerdW's advice, you need to copy part of the example code (which is not top quality I fear) in your own vi. Especially the subvi's, as the main vi structure is quite bad in my opinion.

 

Paolo
-------------------
LV 7.1, 2011, 2017, 2019, 2021
0 Kudos
Message 5 of 6
(1,399 Views)

Great Thanks, Mr. , and Mr. pincpanter for your cooperation.

 

Best Regards 🙂

0 Kudos
Message 6 of 6
(1,378 Views)