03-22-2009 06:52 PM
03-22-2009 11:23 PM
03-23-2009 07:52 AM
The variable may change depending on the instance of the Sub VI. If I were to include the actual reference to the variable in the subVI (global def), then I could not use the subVI in a universal fashion. In addition the shared variable are defined as single process, as similar instances of these VIs are running in parallel.
In effect, multiple VIs where the only difference is the global definition of the shared variables. Inside each VI, there can be similar calls to a sub vi with different variables.
I would like to be able to cll a SubVI using a shared variable by reference and not value if possible (without the overhead of creating arrays etc to house all the shared variables (and cal;ling with an index), as this would severely limit flexibility).
03-23-2009 08:44 AM
03-23-2009 08:49 AM
Yup, that would be the best way to do this. You can open the Datasocket connection using the following for the URL:
psp:\\localhost\[Library]\[VariableName]