LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Renaming a Library Programmatically

Solved!
Go to solution

Manually, I can open a .lvlib file, Save As ..., then select Rename.  Then all of the owned items will be linked to the new name.  I want to do that programmatically.

 

This doesn't work: 

paul_cardinale_0-1664982241107.png  All the owned items are still linked to the old (still existing) .lvlib file.

 

This doesn't work:

paul_cardinale_1-1664982348924.png   It throws an error because the original .lvlib file exists on disk.

 

This does work:

paul_cardinale_2-1664982425383.png  But it's a private method.  Is there a way to accomplish the same thing without using a private method?

 

 

 

"If you weren't supposed to push it, it wouldn't be a button."
0 Kudos
Message 1 of 10
(375 Views)
Solution
Accepted by topic author paul_cardinale

It seems you need to Save a Copy (and remove the old one), that worked for me.

G# - Award winning reference based OOP for LV, for free! ADDQ VIPM Now on GitHub
"Only dead fish swim downstream" - "My life for Kudos!" - "Dumb people repeat old mistakes - smart ones create new ones."
Certified-LabVIEW-Developer
Message 2 of 10
(351 Views)

@paul_cardinale wrote:

paul_cardinale_0-1664982241107.png 


That path takes me back 20 years 😁.

Message 3 of 10
(271 Views)

wiebe@CARYA wrote:

@paul_cardinale wrote:

paul_cardinale_0-1664982241107.png 


That path takes me back 20 years 😁.


Hah! I didn't react to the A:! It didn't work because Paul forgot his floppy!

G# - Award winning reference based OOP for LV, for free! ADDQ VIPM Now on GitHub
"Only dead fish swim downstream" - "My life for Kudos!" - "Dumb people repeat old mistakes - smart ones create new ones."
Certified-LabVIEW-Developer
Message 4 of 10
(254 Views)

@Yamaeda wrote:

wiebe@CARYA wrote:

@paul_cardinale wrote:

paul_cardinale_0-1664982241107.png 


That path takes me back 20 years 😁.


Hah! I didn't react to the A:! It didn't work because Paul forgot his floppy!


MY first box of 10 floppy disks cost $90.  Each disk held 320,000 bytes.

"If you weren't supposed to push it, it wouldn't be a button."
Message 5 of 10
(236 Views)

8 inchers?

G# - Award winning reference based OOP for LV, for free! ADDQ VIPM Now on GitHub
"Only dead fish swim downstream" - "My life for Kudos!" - "Dumb people repeat old mistakes - smart ones create new ones."
Certified-LabVIEW-Developer
0 Kudos
Message 6 of 10
(190 Views)

@Yamaeda wrote:

8 inchers?


No, 5 1/4".  When I bought the computer, I was somewhat concerned about the fact that it had 5 1/4" instead of 8" because at the time, there was no standard for the 5 1/4" floppies; there were a variety of different formats.

"If you weren't supposed to push it, it wouldn't be a button."
Message 7 of 10
(165 Views)

Ouch.  That's very expensive discs.

What year was that?

I remember 3 1/2" disc only cost $1 in 1987.

 

George Zou
0 Kudos
Message 8 of 10
(160 Views)

@zou wrote:

Ouch.  That's very expensive discs.

What year was that?

I remember 3 1/2" disc only cost $1 in 1987.

 


1983

"If you weren't supposed to push it, it wouldn't be a button."
0 Kudos
Message 9 of 10
(154 Views)

@zou wrote:

Ouch.  That's very expensive discs.

What year was that?

I remember 3 1/2" disc only cost $1 in 1987.

 


As a side note, today, cost/bit of electronic memory is more than 100 million times less than in 1980.

So the amount of storage in a card/stick that costs $10 today would have cost more than one billion dollars in 1980 (and those are 1980 dollars).

"If you weren't supposed to push it, it wouldn't be a button."
Message 10 of 10
(93 Views)