LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to lock block diagram of methods of a class

Hi all,

I have several classes with private and public methods. I'd like to lock the block diagram of all the methods.

In Class property-> protection I've created a password;  Result of this is that all the private methods are hidden, but public methods are editable and their block diagram is visible.

The only solution seems to lock each single method of my classes (one by one).

Can you help me?

 

0 Kudos
Message 1 of 2
(2,968 Views)

1) Use VI scripting to apply/set the passwords on the VIs in the class - I think the method is called 'lock'

2) Use VI package manager to create a VI package of your class/library and have it apply a password to the VIs

3) It might also be possible when creating a source distribution?

 

From your post, it sounds like you are distributing code to other developers - in this case, you probably don't want to lock your 'source' VIs as you'd need to unlock them every time you work on them - therefore it makes sense to create a distributable of your source files, the process of which applies the password to lock down the VIs. VI Packages are ideal for this!


LabVIEW Champion, CLA, CLED, CTD
(blog)
0 Kudos
Message 2 of 2
(2,958 Views)