11-27-2019 11:59 AM
Hi,
I have a programme that is run with both "Labview " and "Teststand" . in this programme i have a SubVI in which i want to Know when it's called and what ils the VI caller . i do not want to open all the programme is it possible to Know that from the SubVI ?
Thank you .
Solved! Go to Solution.
11-27-2019 12:11 PM
Use the "Call Chain" VI. You can find it in the Application Control palette.
11-27-2019 12:17 PM
Hi , thank you
How to used properly ?
11-27-2019 12:26 PM
Did you try using it? It returns an array of the VIs in the call chain.
From the help:
Requires: Base Development System
Returns the chain of callers from the current VI to the top-level VI. Element 0 of the call chain array contains the name of the lowest VI in the call chain. Subsequent elements are callers of the lower VIs in the call chain. The last element of the call chain array is the name of the top-level VI.
If you are using the current VI as a subVI, you can use this function to identify all the VIs that call the subVI.
If a LabVIEW project library owns a VI in the call chain, the function returns the qualified name of the VI, which includes the project library filename.
11-27-2019 07:31 PM
Do you know how to use LabVIEW Help to get "help" for any LabVIEW Function? Do you know the "right-click-on-the-function-and-choose-Help" trick?
Bob Schor
11-27-2019 11:55 PM
Hi,
When i use call chain it return only the name of the current SubVI . "the name of the SubVI in which i want to Know the callers "
i need explination for that ?
Thank you.
11-28-2019 01:16 AM
When you only run the VI, the call chain will be empty except for the VI. You have to call your VI from another VI.
Do you want to know the callers at edit time and not at run time? You can find the callers by right-clicking on the VI and selecting Find->Callers. This will only list callers in the current project. The VI itself stores no information by which VI it is called.