NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

Excepcion ocurred in TSUI.IApplicationMgr

That works almost perfect for what I want to do. Thanks.

My UI also works if I make it an Application, since it restarts in every execution but your method is cleaner.

 

The only thing that I can't manage to change is the following:

I don't want the Login Window and I know how to disable it, the only problem is that one of my VIs requires the "CurrenUser" variable.

"Parameter 'StringValue':
Unknown variable or property name 'StationGlobals.TS.CurrentUser'."

 

I have tried but I can't do it. Is there a way to programatically (over)write this value?

I tried with the Current User Property from the TestStand Engine but It doesn't do what I want to do.

=======
My Channel: https://www.youtube.com/@LV_Lab

0 Kudos
Message 11 of 12
(433 Views)

CurrentUser is an ActiveX reference. In order to create such a reference, you can use the GetUser method of the TestStand Engine. It takes the login name (string) as parameter and returns a user object you can write into the CurrentUser property.

Message 12 of 12
(428 Views)