03-20-2017 02:31 AM
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.
Solved! Go to Solution.
03-20-2017 02:34 AM
03-20-2017 02:38 AM
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.
03-20-2017 03:07 AM
03-20-2017 03:16 AM
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.
03-20-2017 04:01 AM
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…
03-20-2017 04:08 AM
Me too,
But for more modularity, what I need is used <TopVI> .
Regards.
03-20-2017 05:13 AM - edited 03-20-2017 05:21 AM
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.
03-20-2017 11:02 AM
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.
03-20-2017 12:36 PM - edited 03-20-2017 12:37 PM
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