NI TestStand

Showing results for 
Search instead for 
Did you mean: 

User Interface : logging out while the test runs without stopping it

Go to solution



On a bench a test sequence might take more than 10 hours to complete.

So there is a great chance that the user logged at the beginning of the test won't be the one present on the station when the test finishes.


Is it possible to log out from TS without stopping the execution ? and re-log after to see the results ?


In the report the operator name written should be the one logged when the tests finishes.

If none is logged when the test finishes, operator name would be the latest one logged.


View Cyril Gambini's profile on LinkedIn
0 Kudos
Message 1 of 4
Accepted by topic author CyGa

Ive think I got your idea or close to it


I attached a sequence that simulates this, LoginTEst.

In my case I put a step that logs out... does some steps.... and then logs in.
Inside you will find instruction to run the seq

But there are other ways of doing
on a parallel sequence authenticate after cetain amount of time.

I tried this way and it worked..

- If you log windows out... windows closes all executions
- If you logout from TS and dont log in ll loose TS development privileges like editing sequences, running them, etc...but you can regain access easy by logging back manually and regain them, like when you try to stop a sequence in which you are not log in the system.


Try running sequence and take a look at the report, you will find useful data that I print
Also take note of the Report callback in which I update last user at the end, in case this is what you want.

Attached a report that I generated when running...

LabVIEW Enthusiast, CLA (2024), CTA (2022)
0 Kudos
Message 2 of 4

Hi Luis,


Thank you for your help !

I'll take a look at the sequence, but it looks promising!


Only caveat I can think of today is that some part of the process model client will be related to current user rights (for technicians for example).

When logged out I wonder which user group is returned, and therefore which steps are going to be executed...

I guess I'll have to try this out ! 🙂


Thank you very much!


View Cyril Gambini's profile on LinkedIn
0 Kudos
Message 3 of 4

User field on UI looks empty ,


it looks like it continues running as Operator Privileges, by default as below.


So it keeps executing...


When logged out, one thing I noticed is that user object becomes empty,

as you can see on the sequence some steps check if 

RunState.Engine.CurrentUser become empty,


Sequence step check this with

            RunState.Engine.CurrentUser != Nothing


cause once logged out it clears the object and steps using it error out.


but like you mention...

if process model is user rights related....

its going to be the final test for it. 


LabVIEW Enthusiast, CLA (2024), CTA (2022)
0 Kudos
Message 4 of 4