LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to share variable to Vis

Solved!
Go to solution

Hello everyone.

I'm trying to read a json file from my computer's local disk into a readConfigFile.vi.  and I want to use the data in that vi for some other VIs which need parameters from that config file. 
Can anyone give me some hints on how to do it nicely?

Global value can do that work, but i think no one will suggest treat every parameters as a global value.

 

right now i can read that json file and load it into a strict typedef cluster. but cannot figure out what the best way to make that cluster available for all the other Vis

 

thanks

Eric

 

0 Kudos
Message 1 of 3
(689 Views)
Solution
Accepted by topic author ericyuan

Hi Eric,

 

a simple way could be to use a FGV (Functional Global Variable) aka AE (ActionEngine). It's a "cheap" way of encapsulation, half-way to OO…

Best regards,
GerdW

using LV2011SP1 + LV2017 (+LV2020 sometimes) on Win10+cRIO
Message 2 of 3
(659 Views)

Thanks for that info, I will have a try.

0 Kudos
Message 3 of 3
(653 Views)