LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Get Current vi Name

I'm making a generic error handler that I will use in many sub VI's.

Is there a way to programatically get the name of any sub VI that I
put my error handler into?

Thanks!
0 Kudos
Message 1 of 6
(9,301 Views)
Bill Watts wrote:
> I'm making a generic error handler that I will use in many sub VI's.
>
> Is there a way to programatically get the name of any sub VI that I
> put my error handler into?
>
> Thanks!
Bill,
This is certainly possible. The function you are looking for is
Call Chain in the Application Control subpallette.
If you want an example of how that can be parsed and used, I did
something very similar to what you suggest. You can download it from my
website if you want to take a look. There is a VI called Error Cluster
Generator.vi within the UtilityVIs.llb.

Regards,
Dave Thomson

-------------------------------------------------------------
David Thomson 303-499-1973 (voice and fax)
Original Code Consulting
dthomson@originalcode.com
www.originalcode.com
National Instruments Alliance Program Member
Certified LabVIEW Developer
Certified Instrument Driver Developer
-------------------------------------------------------------
Research Scientist 303-497-3470 (voice)
NOAA Aeronomy Laboratory 303-497-5373 (fax)
Boulder, Colorado dthomson@al.noaa.gov
-------------------------------------------------------------
There are 10 kinds of people: those who understand binary,
and those who don't.
0 Kudos
Message 2 of 6
(9,301 Views)
David,

Thanks for the link. It's exactly what I've been looking for.

I was looking at you code, and I can't figure out why you have a for
loop with an undefined "N" count?

Thanks!

Bill
0 Kudos
Message 3 of 6
(9,301 Views)
To oaraohrase David, there are 10 ways to specify how many times a for loop executes. Wire a number to the "N" terminal, or input an array - the autoindexing feature of a for loop executes array size times.
0 Kudos
Message 4 of 6
(9,301 Views)
Thanks!

LSNED

Bill

oaraohrase???
0 Kudos
Message 5 of 6
(9,301 Views)
oaraohrase  -    hmmm, broken right pinky?
0 Kudos
Message 6 of 6
(9,013 Views)