LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

What does these warning mean? "The typedef expected to be at "location1" was loaded from "location2"


This usually happens when I copy the entire code directory  to another location.

Sometimes when I tried to modified the VIs in the new location, I find the old files are modifed.

It is really confusing How I can manage this?

I know I should use save with options, but sometime I need to tranfer it over FTP to another computer.

Doesn't the refering to sub-VIs using a relative path?

Thanks

akang



0 Kudos
Message 1 of 5
(2,901 Views)
Hi

I myself often have this problem. if there is no file of the specified name found in the original location it seem like labview will load whichever file of the same name which was previously loaded. back up often to avoid losing any files. also avoid opening two files of the same name from different locations.

Goy

Message Edited by SG_ENGINEER on 08-28-2005 01:37 AM

0 Kudos
Message 2 of 5
(2,898 Views)

As you said, the paths to the subVIs are relative to the caller's location (e.g. go 3 directories up, then go into directory called aaa and find the file bbb.vi). This means that if you move your files to a different location and they call a VI, they will try to find it in the same location. If they can't, LV will start searching for it. It will start by looking in the same directory your VI is in, then it will go through the directories configured in the VI search paths screen of the options menu (and if it doesn't find it, it will ask you to find it yourself).

The other point, as mentioned by Goy, is that only one VI of a certain name can be in memory at any one time. That means if you have a VI open and you try to open a VI calling a different VI with the same name, the opened VI will now form a link to the already opened subVI and that link will stay permanent (unless you don't save the calling VI).

For directory structure, you can try having subdirectories and keeping project prefixes or suffixes for VI names, to avoid duplicates. Common utility VIs can be saved in a central location. You can try looking at OpenG for an example.

To learn more about LabVIEW, I suggest you try searching this site and google for LabVIEW tutorials. Here and here are a couple you can start with. You can also contact your local NI office and join one of their courses.
In addition, I suggest you read the LabVIEW style guide and the LabVIEW user manual (Help>>Search the LabVIEW Bookshelf).

I think the style guide has some more details on this.


___________________
Try to take over the world!
Message 3 of 5
(2,887 Views)

Here is a good discussion on how LabVIEW loads VIs in general -- good to know to manage such issues: 

http://messages.info-labview.org/2004/02/29/09.html

Regards,

-Khalid

Message 4 of 5
(2,885 Views)
Thanks guys, they are really helpful information

akang
 
0 Kudos
Message 5 of 5
(2,873 Views)