LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

The output data from main program is not updated inline with subVI

 

I want to import a prepared VI into my main program. The imported code is GPS gather VI as built in the following link: 

 

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

 

I imported the GPS GATHER in my code (as subVI) and wired the input and output wires. 

 

Emad_NRIAG_0-1666382689765.png

 

I noticed that that function (GPS GATHER) executed normally.  However, the GPS data is not displayed in my project. How to make the data is shown in the main program inline with the imported VI. 

 

 

Any ideas and hints are welcome.

 

Thanks,

0 Kudos
Message 1 of 7
(1,751 Views)

Maybe start with showing us your caller code?

0 Kudos
Message 2 of 7
(1,740 Views)

@Emad_NRIAG wrote:

Here is the whole story 🙂

 


 

Does not seem like the whole story. Where do you show the code with the incorporated subVI?

0 Kudos
Message 4 of 7
(1,683 Views)

Kindly, find the attached files for the requested VI and snapshots from the code in running mode. 

0 Kudos
Message 5 of 7
(1,663 Views)

Sorry, posting by phone, cannot look at vi. A picture of the diagram would be much more interesting. What is a "circuit"?

0 Kudos
Message 6 of 7
(1,650 Views)

Hi Emad,

 


@Emad_NRIAG wrote:

I noticed that that function (GPS GATHER) executed normally.  However, the GPS data is not displayed in my project. How to make the data is shown in the main program inline with the imported VI. 


You  need to THINK DATAFLOW!

Your main VI gets data from its subVI as soon as the subVI finishes! And your subVI finishes as soon as you press the "Abort" button which is labelled "stop"…

 

Simple solution: remove any loops from your GPS subVI so it will not block the mainVI anymore.

 

Why don't you follow the suggestions you got in your previous thread? There are still way too much locals and other silly constructs (aka Rube-Goldbergs)…

Best regards,
GerdW


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