03-16-2012 09:55 PM
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.
Solved! Go to Solution.
03-16-2012 10:09 PM
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.
03-17-2012 08:01 AM
03-19-2012 10:44 AM
Thank you, Ravens Fan and Mike Porter.
(Many Ravens fan here in Newark, Delaware, since Joe F. was a Blue Hen.)