NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

Update user LoginName on the fly?

"but only when the test UUT`s sequence ends"

 

Do you mean the User: field in the status bar doesn't refresh until then, or you actually can't change the user?

 

If it is the former, try calling:

 

 ((ApplicationMgr)engine.GetInternalOption(InternalOption_ApplicationMgr)).Refresh(RefreshOption_All);

 

0 Kudos
Message 11 of 12
(900 Views)

Hi Schwede,

 

Here's a quick example that does what James suggested.  Note that while you can run this example as-is, this example would need to be expanded upon before implementation in your application - for example, there is no checking done to see whether or not a user with a given LoginName exists, and no password checking.  It proves the concept, though.

Derrick S.
Product Manager
NI DIAdem
National Instruments
0 Kudos
Message 12 of 12
(888 Views)