09-04-2012 11:36 AM
Hi,
I have a question regarding Vision Builder AIs user interface.I have been developing a user interface front panel for a camera program and I have a tab control function set up where one of the tabs adjust variables imbedded into the program. The front tab indicates what the variables are. I want to know if there is a way I can lock out these tabs with password protection.
Thank you!
09-04-2012 12:42 PM - edited 09-04-2012 12:44 PM
Here's a very basic example of how you could do this in the attached VBAI 2010 inspection. Run this inspection in Inspection Mode and type password for the password to enable the second tab. You could have a popup dialog if you'd rather, but you can get the idea of how to programmatically hide/show a tab in the UI of VBAI. It's important to note that the "Run VI after updating indicators" flag is checked in the Update Custom UI step.
Hope this helps,
Brad
09-04-2012 12:54 PM
Do I need to Upload the .VBAI 2010 Password.vi file into the program using the Run LabVIEW VI? Unfortunately I don't have access to LabVIEW at this time to make VI's. Thanks for the feedback!
09-04-2012 01:10 PM
It sounded like you were creating a custom UI. If this is the case, you can select a VI as your custom UI. Vision Builder AI 2010 gives you the ability to create LabVIEW VI front panels for your UI without code behind it, but to accomplish what you want, you will need code behind your custom UI front panel in the block diagram of the VI. You can open the inspection without LabVIEW, but you will need LabVIEW to change the block diagram of the Custom UI VI. You do not need the Run LabVIEW Step, just the update Custom UI step.
Hope this helps,
Brad