Locks the Stimulus Profile Session with the new_password. If the session is locked, any attempts to modify its execution state fail. If an error occurs, this instance throws an exception.
Namespace:
NationalInstruments.VeriStand.ClientAPI
Assembly:
NationalInstruments.VeriStand.ClientAPI (in NationalInstruments.VeriStand.ClientAPI.dll) Version: 2013.0.0.0 (2013.0.0.0)
| Visual Basic (Declaration) |
|---|
Sub Lock ( _
old_password As String, _
new_password As String _
) |
| Visual C++ |
|---|
void Lock(
String^ old_password,
String^ new_password
) |
Parameters
- old_password
- Type: System.String
The previous password for the Stimulus Profile Session. If the session is not already locked, this parameter is ignored.
- new_password
- Type: System.String
The password to use to lock the Stimulus Profile Session. The session does not lock if this string is empty.