Engine.PersistWatchExpressions
The default return value is False. Applications that support watch expression persistence, such as the sequence editor, should set this property to True.
Specifies whether the engine associates the list of watch expressions with the current workspace, and automatically saves and reloads the watch expression list when the current workspace changes. This property defaults to False for each instance of the engine. Applications that support watch expression persistence, such as the sequence editor, should set this property to True. The persisted watch expression list is read into memory when the option is changed to True.
When the engine unloads a workspace and this setting is True, the engine saves the current watch expression list in an options file with the same name as the workspace and in the same directory as the workspace file. The engine also saves the current watch expression list when either the current workspace or any sequence file in the workspace is saved, or when any sequence file is closed.
When the engine loads a new workspace and this setting is True, the watch expression list previously saved in the options file is automatically loaded. Otherwise, the engine keeps the current watch expression list.
If no current workspace is loaded, the engine persists the watch expression list to a default options file.
TestStand only persists watch expressions that are not associated with a particular execution, that is, when WatchExpression.ExecutionScope is NULL.