Bjarne Joergensen Posted July 6, 2011 Report Share Posted July 6, 2011 Hi Is there a way to open block diagram programmatic? I got a lot of VIs in a directory and sub directories and I want at quick way to find the VIs with password protection and test if I got the right password. Thanks in advance regards Bjarne Quote Link to comment
Black Pearl Posted July 6, 2011 Report Share Posted July 6, 2011 You need to enable VI Scripting in the options to have methods/properties for this. (LV2009 and later). If you open the BD of a protected VI without a correct pswd, you receive an error. Felix Quote Link to comment
Mads Posted July 6, 2011 Report Share Posted July 6, 2011 You do not need to open the block diagram, just run the Lock.State method on the VI. You can run the Get method first if you want and if it is locked you can run the set method with unlock as the new state and provide the password you have... If the password is wrong you will get an error, if it is correct you can lock it again if you want and go to the next VI. Quote Link to comment
Bjarne Joergensen Posted July 6, 2011 Author Report Share Posted July 6, 2011 You do not need to open the block diagram, just run the Lock.State method on the VI. You can run the Get method first if you want and if it is locked you can run the set method with unlock as the new state and provide the password you have... If the password is wrong you will get an error, if it is correct you can lock it again if you want and go to the next VI. Thank you Mads It works perfect cheers Bjarne Quote Link to comment
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.