LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Vi linking problem

Hi all,

 

I have a function in my lvlib that contains a control called control1.ctl, and the control is in folder1.  I copy control1.ctl to another folder called folder2 without renaming the control.  Then, in the same project, I used both controls from the two different folders.  I thought the control used in the lvlib is going to be saved from naming conflict?  What's going on? 

 

Yik 

------------------------------------------------------------------

Kudos and Accepted as Solution are welcome!
0 Kudos
Message 1 of 6
(2,842 Views)
What do you mean you use it in the same project?  Do you actually have the two different controls listed in the project window or do you just have the two separate controls loaded up in your VI?
0 Kudos
Message 2 of 6
(2,804 Views)
Two different controls with the same name at two different lvlib used in the same project.
------------------------------------------------------------------

Kudos and Accepted as Solution are welcome!
0 Kudos
Message 3 of 6
(2,779 Views)

It probably opens the first one it get to. I bet if you look at the warning on the start up that it tells you that i got if from C:\....\folder1 or folder2. If you change the name on one I bet it would open from the other.

 

I don't beleive that you can have control1.ctl open twice with two different versions.

Tim
GHSP
0 Kudos
Message 4 of 6
(2,772 Views)

aeastet wrote: 

I don't beleive that you can have control1.ctl open twice with two different versions.


You can, as long as they are in separate libraries, as the library name would be part of the name.

 

To OP: I'm not sure what you're doing wrong, but it is possible to have two controls of the same name as long as they are in separate libraries. See attached example.

0 Kudos
Message 5 of 6
(2,758 Views)

It can work, if the control is actual part of the lvlib.

If you open the control the title of the control should contain the lvlib name.

If not, add the control to the lvlib and resave.

 

Ton

Free Code Capture Tool! Version 2.1.3 with comments, web-upload, back-save and snippets!
Nederlandse LabVIEW user groep www.lvug.nl
My LabVIEW Ideas

LabVIEW, programming like it should be!
0 Kudos
Message 6 of 6
(2,741 Views)