CWDSAccessModes Enumeration

NI DataSocket

CWDSAccessModes Enumeration

CWDSAccessModes are the constants for the CWDataSocket.AccessMode property. These constants dictate how a CWDataSocket control transfers data. If you select an automatically updating access mode, CWDataSocket retrieves or writes data every time new data is available. If you connect with the cwdsRead or cwdsWrite access mode, use the Update method to retrieve or write new data.

You can use the following constants with this data type:

  • cwdsRead–Reads once when connected. You can trigger another read by calling the Update method.
  • cwdsReadAutoUpdate–Reads when connected and automatically reads again if the data at the data source is updated.
  • cwdsReadWriteAutoUpdate–Writes the current data once connected. The data is rewritten automatically if any attribute or value is set. Reads when connected and automatically reads again if the data at the data source is updated.
  • cwdsWrite–Writes the current data once connected. You can trigger the write again by calling the Update method.
  • cwdsWriteAutoUpdate–Writes the current data once connected. The data is rewritten automatically if any attribute or value is set.

See Also

CWDataSocket.AccessMode