LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Programmatic Password Save in 8.5 Without vi.lib files

Hi
 
Lamenting the loss of the "Save With Options" in LabVIEW 7.1, I am trying to replicate some of the behaviour in 8.5.
 
To this end, I have written two vi's one to remove the password for all vis that are in memory, and another one to add a new password to all the vis in memeory and they work very nicely.  However, the one that saves the password to all the vis in memory tries to apply it to the vi.lib vis that are in memeory as well, and I want to stop it trying to do this.
 
In LV7.1, there was a check box that allowed the user to apply the changes in "Save With Options",  to the vi.lib files or not for any operation, including applying passwords. For example in 7.1 when the vi.lib checkbox was unchecked only my vis had the password applied and the vi.lib files did not.
 
Going through the various properties available on the application reference in 8.5 for both the Property and Invoke Node, I cannot find anything that allows me to include or exclude vi.lib files in the operation.  I'm thinking that there must surely be a programatic equivalent to this checkbox, but I can't find it!!
 
I'm doing this because whenever I try to use the soucecode distribution within 8.5 to remove the passwords, eventually it always cancels the operation before I get to the end, which is very irritating to say the least.  I think part of the problem is that the particular development I'm working on has more than one password in it, and if I enter the wrong one at any point then it just cancels the operation.  Either way, I've never found it very sucessfull so i'm pressing on with my own solution......
 
Thanks
 
tim 
0 Kudos
Message 1 of 3
(2,756 Views)
Hi Tim,
if you have your own solution, then i think you need to get the reference to all vi´s. So if you have the reference you can check the path of the vi and if it is in the vi.lib, you can skip this vi and go to the next one.
Mike


Message Edited by MikeS81 on 05-14-2008 11:15 AM
Message 2 of 3
(2,754 Views)

Hi Mike,

Thanks for your reply.

Yes, at present I have all the references for all the vis in memory, and I am actually doing a quick check to make sure the ones I'm saving live the directory for my devlopment.  I thought there might be a nicer way though, especially with that checkbox for it in 7.1.  I'd love to know what that checkbox was doing, perhaps that was just a path check like you've suggested I implement?

Thanks again.

Message 3 of 3
(2,747 Views)