LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

variable doesn%27t work

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.

0 Kudos
Message 1 of 4
(2,729 Views)

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.


GCentral
There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
0 Kudos
Message 2 of 4
(2,706 Views)

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.

0 Kudos
Message 3 of 4
(2,697 Views)

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.


GCentral
There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
0 Kudos
Message 4 of 4
(2,686 Views)