CLASSPREFIX_ATTR_RECORD_COERCIONS

CVI/LabWindows IVI Class Driver

CLASSPREFIX_ATTR_RECORD_COERCIONS

To form the CLASSPREFIX_ of the attribute name, use the prefix of the class driver with which you are working. For example, if you are working with the IviDmm class driver, use the prefix IVIDMM_ to create the correct attribute name, IVIDMM_ATTR_RECORD_COERCIONS.

Inherent Attribute

Data Type Access Applies to Coercion High Level Functions
ViBoolean R/W N/A None None

Description

Specifies whether the specific driver keeps a list of the value coercions it makes for ViInt32 and ViReal64 attributes. When this attribute is enabled, the class driver maintains a list of each coercion. You can view the coercion information with NI Spy. Alternatively, you may call CLASSPREFIX_GetNextCoercionInfo to extract and delete the oldest coercion record from the list.

The default value is VI_FALSE. You can override this value by specifying a value in MAX or by initializing the IVI session with the CLASSPREFIX_InitWithOptions function.

Note  If ClassPrefix_ATTR_RECORD_COERCIONS is set to true and you are not using NI Spy, the coercion queue is cleared by calling ClassPrefix_GetNextCoercionInfo. If you do not clear the queue, the resulting list build-up appears as a memory leak.