LabVIEW Idea Exchange

cancel
Showing results for 
Search instead for 
Did you mean: 
sbus

Call Chain - Much nicer if it returns VI References, instead of VI Names!!!

Status: New

It would be far more useful if, instead of returning the string VI Name of each item on the call chain, it returned a VI Reference to each item on the call chain.

 

You can obtain the VI Name from the VI Reference; but not the reverse. The VI Reference indicates which instance of the SubVI on the block diagram of it's caller was the one in the call chain.

 

If a SubVI appears in multiple places on the block diagram, the call chain as currently implemented doesn't give you enough informatiion to figure out which instance actually was the caller...

 

 

15 Comments
SteenSchmidt
Trusted Enthusiast
Call chain already contains clone names, doesn't it? Sorry can't verify this myself just now, as I'm isolated with only my phone at hand (and when will I be able to run LabVIEW on that?). Cheers, Steen
CLA, CTA, CLED & LabVIEW Champion
fabric
Active Participant

Steen: You're right. (Not sure what I was thinking...)

GeoffF
Member

I've just implemented this VI (if it actually displays):

Extend/reject/criticise/use at your leisure.


Geoff

--
Geoff Field, BE, CLAD, MIEAust
Professional geek, amateur stage-levelling gauge
RavensFan
Knight of NI

It didn't display.

 

Did you use the icon of the tree on the editor to insert the picture?

GeoffF
Member

I just pasted from Paint.  I should have known better.  Here it is, properly inserted:Find Caller Ref

 

You'll note that I return the reference to the caller (if there is one), as well as the top of the call chain - just because I can.  It would be possible to iterate over the array of names and produce an array of references, but all I really wanted was the top-level caller.


Regards,


Geoff

--
Geoff Field, BE, CLAD, MIEAust
Professional geek, amateur stage-levelling gauge