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.
PropertyObject globals = engine.Globals;
string sLastUser = globals.GetValString("TS.LastUserName", 0);
Console.WriteLine($"the last user is: {sLastUser}");
It gets a property object containing all global variable information, then you can do some things, such as reading the value of a global variable
But I don't know how to get all the variables in the object