LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Data terminal vs. Reference in SubVI

Sometimes, my SubVI consists of some while loop for continuous execution.
To monitor the status of the execution, I use a reference and that is very useful to update in mainVI.
 
However, I feel some trouble in debugging or reusing as a mainVI from only one SubVI, which has some reference inputs (reference-SubVI).
I mean I would like to know how to make the stand-alone reference-SubVI.
The reference inputs are useless in some cases.
Can I solve my problem without big editting the reference-SubVI?
 
Thanks.


메시지가 02-12-2008 06:55 PM에 labmaster에 의해 편집되었음
0 Kudos
Message 1 of 2
(2,578 Views)

hi labmaster,

      You have a sub-vi with a control-reference input - this allows the sub-VI to change the control-value (in the caller).  However, for debug, you'd like to run the sub-VI as a top-level VI and the question is: what to do with the reference?  If this is what you mean, then, I'd edit the "sub-VI" to test the control-reference and, if it's a valid reference, just do business-as-usual, but, if it's not a valid reference, then the sub-VI shouldn't try to use it.

I hope I understood - sorry if not!

Cheers. 

"Inside every large program is a small program struggling to get out." (attributed to Tony Hoare)
0 Kudos
Message 2 of 2
(2,563 Views)