National Instruments BridgeVIEW Manuale Utente

Pagina di 455
Appendix A
HMI Function Reference
© National Instruments Corporation
A-47
Check Operator Privileges
Use this VI to check the current user’s privileges and produce a Boolean output indicating if 
the currently logged in user has the privilege. Additional inputs can be sent to display a dialog 
box with a message (OK or OK/Cancel) and/or launch the login prompt if the current user 
does not have the requested privilege.
  
privilege to check inspects the privileges of the current BridgeVIEW user 
to see if he or she has been granted this privilege.
prompt for login (F) opens the Login dialog box if the current 
BridgeVIEW user does not have the requested privilege, and the input 
is
TRUE
.
dialog type (none) displays a dialog box if the current BridgeVIEW user 
does not have the requested privilege, and the message input is not empty. 
The type of dialog box is determined by the following input:
OK—A dialog box appears displaying a message and an OK button. 
If the prompt for login input is 
TRUE
, the login dialog box appears 
after the message dialog box is closed.
OK/Cancel—A dialog box displaying a message and OK and Cancel 
buttons. If the prompt for login input is 
TRUE
, the login dialog box 
appears when the OK button in the message dialog box is pressed.
message is the message to display if the dialog type input is not 
none
, and 
the current BridgeVIEW user does not have the requested privilege.
user has privilege is 
TRUE
 if the current BridgeVIEW user has the 
requested privilege.
login cancelled is 
TRUE
 if the current BridgeVIEW user does not have the 
requested privilege, prompt for login was 
TRUE
, and the login dialog box 
was cancelled.