LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

VI to locate files?

Hello all,

I am creating a VI that locates all VI's and controls that are sub-VI's
of a user-input VI. Using the "property node" -> "Callees" function, I
can get the names of all the sub-VI's, but I need the paths.

Does anyone know how to locate the path of a file given the filename?
I'm sure this has been done before. It would have to use recursion to
seach all dirs, and I've already done two recursive VI's today and it's
driving me nuts.

Thanks to anyone who can help.

Rick
rick@csciences.com

Chesapeake Sciences Corp.
1127B Benfield Blvd Millersville, MD 21108

Tel: (410) 923-1300 x3430 Fax: (410) 923-2669
0 Kudos
Message 1 of 3
(2,651 Views)
Hello

Just open a VI reference for each VI name and use the property node "VI
path.

Jean-Pierre

Rick Nelson a écrit dans le message :
3814BB41.3B08B6C@csciences.com...
>
> Hello all,
>
> I am creating a VI that locates all VI's and controls that are sub-VI's
> of a user-input VI. Using the "property node" -> "Callees" function, I
> can get the names of all the sub-VI's, but I need the paths.
>
> Does anyone know how to locate the path of a file given the filename?
> I'm sure this has been done before. It would have to use recursion to
> seach all dirs, and I've already done two recursive VI's today and it's
> driving me nuts.
>
> Thanks to anyone who can help.
>
> Rick
> rick@csciences.com
>
> Chesapeake Sciences Corp.
> 1127B Benfield
Blvd Millersville, MD 21108
>
> Tel: (410) 923-1300 x3430 Fax: (410) 923-2669
0 Kudos
Message 2 of 3
(2,651 Views)
Rick Nelson schrieb:

> Hello all,
>
> I am creating a VI that locates all VI's and controls that are sub-VI's
> of a user-input VI. Using the "property node" -> "Callees" function, I
> can get the names of all the sub-VI's, but I need the paths.
>
> Does anyone know how to locate the path of a file given the filename?
> I'm sure this has been done before.

Rick, it has been done. You don't need recursion, BTW. Richt now i'm in a
hurry, just browsing through my mails. I try to post my solution to the
forum next couple of days. Drop me a note if you interested.



Franz Ahlers
PTB
Germany

+49 (0)531 5922410
0 Kudos
Message 3 of 3
(2,651 Views)