LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

SubVIs calling. Absolute or relative paths?

Solved!
Go to solution

Hi,

 

How can I get know how the subVIs are called? I'd like to know what path type is used; absolute or relative.

The brilliant solution would be if I could pick a VI and get a list of its subVIs with path near by.

 

K.

0 Kudos
Message 1 of 4
(4,383 Views)
Solution
Accepted by topic author MimiKLM

All paths are relative (even on different drives: /../../D/data/*) except for the symbolic paths (user.lib and vi.lib)

The OpenG toolkit has a function called List VI Hierarchy which returns an array of all VI inside the calling tree:

 

 

Ton

Free Code Capture Tool! Version 2.1.3 with comments, web-upload, back-save and snippets!
Nederlandse LabVIEW user groep www.lvug.nl
My LabVIEW Ideas

LabVIEW, programming like it should be!
0 Kudos
Message 2 of 4
(4,378 Views)
I have a subvi that has 2 'read from spreadsheet file' nodes.  I need to access the files themselves remotely across a network one at a time.  I have tried using the Open/Create/Replace node but it is not currently prompting the user to locate the 1st file when the vi runs and then is only finding as you say a 'relative path' when it requires an 'absolute path' and gives me an error.  What is the work around for this problem??  Thanks in advance for your help.  John
0 Kudos
Message 3 of 4
(4,216 Views)

You should post this question in a new message thread.  While you talk about relative vs. absolute paths, it really has nothing to do with the original question of this thread.  I don't understand your question as to how absolute vs. relative paths reelates to Open/Create/replace or the Read from Spreadsheet File VI.

 

Perhaps when you post, you can attach your VI so we can see what you are trying to do.  When it gives an error, does it have an error message or error number associated with it?

0 Kudos
Message 4 of 4
(4,209 Views)