From 12:00 AM CDT Sunday, October 17 - 11:30 AM CDT Sunday, October 17, ni.com will be undergoing system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

programatically find out error location vi

Solved!
Go to solution

Dear all, I am sure there must be simple answer for this.

 

I am doing Error Handling. Therefore, I have implemented a self written Error Handler.vi.

 

I am making an application having different  software layers (GUI, Data Handler, IO Handler etc). Now, whenever there is an error in any of the VIs across these layers, the above mentioned error handler code gets executed.  

 

I want to find out the location of this error handler VI in the hierarchy. I need to trace the path. How can I do it?

 

Hope I am clear.

 

Regards...

Message 1 of 3
(1,380 Views)
Solution
Accepted by topic author Sreedhar_T

There is a VI in the Programming>Application Control pallete called "Call Chain" - this VI will return an array of VI names representing the hierarchy that of VIs at the particular instance e.g. If VI1.vi calls VI2.vi, that calls VI3.vi the array will have three elements:

[0]=VI1.vi

[1]=VI2.vi

[2]=VI3.vi 

 

Is this the kind of thing you are looking for? 

 

Shaun 

Message 2 of 3
(1,375 Views)
Thank you... I think it will help me.
0 Kudos
Message 3 of 3
(1,351 Views)