To download NI software, including the products shown below, visit ni.com/downloads.
This example adds functionality to the default TestStand Login procedure to automatically create a new TestStand user corresponding to the current windows user if one does not exist. If you have the "Automatically Login Windows System User" Option selected in the station options, the new user will be logged in automatically.
The attached example will login any Windows user with Operator privileges and therefore the login dialog will not show through the following steps:
TestStand 2016 or compatible
If you would like this functionality, simply rename your default frontendcallbacks.seq (found in <TestStand>\Components\NI\Callbacks\FrontEnd or <TestStand>\Components\Callbacks\FrontEnd) and rename the attached file to frontendcallbacks.seq. Place the attached file in the FrontEnd folder. Now when you run the NI Sequence Editor the sequence called will have the behavior described above.
Example code from the Example Code Exchange in the NI Community is licensed with the MIT license.
hello
you write : 'The attached example (written in TestStand 4.0) will login any Windows user with Operator privileges and therefore the login dialog will not show.'
I don't see an attached document...
greets and thank you i suppose lol
kevin
Hi smogly,
Yes I had some trouble attaching the sequence file on Friday, I apologize for any inconvenience.
I have attached a zip file with the sequence file which you may download now.
This idea was useful for me, thanks!
I updated it to use the .NET adapter and the System.Security.Principal.WindowsIdentity class to call GetCurrent().Name. I've attached it in TS2013 format.