09-05-2008 12:22 PM
09-05-2008 01:08 PM
Hi Gerald,
I thought about requesting that the VIs be renamed.
1) This could break the code of those using those VIs.
2) NI may come up with a better solution.
A previous comment mentioned the namespace ...
My first though was C++ namespaces that allow the same name to be used in different namespaces without collisions. Perhaps something like this can be implemented. Then I continued reading and saw that the poster was talking about the (one and only one) namespace.
Namespaces would work very well for things like instrument drivers where we always want to use open (open.vi), initialize (initialize.vi) and close (close.vi) operations.
Just thinking out loud...
- les
10-01-2008 03:15 PM - edited 10-01-2008 03:21 PM
10-01-2008 03:38 PM
Previous to 8.5, an automatic rename happened for all library types. This unfortunately caused problems with LabVIEW classes since the VI names are important with dynamic dispatching. The model was changed in 8.5 so that conflicts would always result in external files rather than automatic renaming. This let the user take control of the process in case any automatic algorithm made the wrong choice in the renaming.
To ease the manual process, you can use project folders to help with the renaming. You can either add the libraries and files to a project folder and then apply a prefix to all files in that folder or you can create a folder under the library and then apply a prefix there.
This is a known issue that is actively being investigated.
10-01-2008 04:10 PM
03-17-2009 10:48 AM - edited 03-17-2009 10:48 AM
Can you guys tell me the best way to handle the similar problem that is occuring BETWEEN LABVIEW files themselves during the build. It has to do with use of the matrix functions. Here is a screenshot of my problem. It was not clear to me how I could rename for the several conflicst when I only see a box for for renaming one file name. Do I separate the names by commas?
HELP!!
Thanks,
Don
03-18-2009 06:39 AM
I am offsite today but I have a hunch that two different versions of the VI 'Multiply - CM,C.vi' are in my set of VIs comprising this project and if I find all instances are replace the instances to make sure they are all coming from one place, I might solve this. (I don't know why this would have happened.) Or renaming this particular VI (the other conflicts may be controls associated with that VI) might work. I will report back on this when I try either later today or tomorrow.
Sincerely,
Don
03-18-2009 11:55 AM
Hi Don,
This is a known issue with LabVIEW and R&D is working on a fix for a future release of the software. At the moment the suggestion is exactly what you are attempting. Please post back your results.
03-19-2009 08:29 AM
Only way around this problem seems to be the following:
During the build, the name collision causes two folders to be formed that separate out the identically-named VI and ctl(s). These folders are deposited in the same location as the executable. The developer needs to send these folders to the end users and have them be placed in the same directory as the executable, or the developer needs to build an installer which should do this automatically. I did not initially build an installer because the end users already had the LabVIEW 8.5 RTE on their systems and thus did not think I needed to do so.
So this would appear to be the workaround in my case.
Sincerely,
Don
01-26-2010 12:20 PM