Jump to content

Open block diagram programmatic


Recommended Posts

Posted

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 advanceyes.gif

regards Bjarne

Posted

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

Posted

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.

Posted

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 perfectworshippy.gif

cheers Bjarne

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.