05-06-2022 02:56 PM
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?
05-09-2022 06:43 AM
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...