NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

Override Operator Name in Report gerenated by batch model

Solved!
Go to solution

In my application, I have disabled Test Stand's login method. I don't want to use a login method. I want the report that is auto generated to contain a value in the operator field that I programmatically set. I don't need to have a user logged in, just want to override the value for the operator in the report.

To disable the user login, I set "Check User Privileges" = FALSE, "Require User Login" = FALSE, "Automatically Login Windows System User" = TRUE, "Login On Start" = FALSE.

 

I am using the default Batch Model. I have a variable with the string value of the name I want to populate to the operator field in the results log. I'm using the default ATML result processor.

 

I've tried setting various variables, but it is always empty in the results. Can someone point me in the right direction?

 

Thanks!

0 Kudos
Message 1 of 3
(2,523 Views)
Solution
Accepted by topic author James1234

Figured it out...

 

"Automatically Login Windows System User" should be FALSE. Then I can set the operator through:

RunState.Root.Parameters.ModelData.StationInfo.LoginName = "my_new_name"

Message 2 of 3
(2,507 Views)

I'm struggling with the same issue.

 

If I use a statement in the main sequence file with the mentioned action :

RunState.Root.Parameters.ModelData.StationInfo.LoginName = "my_new_name"

 

I will get an error that the property name is unknown.

 

What I'm doing wrong ?

 

0 Kudos
Message 3 of 3
(1,605 Views)