NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

Test Stand Operator Interface C# - Default Login

Hi,

 

I'm using C# Operator Interface available with TestStand 3.5. Lauching the .exe, the default login is the last used. 

I modified the application to fit with specific needs but as soon as i recompile the project and load the application, the default login is no more the last used. It seems to me that the current login is not saved when application ends.

 

How can i keep on saving current user before ending ?

 

 

 

 

 

0 Kudos
Message 1 of 2
(3,403 Views)

Hello H93,

 

The login logout process is implemented in the frontend Callback

(C:\Program Files (x86)\National Instruments\TestStand 2010 SP1\Components\Callbacks\FrontEnd)

 

The last username is store in a stationglobal as shown in the following screenshot:

 

TS_frontend.png

 

You could achieve your goal retrieving the user login and explicitly store it in the Station.TS.LastUserName before closing the TS engine.

 

Normally this is already in the built-in front end callback.

You could also create your own frontend callback and call it in your User interface with the TestStand API. refer to page 10-9 of the TesStand reference manual for more information. the TS API function to use is Engine.CallFrontEndCallbackEx

 

Best regards

Romain DUVAL || RF & Semiconductor Staff System Engineer || CLA || CTA
National Instruments France

0 Kudos
Message 2 of 2
(3,387 Views)