Company Events Academic NI Developer Zone Support Solutions Products & Services Contact NI MyNI

PersistWatchExpressions Property

NI TestStand™ 4.0 Help
April 2007

NI Part Number:
370052F-01

»View NI TestStand Product Info

Syntax

Engine.PersistWatchExpressions

Data Type

Boolean

The default return value is False. Applications that support watch expression persistence, such as the sequence editor, should set this property to True.

Purpose

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.

Remarks

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.


See Also

PersistBreakpoints

WatchExpression.ExecutionScope


Resources


 

Your Feedback! poor Poor  |  Excellent excellent   Yes No
 Document Quality? 
 Answered Your Question? 
Add Comments 1 2 3 4 5 submit