CommitGlobalsToDisk Method

TestStand 2019 Help

Edition Date: May 2019

Part Number: 370052AA-01

»View Product Info
Download Help (Windows Only)

Syntax

Engine.CommitGlobalsToDisk ( promptOnSaveConflicts = True)

Purpose

Saves the current state of the station globals to disk.

Remarks

Calling this method with an argument of True is equivalent to calling the PropertyObjectFile.WriteFile method on the object the Engine.GlobalsFile property returns.

Parameters

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.


See Also

Engine.Globals

Engine.GlobalsFile

PropertyObjectFile.WriteFile

WAS THIS ARTICLE HELPFUL?

Not Helpful