08-30-2018 11:31 AM
Hello Community,
I am using TestStand 2016 32-bit & Labview 2016 32-bit
Now when a user logs into the TestStand Simple UI I can see the users name show up in the Label Control as "User: Bob". Since this is a TestStand Label Control being used in Labview, the type is a Variant. I tried using a Property Node to read the value in the Label, but I can not. I tried Variant to Data and Variant to Flatten String. Maybe I am not going about it correctly.
Is there a way to get convert "User: Bob" into a String? or is there a way I can test that a user is logged in or logged out?
Thank you
Solved! Go to Solution.
09-24-2018 11:39 AM
How to convert a TestStand Label Control to a String in Labview?
I am trying to get the logged in User Name from the TestStand GUI into a Labview String.
09-26-2018 04:17 PM
In my TestStand UI, I have a User Changes Event. From there, it's Application Manager -> GetEngine then IEngine.CurrentUser.LoginName
You may also want to check for error code 97, which would mean that a user isn't logged in.
07-17-2024 04:41 AM
To retrieve execution information in the form of a string, I use a "Label" indicator, then I create a local variable connected to the Caption property.