Value Property

Measurement Studio User Interface

Value Property

Syntax

CWData.Value

Data Type

Variant

Purpose

Specifies the value of a CWData object.

Remarks

If the CWData object is owned by a CWDataSocket and the CWDataSocket is connected to a data target in a write access mode, setting this property triggers the CWDataSocket.Update method. If you set this property (while connected in a write mode), the CWDataSocket.DataUpdated property is set to True.

If the CWData is owned by a CWDataSocket, reading this property sets the CWDataSocket.DataUpdated property to False.

Example

dim CWData1 as new CWData
dim v as variant
dim vector(100) as single
dim matrix(100,100) as long

'CWData can hold many types of data
CWData1.Value = 1
CWData1.Value = "A String"
CWData1.Value = vector
CWData1.Value = matrix

'CWData can be assigned to a varaint 
v = CWData1.Value

'Since value is the default property you can often
'Omit the "Value" keyword
CWData1 = 10
v = CWData1