LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

locating example VIs on different Windows computers

Solved!
Go to solution

I get an error when I try to run VIs on different Windows machines, due to the different locations of a built-in subVI.  Specifically, I have some VIs that call create_ramp.vi, which is in ..\LabVIEW 2011\examples\analysis\intpxmpl.llb.  On one computer, the subVI is in C:\Documents and Settings\Program Files\National Instruments\...  On another computer, it is in C:\Program Files\National Instruments\...  (The difference is the Documents and Settings folder.  I accepted the default directory choices when I upgraded to LV2011.)  If I save a VI on one computer, it gives an error when I run it on the other, and vice versa.  How do I make the VI more platform-independent?  Can I have the top level VI remember more than one suggested path to a subVI? That would prevent getting an error message, and then having to click through a bunch of directories to specify the right LLB file, every time I switch computers.  Why does it just happen with this subVI, and not with the many other built-in subVIs which my programs call?

Thank you.

 

0 Kudos
Message 1 of 4
(2,781 Views)

Apparently there was a problem with the installation of LabVIEW into the wrong directory.  Or perhaps Windows was set up wrong as to the directory.

 

Program Files should be under C:\ not C:\Documents and Settings.

 

So either LabVIEW was installed wrong, or Windows was install/setup wrong.

 

There may be a way to define both directories as part of the search path of LabVIEW in the LabVIEW .ini file.  But I don't know if that should be necessary.

 

What needs to be done is to fix the one computer so that Program Files isn't a subdirectory of Documents and Settings.

Message 2 of 4
(2,780 Views)
Solution
Accepted by topic author WCR
Under the File IO menu there is a little VI Library path constant. In the development environment it always points to where the vi.lib directory is. Strip that once and you get where LV is installed.

Alternately the default directory constant usually points to where lv is installed, but that can be edited.

Mike...

Certified Professional Instructor
Certified LabVIEW Architect
LabVIEW Champion

"... after all, He's not a tame lion..."

For help with grief and grieving.
Message 3 of 4
(2,767 Views)

Thank you, Ravens Fan and Mike Porter.

(Many Ravens fan here in Newark, Delaware, since Joe F. was a Blue Hen.)

0 Kudos
Message 4 of 4
(2,748 Views)