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
(1,814 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 LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
Message 2 of 3
(1,784 Views)

Thanks for that info, I will have a try.

0 Kudos
Message 3 of 3
(1,778 Views)