NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

Can I create a VI to change the 'operator' name on the teststand report?

I want the user to be able to type in a name, as well as other information, in a VI when a test begins. I do not want to create 'users' as I don't know who the testers will be.

I want the user to log in as an administrator (or tester -- any generic login), then type in their name into a VI that pops up when the test is started. I would then like to take their name as a string variable and pass it through to teststand and have it appear in the 'operator' area on the report.

How do i do this?

Thanks in advance!

Dave Neumann
0 Kudos
Message 1 of 3
(3,710 Views)
In your process model, you can modify the Locals.StationInfo.LoginName variable. The default process model does this in the "Get Station Info" subsequence with the expression "Parameters.StationInfo.LoginName = StationGlobals.TS.CurrentUser.LoginName". You could either replace that statement, or add another one after it.

An easy way to create a prompt is with the Message Popup step type. To get input back from the user, edit the step properties and configure the message box. Under the Options tab you can select "Enable Response Text Box". Then you can enter a post-expression like "Parameters.StationInfo.LoginName = Step.Result.Response" to assign the name to the TestStand variable.
0 Kudos
Message 2 of 3
(3,710 Views)
I tried doing as Mark suggested.  I put my message popup in setup but that's too late to get it into the current report.
 
i had to put it into the sequence file callback (PreUUTLoop) to get it into the current report.
0 Kudos
Message 3 of 3
(3,498 Views)