From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

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

Solved!
Go to solution

Hi,

 

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.

CLA, CTA, LV Champion
View Cyril Gambini's profile on LinkedIn
This post is made under CC BY 4.0 DEED licensing
0 Kudos
Message 1 of 4
(866 Views)
Solution
Accepted by 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 readme.md instruction to run the seq

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

I tried this way and it worked..

Caveats.
- If you log windows out... windows closes all executions
- If you logout from TS and dont log in back...you 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...

CLA, CTA
0 Kudos
Message 2 of 4
(826 Views)

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!

CLA, CTA, LV Champion
View Cyril Gambini's profile on LinkedIn
This post is made under CC BY 4.0 DEED licensing
0 Kudos
Message 3 of 4
(819 Views)

User field on UI looks empty ,

 

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

LFBaute_0-1674484044621.png

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. 

 

CLA, CTA
0 Kudos
Message 4 of 4
(770 Views)