LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

how to use a globale variable to get the value of a local variable used in other VI

Hi,

 

I use Labview in my final project study. I need to save the contents of local variables in a SubVI obtained for use in another VI. I assembled these data in a cluster and I thought to use a global variable that Continet these data to be updates every time the VI is executed.
How can I make it through the global variable?

thank you for yor help:)

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

Hi,

 

I think you can use functional global variables for that purpose. Functional global variables are VIs that use loops with uninitialized shift registers to hold global data.

Check whether it meets your requirement.

______________________________________________
Kudos are welcome
0 Kudos
Message 2 of 7
(2,842 Views)

where can i find these Functional global variables? i don't find it in my labview

0 Kudos
Message 3 of 7
(2,832 Views)

Try these examples: https://decibel.ni.com/content/docs/DOC-20897

https://decibel.ni.com/content/docs/DOC-21226

Also search on ni.com for more results.


CLA CTAChampionI'm attending the GLA Summit!
Subscribe to the Test Automation user group: UK Test Automation Group
0 Kudos
Message 4 of 7
(2,828 Views)

Hi,

 

FGV is a VI which you need to implement and call it when ever required. You will not find it in functional palette.

______________________________________________
Kudos are welcome
0 Kudos
Message 5 of 7
(2,825 Views)

@am-i_a90 wrote:

Hi,

 

I use Labview in my final project study. I need to save the contents of local variables in a SubVI obtained for use in another VI. I assembled these data in a cluster and I thought to use a global variable that Continet these data to be updates every time the VI is executed.
How can I make it through the global variable?

thank you for yor help:)


Why not connect the cluster to an output and wire it through?

/Y

G# - Award winning reference based OOP for LV, for free! - Qestit VIPM GitHub

Qestit Systems
Certified-LabVIEW-Developer
0 Kudos
Message 6 of 7
(2,816 Views)

Itried to connect a cluster in the input of my global variable but it doesn't work.

 

But i found a solution with the FGV and it seems to be a good one 🙂

 

thanks

0 Kudos
Message 7 of 7
(2,776 Views)