LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

VI-Caller Reference

Dear all,

 

In a bigger project I have several VIs with inputs and outputs (different types) on the Frontpanel. For Error handling purposes each VI contains a Error-SubVI that routes errors to a Error-Server. If an error occurs, the Error-SubVI includes its callers input and output values. For this the Error-SubVI needs its callers VI-Reference and that´s the problem. I can wire the "This VI" reference for each caller to the Error-SubVI but that´s inconvenient. There is a VI-Caller reference (that it accessible inside the Error-SubVI) but that does not give access to the VI-Callers frontpanel elements.

 

Any suggestions?

LV 2018
0 Kudos
Message 1 of 2
(407 Views)

Hi Dom,

 

You can open a reference to the caller using "Call Chain" and "Open VI Reference" from the Application Control Palette.

Then you can obtain control or indicator values using the method "Control Values:Get All":

raphschru_0-1690964672185.png

However this won't work as expected because for this method to return the correct values, the caller VI's Front Panel must have been in memory before being called, also indicator values won't be available until the completion of the caller VI's execution.

0 Kudos
Message 2 of 2
(384 Views)