LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Top level vi or subvi?

Hi,
 
that's probably a question that has been asked a thousand times already but nevertheless I haven't found an answer in the forum yet.
 
In the code of a vi I need to know whether the vi was started manually as a toplevel vi or whether it was loaded as a subvi or dynamically as a plugin. I need this information to build a path dependent on the run-type of the vi. Where do I get this information from?
 
Thanks,
Peter
0 Kudos
Message 1 of 4
(2,645 Views)
Do you know "call chain.vi"?
 
try it and give me some news.
Software developer
www.mcm-electronics.com





PORTUGAL
0 Kudos
Message 2 of 4
(2,633 Views)

Jorge,

thank you. Yes, I already knew the vi "call chain". However, I thought there would be something more elegant. Right now I don't have the time to penetrate the problem in depth. Maybe I'll come back to it later.

Peter

0 Kudos
Message 3 of 4
(2,594 Views)

Hi there.

Try placing af prperty node with class: Vi Server.VI and use the Execution.State property.....

It will tell wether the VI is called from another, or its the top level.

 



Message Edited by BCL@Servodan on 06-11-2008 07:38 AM
Don't forget to rate a good Answer....
---------------------------------------------------------
Here should be some cool signature

But there's NOT

LabVIEW 2012-2017
---------------------------------------------------------
0 Kudos
Message 4 of 4
(2,591 Views)