06-25-2015 03:19 AM
Hello & good morning,
I have several VIs which are loaded by 'call by reference'.
I want to interchange instrument handles (e.g. from PXI instruments) between them and try to use a variable (shared and now global, because shared doesn't let the VI load at all), but it only works when I step into or just put a probe in the called VI. That's not gona work on the target PC without labVIEW environment!!
regards,
Koen.
06-25-2015 05:45 AM
Why not just have the instrument handles be inputs to the VIs? Then you can wire directly into the connector pane, even with the Call By Reference.
06-25-2015 05:53 AM
Hello,
my intention was to "hide" the instrument handles in the layer I wrote for the DMM, MUX & VCCs (initialize, poll, measureR, measureV, enable, etc...)
It's thow peculiar that the "variables" only work when One steps into or puts a probe in the VI where the variables are written?
I solved it now by casting the different instrument handles (IVI class) to string, where string type is available in a proprietary c-dll for read/write (i/o storage write/read)
regards,
Koen.
06-25-2015 06:03 AM
kdCMC wrote:
my intention was to "hide" the instrument handles in the layer I wrote for the DMM, MUX & VCCs (initialize, poll, measureR, measureV, enable, etc...)
Sounds like a good place to use an Action Engine. Then you don't care about the handle since it is just stored inside of the Action Engine.