To download NI software, including the products shown below, visit ni.com/downloads.
This VI pops up a login prompt that allows a user to log into their domain account configured with DSC Security Tool (Tools » Security » Domain Account Manager). The login screen disappears after a specified Login Timeout.
Description
The Main VI ([Main] OPC Server Security Login Dialog.VI) calls the Login Popup.vi configured as a dialog. In the Main VI the user can configure the timeout value for the login popup screen. The Login Popup SubVI is using the "NI Security Programmatic Login" VI from the DSC palette to allow the user to enter their NI Security credentials to log into their account.
The Login Popup SubVI has one while loop with a event structure inside. The event structure monitors the OK and Cancel button. It also checks in the timeout case how much time has been elapsed and displays the user the remaining time. Once the Login Timeout expires the Login Popup exists.
For more information on the LabVIEW DSC Module check out this link (https://www.ni.com/en-us/shop/product/labview-datalogging-and-supervisory-control-module.html).
Requirements
Software
Hardware
Steps to Implement or Execute Code
Additional Information or References
In order for the login VI to work properly make sure you have a valid username/password configured the Domain Account Manager (Tools » Security » Domain Account Manager)
Example code from the Example Code Exchange in the NI Community is licensed with the MIT license.