LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Symbolic path

Solved!
Go to solution

Hi everyone, I’m having some hard time using symbolic path into LabVIEW.

I’m trying to create a relative path to a documentation using the symbolic path <topVI>.

This path is as default set into the VI Search Path on the Paths page.

The path only return me a not a path value.

 

Did somebody already used this path and could explain it to me please.

 

Regards.

 

Sabri JATLAOUI - Certified LabVIEW Architect - Certified LabVIEW Developer
0 Kudos
Message 1 of 28
(3,672 Views)

Hi sabri,

 

where and how are you using this "symbolic path" in LabVIEW?

 

And why don't you use the CurrentVIPath or ApplicationDir file constants?

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 2 of 28
(3,670 Views)

Hi GerdW,

 

I'm trying to used it in the help path in the documentation property of a VI. I want to create help database linked to a project. So I need a relative path for the help file to avoid issue if i change the project location.

 

Regards.

Sabri JATLAOUI - Certified LabVIEW Architect - Certified LabVIEW Developer
0 Kudos
Message 3 of 28
(3,667 Views)

Hi Sabri,

 

ok, here I can't help. I never used the VI help to embed my own html files…

 

You should ask your local NI support!

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 4 of 28
(3,647 Views)

It's actualy very easy, it's just a path to a file. THe problem is the same if you're using a path with <topVI> on your diagram.

 

Regards.

Sabri JATLAOUI - Certified LabVIEW Architect - Certified LabVIEW Developer
0 Kudos
Message 5 of 28
(3,638 Views)

Hi Sabri,

 

THe problem is the same if you're using a path with <topVI> on your diagram.

In the diagram I use the AppDir path constant…

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 6 of 28
(3,618 Views)

Me too,

 

But for more modularity, what I need is used <TopVI> .

 

Regards.

Sabri JATLAOUI - Certified LabVIEW Architect - Certified LabVIEW Developer
0 Kudos
Message 7 of 28
(3,615 Views)

Symbolic paths is not an universal LabVIEW feature but limited to specific LabVIEW subsystems. I'm not sure what symbolic paths the documentation path in the LabVIEW VI properties supports, but <topvi> definitely sounds wrong. 
This assumes that it should mean the TopVI of the current VI hierarchy and when you add your VIs to a program, that would change accordingly to the top level VI of that application, which can't be right.

 

Generally when you install a library, you would install the library in a sub directory user.lib/{your company name}/{your library name} and the documentation into help/{your company name}/{your library name} and then you can refer to your documentation in the documentation path with <helpdir>/{your company name}/{your library name}/{help document}.html

 

And yes VIPM is a good tool to create a package that can be installed in this way by other users with VIPM.

Rolf Kalbermatter
My Blog
0 Kudos
Message 8 of 28
(3,597 Views)

Hi rolfk,

 

I'm agree with you in several points. Despite, if you want to share the documentation with several developer on a project, if you want it to be evolutive, it as to be part of the projects, not of the dependencies. Moreover, you need to commit your documentation into your project repository, so it as to be in the same checkout directory than the project.

 

Also in the below link,

 

http://zone.ni.com/reference/en-XX/help/371361M-01/lvhowto/using_symbolic_paths/

 

They authorize to use <topVI> and not talking about specific LabVIEW subsystem. 

 

I couldn't even make it work using path constant on the diagram. But it worked with <osdatadir>.

 

Regards.

 

Sabri JATLAOUI - Certified LabVIEW Architect - Certified LabVIEW Developer
0 Kudos
Message 9 of 28
(3,551 Views)

Read your link more closely.

 

Specifically:

 

<topvi>—Refers to the directory that contains the top-level VI that LabVIEW is opening. This symbolic path is only available when setting the VI Search Path on the Paths page

0 Kudos
Message 10 of 28
(3,540 Views)