@Sean.C wrote:
The problem that I am having is that I want to update a local variable from the subvi periodically,
Just to clear up some possible misconceptions:
A local variable is not somethings that can stand on its own, it is just something that actually points to a front panel control or indicator. The control or indicator actually holds the data. It seems you actually want to update a control/indicator from within the subVI. So, yes, a control reference will do the job as some have already pointed out.
@Sean.C wrote:
and the only way I know how to do that is with globals (which would reduce portability of code).
Can you elaborate why a local variable would reduce the "portability" of the code? AFAIK, global varaibles are supported on all OSs. You project already has several parts: a main VI and subVIs. What kind of "portability" do you have in mind?
An action engine or functional global (as gabi suggested) would also add one more element to your distribution and that should not be a serious issue.
Another relatively clean way to share data between VIs is the shared variable, available in recent LabVIEW versions.
Are you more interested having access to the value for use in computations or are you mostly interested to just update a value of a control?