NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

New Login while Sequence is running

Hello Norbert,
problem solved, i found what you said.
I justed created the method "Login" with the reference from ApplicationManager and then a new login-mask appears.
This is what i wanted to have.
(If i execute a Logout then TestStand says "You have incomplete executions... ", but i dont need to Logout if i can run a new login.)
Perfect.
Thx to everyone.
0 Kudos
Message 11 of 14
(1,195 Views)
OnlyOne,

the button is disabled and greyed out by TestStand itself because you would run into problems as stated the post before.
To get around this, you have to connect the button with another function from the TestStand API. In order to do that, you have to open the "Simple OI - Configure Application Manager.vi" and change the setting like seen in the screenshot below to CommandKind_Login. Currently, it should be configured to CommandKind_LoginLogout.



But please note that relog antoher user during execution of a sequence can lead to problems in the execution. So it is not recommended.

hope this helps,
Norbert

Message Edited by Norbert B on 09-21-2007 06:47 AM

Norbert
----------------------------------------------------------------------------------------------------
CEO: What exactly is stopping us from doing this?
Expert: Geometry
Marketing Manager: Just ignore it.
Message 12 of 14
(1,199 Views)
Thx for the detailled help.
One more thing: Is there a flag somewhere in TestStand that indicates, that the user-login has changed?
I found "StationGlobals.TS.LastUserName" and "StationGlobals.TS.CurrentUser.LoginName" but they are always equal?

I mean, how do i know that someone pressed the Login-Button and the user has changed?
0 Kudos
Message 13 of 14
(1,185 Views)
OnlyOne,

there is no function like this in TS itself. But you can implement this quite easily in the UI on your own.
Tip: Shift register for LastUser.

hope this helps,
Norbert
Norbert
----------------------------------------------------------------------------------------------------
CEO: What exactly is stopping us from doing this?
Expert: Geometry
Marketing Manager: Just ignore it.
0 Kudos
Message 14 of 14
(1,182 Views)