取消
显示结果 
搜索替代 
您的意思是: 

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 项奖励
1 条消息(共 6 条)
9,295 次查看
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 项奖励
2 条消息(共 6 条)
9,295 次查看
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 项奖励
3 条消息(共 6 条)
9,295 次查看
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 项奖励
4 条消息(共 6 条)
9,295 次查看
Thanks!

LSNED

Bill

oaraohrase???
0 项奖励
5 条消息(共 6 条)
9,295 次查看
oaraohrase  -    hmmm, broken right pinky?
0 项奖励
6 条消息(共 6 条)
9,007 次查看