Skip to content

DriverSession::InvalidateAllAttributes

Invalidates the cached value of all attributes on all repeated capabilities.

virtual void InvalidateAllAttributes();
ViStatus InvalidateAllAttributes(ViSession Vi);

Vi

[in] ViSession handle for the driver session.

This function is used to invalidate the cached value of all attributes. Invalidating a cached attribute forces the driver to communicate with the instrument the next time the attribute is read or written.

The following example demonstrates use of the InvalidateAllAttributes function.

ViStatus _VI_FUNC acme4321_ConfigureArmCount(ViSession Vi, ViConstString RepCapIdentifier, ViInt32 ArmCount)
{
InvalidateAllAttributes(Vi);
// ...
}