LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

not passing reference

Can anyone explain why a control reference would not be passed to a subvi? I have a 4-boolean cluster. I'm not doing anything fancy with the references, just enable/disable/grey sort of thing. The reference gets passed to a subvi, then another subvi from there. I probe the reference on the top-level and I have a ref number, but by the time it gets to the first subvi it's gone and I get an error. I copied this portion of my application with the control and 2 subvi's and ran them apart from the main application and it runs fine. It has me a little stumped.
PaulG.
Retired
0 Kudos
Message 1 of 5
(3,022 Views)
Hi Paul,
can you please show use your code?
Mike
Message 2 of 5
(3,019 Views)
Never mind ... found it. I had one set (of 24) of my control/ref/subvi's on the code with the reference not connected to the subvi.
 
Details schmetails ... Smiley Very Happy
 
Thanks anyways.
PaulG.
Retired
0 Kudos
Message 3 of 5
(3,009 Views)
Since LabVIEW 8.5, I believe you can set the default for connector pane terminals to be Required, but you should do this before 8.5 too - every control should be Required, unless it has a reasonable default value.

___________________
Try to take over the world!
0 Kudos
Message 4 of 5
(2,992 Views)
I'm using 8.2, but not a bad idea to set defaults to required. Thanks.
PaulG.
Retired
0 Kudos
Message 5 of 5
(2,969 Views)