LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

lock all vi"s in a lvlib

I want to password protect a .lvlib and have that protection propagate to all vi's in the library.  Unforturnatly when you lock the .lvlib it only prevents you from add/remove vi's from the library.  You can still edit vi's in the library unless you individually edit the properties for each vi.

 

0 Kudos
Message 1 of 8
(4,488 Views)

Then you might want to put that in the LabVIEW Idea Exchange.  That would be an excellent idea that NI should implement.


GCentral
There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
0 Kudos
Message 2 of 8
(4,486 Views)

Using VI Server you can open a reference to each VI in a directory, set a password, then save it.  I believe VIPM has this feature built in when making packages now.

0 Kudos
Message 4 of 8
(4,460 Views)

The feature is in VIPM Pro, but not the free version.  I will take a look at writing some scripting to do this using VI Server.  I will also consider purchasing VIPM Pro. 

0 Kudos
Message 5 of 8
(4,446 Views)
It is a simple VI and when I have a PC tomorrow I'll see what I can post. That being said VIPM pro is nice for project scanning and VIPC file creation.
0 Kudos
Message 6 of 8
(4,438 Views)

Attached is a VI that will lock or set a password for all VIs in a folder.  With progress and cancel.

Message 7 of 8
(4,402 Views)

I added an invoke node for saving each file after setting the Lock State. This was needed in order to make the function work as expected in LV2018. I can't speak to whether it is needed for older versions of LV.

 

https://forums.ni.com/t5/Example-Code/Programmatically-Lock-and-Save-a-VI-Using-LabVIEW/ta-p/3504647...

0 Kudos
Message 8 of 8
(3,107 Views)