11-20-2017 08:23 AM
Hello,
is there a command that can be executed in the testplan to save the StationGlobals?
So that all changes are saved permantly and still exist after restarting Teststand.
Thx
Solved! Go to Solution.
11-20-2017 10:42 AM
Engine.CommitGlobalsToDisk ( promptOnSaveConflicts = True)
Saves the current state of the station globals to disk.
Calling this method with an argument of True is equivalent to calling the PropertyObjectFile.WriteFile method on the object the Engine.GlobalsFile property returns.
promptOnSaveConflicts As Boolean
[In] TestStand writes the station globals to disk only if they change after TestStand has loaded or saved them. If another application changes the station globals on disk after TestStand has loaded or saved them, the action TestStand takes depends on the value you pass in this parameter. If you pass True, TestStand gives users the option to overwrite the changes the other application made. If you pass False, TestStand saves the station globals without prompting the user to resolve any conflicts between the changes in memory and the changes on disk.
This parameter has a default value of True.