LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

call by reference - global variable and single process shared variables

I have a main program that functions as a test sequencer (User Interface and calls test). I then have a packed library of test available for the main sequencer to call (A, B, C, etc.). The problem is that when I build application the global variable will no longer work to pass information from the main program to the test. I have replaced the global with a Single Process Shared Variable and this works as expected. 

 

New problem, is there a way to programmatically get a list of all the variables in my shared variable library and update them based on name? At the start of all my old programs I have a VI that looks at parameters in the DB and updates the global values to match. This is great because I can have the same program on 3 or 4 different machines and I load the machine parameters on startup. 

 

Is the SPSV the right tool for passing data via call by reference?

0 Kudos
Message 1 of 2
(972 Views)

Why not give the plug in a method (VI) that returns a list of variable names?

 

Why not give the plug in a method (VI) that returns a list of variable values?

 

No need for globals...

0 Kudos
Message 2 of 2
(909 Views)