Reset Method

NI DataSocket

Reset Method

Syntax

CWData.Reset

Purpose

Clears the Value property and all attributes.

Remarks

If the CWData object is owned by a CWDataSocket and the CWDataSocket is connected to a data target in a write access mode, resetting the CWData object triggers the CWDataSocket.Update method and sets the CWDataSocket.DataUpdated property to True.

Example

'Clear the current value and all attributes held by CWDataSocket1.
CWDataSocket1.Data.Reset