08-10-2009 02:09 PM
My customer has a variety of inspections going on and has the ability to adjust the tolerances on the fly using controls. But, he would like to add a password so only the supervisor could make the adjustment. Is that possible?
Thanks,
JJRGT
08-11-2009 11:12 AM
Hi JJRGT,
There is no function that allows you to lock controls, however you can set up a password for the VI using File»VI Properties»Protection. This allows you to lock the block diagram. You could then set up the password using logic in LabVIEW. You could use a dialog box and if the input string doesn't match the string in the block diagram then the value would reset to the previous value. That accomplishes the same thing.
Nick Keel
Applications Engineering
National Instruments
08-12-2009 12:30 AM
Using a while loop you can constantly check for a string input. If the string input doesnt match that of a supervisor string then you can grey the tolerance settings and if it matches you enable editing....