10-02-2018 08:09 AM
Hello Community,
I am using TestStand 2016 32-bit & Labview 2016 32-bit
I am working with the TestStand Simple UI in Labview.
I want the user who is logging in to use the same sequence file that the previous user who logged out was using and not have to reload the sequence file again. Before I only had the login/logout button set to login, so the sequence file never closed. However, to prevent a user from using another users name I need the GUI to logout.
Is there a way to not close the sequence file when a user logs out?
Thank you
Solved! Go to Solution.
10-02-2018 09:14 AM
Does it maybe have to do with altering the FrontEndCallbacks sequence file?
10-02-2018 01:53 PM
Logging out in TestStand always closes all sequences, even in the Sequence Editor.
I would suggest that when a user opens a sequence file, that path is saved to a file somewhere. Then, when you see a new login, you can get that path and use the attached code to open it in your UI.
10-03-2018 10:41 AM - edited 10-03-2018 10:45 AM
I am having an issue with tracking the user name. When I test to see if the LoginName is empty or not, it is not accurate with current results. This is because the login/logout dialog pops up after "DoClick", but the LoginName code executes before a user can login. So when I click to Login, it is showing the previous value which could be empty or another user and not the current user.
What is the best way to track the user login?
The reason for tracking the user, because I am trying to only reload the sequence file if a user logged in. I don't want to open the sequence file if the user selected cancel or logged out.
10-03-2018 02:45 PM
Initially, when starting my UI, I register an event linked to "User Changed". When that event occurs, I generate a user event. Then, in my main loop, I handle the User Changes event. That's where you can check if there's a user logged in and then do whatever else needs to happen when the user changes.
10-10-2018 04:50 PM
I gave what you suggested a try and I am almost to the finish line.
I ran into one additional issue with "Event Reg Refnum" that I could use your help on please.
How do you handle multiple events and get them both to show up in the event structure?
See picture attachments.
Thank you
10-10-2018 07:03 PM
I believe the issue with wiring Reg Events to Event Reg Refnum is that the type def cluster has a "different" Event Reg Refnum". You should create a new one from the Reg Events and put that in your type def cluster; this new one will have both of your events for quit application and user change. That should also solve your issue with how you don't see the user change event in your event structure.