-
Notifications
You must be signed in to change notification settings - Fork 3
Tag.Values
- BoolTagValueReader
- BoolTagValueWriter
- DateTimeTagValueReader
- DateTimeTagValueWriter
- DoubleTagAggregates
- DoubleTagValueReader
- DoubleTagValueWriter
- Int32TagAggregates
- Int32TagValueReader
- Int32TagValueWriter
- NonNumericTagValueReader`1
- NumericTagAggregates
- NumericTagValueReader`2
- SerializedTagWithAggregates
- StringTagValueReader
- StringTagValueWriter
- TagAggregates
- TagValueReader
- TagValueReaderGeneric`2
- TagValueWriter
- TagValueWriterGeneric`1
- UInt64TagAggregates
- UInt64TagValueReader
- UInt64TagValueWriter
NationalInstruments.SystemLink.Clients.Tag.Values
Wraps the ability to read a Bool tag's current and aggregate values using an ITagReader.
Initializes an instance. The tag must be a Bool tag.
| Name | Type | Description |
|---|---|---|
| reader | NationalInstruments.SystemLink.Clients.Tag.ITagReader | The ITagReader to use when reading values. |
| tag | NationalInstruments.SystemLink.Clients.Tag.TagData | The tag whose value will be read. |
| Name | Description |
|---|---|
| System.ArgumentException | if tag is not a bool tag with a valid path. |
| System.ArgumentNullException | if reader or tag is null. |
Initializes an instance. Tag reads will fail if path does
not identify an existing Bool tag.
| Name | Type | Description |
|---|---|---|
| reader | NationalInstruments.SystemLink.Clients.Tag.ITagReader | The ITagReader to use when reading values. |
| path | System.String | The path of the tag whose value will be read. |
| Name | Description |
|---|---|
| System.ArgumentException | if path is empty or invalid. |
| System.ArgumentNullException | if reader or path is null. |
NationalInstruments.SystemLink.Clients.Tag.Values
Wraps the ability to write a Bool tag's value using an ITagWriter.
Initializes an instance. The tag must be a Bool tag.
| Name | Type | Description |
|---|---|---|
| writer | NationalInstruments.SystemLink.Clients.Tag.ITagWriter | The ITagWriter to use when writing values. |
| tag | NationalInstruments.SystemLink.Clients.Tag.TagData | The tag to associate with the value. |
| Name | Description |
|---|---|
| System.ArgumentException | if tag is not a bool tag with a valid path. |
| System.ArgumentNullException | if writer or tag is null. |
Initializes an instance. Tag writes will fail if path
does not identify an existing Bool tag.
| Name | Type | Description |
|---|---|---|
| writer | NationalInstruments.SystemLink.Clients.Tag.ITagWriter | The ITagWriter to use when writing values. |
| path | System.String | The path of the tag to associate with the value. |
| Name | Description |
|---|---|
| System.ArgumentException | if path is empty or invalid. |
| System.ArgumentNullException | if writer or path is null. |
NationalInstruments.SystemLink.Clients.Tag.Values
Wraps the ability to read a DateTime tag's current and aggregate values using an ITagReader.
Initializes an instance. The tag must be a DateTime tag.
| Name | Type | Description |
|---|---|---|
| reader | NationalInstruments.SystemLink.Clients.Tag.ITagReader | The ITagReader to use when reading values. |
| tag | NationalInstruments.SystemLink.Clients.Tag.TagData | The tag whose value will be read. |
| Name | Description |
|---|---|
| System.ArgumentException | if tag is not a DateTime tag with a valid path. |
| System.ArgumentNullException | if reader or tag is null. |
Initializes an instance. Tag reads will fail if path does
not identify an existing DateTime tag.
| Name | Type | Description |
|---|---|---|
| reader | NationalInstruments.SystemLink.Clients.Tag.ITagReader | The ITagReader to use when reading values. |
| path | System.String | The path of the tag whose value will be read. |
| Name | Description |
|---|---|
| System.ArgumentException | if path is empty or invalid. |
| System.ArgumentNullException | if reader or path is null. |
NationalInstruments.SystemLink.Clients.Tag.Values
Wraps the ability to write a DateTime tag's value using an ITagWriter.
Initializes an instance. The tag must be a DateTime tag.
| Name | Type | Description |
|---|---|---|
| writer | NationalInstruments.SystemLink.Clients.Tag.ITagWriter | The ITagWriter to use when writing values. |
| tag | NationalInstruments.SystemLink.Clients.Tag.TagData | The tag to associate with the value. |
| Name | Description |
|---|---|
| System.ArgumentException | if tag is not a DateTime tag with a valid path. |
| System.ArgumentNullException | if writer or tag is null. |
Initializes an instance. Tag writes will fail if path
does not identify an existing DateTime tag.
| Name | Type | Description |
|---|---|---|
| writer | NationalInstruments.SystemLink.Clients.Tag.ITagWriter | The ITagWriter to use when writing values. |
| path | System.String | The path of the tag to associate with the value. |
| Name | Description |
|---|---|
| System.ArgumentException | if path is empty or invalid. |
| System.ArgumentNullException | if writer or path is null. |
NationalInstruments.SystemLink.Clients.Tag.Values
Represents the aggregate values for Double tags that have CollectAggregates set to true.
Initializes an instance.
| Name | Type | Description |
|---|---|---|
| count | System.Int32 | The number of times the tag's value has been written. |
| min | System.Double | The smallest value written to the tag. |
| max | System.Double | The largest value written to the tag. |
| mean | System.Double | The mean of all values written to the tag. |
Gets the largest value written to the tag.
Gets the smallest value written to the tag.
NationalInstruments.SystemLink.Clients.Tag.Values
Wraps the ability to read a Double tag's current and aggregate values using an ITagReader.
Initializes an instance. The tag must be a Double tag.
| Name | Type | Description |
|---|---|---|
| reader | NationalInstruments.SystemLink.Clients.Tag.ITagReader | The ITagReader to use when reading values. |
| tag | NationalInstruments.SystemLink.Clients.Tag.TagData | The tag whose value will be read. |
| Name | Description |
|---|---|
| System.ArgumentException | if tag is not a double tag with a valid path. |
| System.ArgumentNullException | if reader or tag is null. |
Initializes an instance. Tag reads will fail if path does
not identify an existing Double tag.
| Name | Type | Description |
|---|---|---|
| reader | NationalInstruments.SystemLink.Clients.Tag.ITagReader | The ITagReader to use when reading values. |
| path | System.String | The path of the tag whose value will be read. |
| Name | Description |
|---|---|
| System.ArgumentException | if path is empty or invalid. |
| System.ArgumentNullException | if reader or path is null. |
NationalInstruments.SystemLink.Clients.Tag.Values
Wraps the ability to write a Double tag's value using an ITagWriter.
Initializes an instance. The tag must be a Double tag.
| Name | Type | Description |
|---|---|---|
| writer | NationalInstruments.SystemLink.Clients.Tag.ITagWriter | The ITagWriter to use when writing values. |
| tag | NationalInstruments.SystemLink.Clients.Tag.TagData | The tag to associate with the value. |
| Name | Description |
|---|---|
| System.ArgumentException | if tag is not a double tag with a valid path. |
| System.ArgumentNullException | if writer or tag is null. |
Initializes an instance. Tag writes will fail if path
does not identify an existing Double tag.
| Name | Type | Description |
|---|---|---|
| writer | NationalInstruments.SystemLink.Clients.Tag.ITagWriter | The ITagWriter to use when writing values. |
| path | System.String | The path of the tag to associate with the value. |
| Name | Description |
|---|---|
| System.ArgumentException | if path is empty or invalid. |
| System.ArgumentNullException | if writer or path is null. |
NationalInstruments.SystemLink.Clients.Tag.Values
Represents the aggregate values for Int32 tags that have CollectAggregates set to true.
Initializes an instance.
| Name | Type | Description |
|---|---|---|
| count | System.Int32 | The number of times the tag's value has been written. |
| min | System.Int32 | The smallest value written to the tag. |
| max | System.Int32 | The largest value written to the tag. |
| mean | System.Double | The mean of all values written to the tag. |
Gets the largest value written to the tag.
Gets the smallest value written to the tag.
NationalInstruments.SystemLink.Clients.Tag.Values
Wraps the ability to read a Int32 tag's current and aggregate values using an ITagReader.
Initializes an instance. The tag must be a Int32 tag.
| Name | Type | Description |
|---|---|---|
| reader | NationalInstruments.SystemLink.Clients.Tag.ITagReader | The ITagReader to use when reading values. |
| tag | NationalInstruments.SystemLink.Clients.Tag.TagData | The tag whose value will be read. |
| Name | Description |
|---|---|
| System.ArgumentException | if tag is not an Int32 tag with a valid path. |
| System.ArgumentNullException | if reader or tag is null. |
Initializes an instance. Tag reads will fail if path does
not identify an existing Int32 tag.
| Name | Type | Description |
|---|---|---|
| reader | NationalInstruments.SystemLink.Clients.Tag.ITagReader | The ITagReader to use when reading values. |
| path | System.String | The path of the tag whose value will be read. |
| Name | Description |
|---|---|
| System.ArgumentException | if path is empty or invalid. |
| System.ArgumentNullException | if reader or path is null. |
NationalInstruments.SystemLink.Clients.Tag.Values
Wraps the ability to write an Int32 tag's value using an ITagWriter.
Initializes an instance. The tag must be an Int32 tag.
| Name | Type | Description |
|---|---|---|
| writer | NationalInstruments.SystemLink.Clients.Tag.ITagWriter | The ITagWriter to use when writing values. |
| tag | NationalInstruments.SystemLink.Clients.Tag.TagData | The tag to associate with the value. |
| Name | Description |
|---|---|
| System.ArgumentException | if tag is not an Int32 tag with a valid path. |
| System.ArgumentNullException | if writer or tag is null. |
Initializes an instance. Tag writes will fail if path
does not identify an existing Int32 tag.
| Name | Type | Description |
|---|---|---|
| writer | NationalInstruments.SystemLink.Clients.Tag.ITagWriter | The ITagWriter to use when writing values. |
| path | System.String | The path of the tag to associate with the value. |
| Name | Description |
|---|---|
| System.ArgumentException | if path is empty or invalid. |
| System.ArgumentNullException | if writer or path is null. |
NationalInstruments.SystemLink.Clients.Tag.Core
Represents the ability to read the value of a generic non-numeric tag using an ITagReader. This is an abstract class. Instantiate a value reader specific to the data type of the tag to read, such as BoolTagValueReader.
Initializes an instance.
| Name | Type | Description |
|---|---|---|
| reader | NationalInstruments.SystemLink.Clients.Tag.ITagReader | The ITagReader to use when reading values. |
| tag | NationalInstruments.SystemLink.Clients.Tag.TagData | The tag whose values will be read. |
| requiredType | NationalInstruments.SystemLink.Clients.Tag.DataType | The required data type of tag. |
| Name | Description |
|---|---|
| System.ArgumentException | if tag is not a tag of the required type with a valid path. |
| System.ArgumentNullException | if reader or tag is null. |
| System.ArgumentOutOfRangeException | if requiredType is Unknown. |
Initializes an instance.
| Name | Type | Description |
|---|---|---|
| reader | NationalInstruments.SystemLink.Clients.Tag.ITagReader | The ITagReader to use when reading values. |
| path | System.String | The path of the tag whose values will be read. |
| dataType | NationalInstruments.SystemLink.Clients.Tag.DataType | The expected data type of the tag referenced by path. |
| Name | Description |
|---|---|
| System.ArgumentException | if path is not a valid tag path. |
| System.ArgumentNullException | if reader or path is null. |
| System.ArgumentOutOfRangeException | if dataType is Unknown. |
Inherit from parent.
This method has no parameters.
Parses a current or aggregate value of a tag after reading.
True if the value was parsed successfully, false if invalid.
| Name | Type | Description |
|---|---|---|
| serializedValue | System.String | The value serialized as a string. |
| value | `0@ | On success, the parsed value. |
NationalInstruments.SystemLink.Clients.Tag.Values
Represents the aggregate values for a numeric tag type that has CollectAggregates set to true.
Initializes an instance.
| Name | Type | Description |
|---|---|---|
| count | System.Int32 | The number of times the tag's value has been written. |
| mean | System.Double | The mean of all values written to the tag. |
Gets the mean of all values written to the tag.
NationalInstruments.SystemLink.Clients.Tag.Core
Represents the ability to read the value of a generic numeric tag using an ITagReader. This is an abstract class. Instantiate a value reader specific to the data type of the tag to read, such as DoubleTagValueReader.
Initializes an instance.
| Name | Type | Description |
|---|---|---|
| reader | NationalInstruments.SystemLink.Clients.Tag.ITagReader | The ITagReader to use when reading values. |
| tag | NationalInstruments.SystemLink.Clients.Tag.TagData | The tag whose values will be read. |
| requiredType | NationalInstruments.SystemLink.Clients.Tag.DataType | The required data type of tag. |
| Name | Description |
|---|---|
| System.ArgumentException | if tag is not a tag of the required type with a valid path. |
| System.ArgumentNullException | if reader or tag is null. |
| System.ArgumentOutOfRangeException | if requiredType is Unknown. |
Initializes an instance.
| Name | Type | Description |
|---|---|---|
| reader | NationalInstruments.SystemLink.Clients.Tag.ITagReader | The ITagReader to use when reading values. |
| path | System.String | The path of the tag whose values will be read. |
| dataType | NationalInstruments.SystemLink.Clients.Tag.DataType | The expected data type of the tag referenced by path. |
| Name | Description |
|---|---|
| System.ArgumentException | if path is not a valid tag path. |
| System.ArgumentNullException | if reader or path is null. |
| System.ArgumentOutOfRangeException | if dataType is Unknown. |
Stores the parsed aggregate values for returning from the reader.
An instance containing the aggregate values.
| Name | Type | Description |
|---|---|---|
| count | System.Int32 | The number of times the tag's value has been written. |
| min | `0 | The smallest value written to the tag. |
| max | `0 | The largest value written to the tag. |
| mean | System.Double | The mean of all values written to the tag. |
Inherit from parent.
This method has no parameters.
Parses a current or aggregate value of a tag after reading.
True if the value was parsed successfully, false if invalid.
| Name | Type | Description |
|---|---|---|
| serializedValue | System.String | The value serialized as a string. |
| value | `0@ | On success, the parsed value. |
NationalInstruments.SystemLink.Clients.Tag.Core
Represents a generic tag value serialized to a string with optional aggregate values also serialized to a string. Clients typically do not interact with this instances of this class directly. Use a TagValueReader instead.
Initializes an instance with value only.
| Name | Type | Description |
|---|---|---|
| path | System.String | The path of the tag associated with the value. |
| type | NationalInstruments.SystemLink.Clients.Tag.DataType | The type of the value serialized as a string. |
| value | System.String | The value serialized as a string. |
Initializes an instance with value and timestamp.
| Name | Type | Description |
|---|---|---|
| path | System.String | The path of the tag associated with the value. |
| type | NationalInstruments.SystemLink.Clients.Tag.DataType | The type of the value serialized as a string. |
| value | System.String | The value serialized as a string. |
| timestamp | System.DateTimeOffset | The timestamp associated with the value. |
Initializes an instance with value and aggregates.
| Name | Type | Description |
|---|---|---|
| path | System.String | The path of the tag associated with the value. |
| type | NationalInstruments.SystemLink.Clients.Tag.DataType | The type of the value serialized as a string. |
| value | System.String | The value serialized as a string. |
| count | System.Nullable{System.Int32} | The number of times the tag has been written, or null if |
| the tag is not collecting aggregates. | ||
| min | System.String | The minimum value of the tag serialized to a string, or null if |
| the tag is not collecting aggregates or the data type of the tag does not track a | ||
| minimum value. | ||
| max | System.String | The maximum value of the tag serialized to a string, or null if |
| the tag is not collecting aggregates or the data type of the tag does not track a | ||
| maximum value. | ||
| mean | System.Nullable{System.Double} | The mean value of the tag, or null if the tag is not |
| collecting aggregates or the data type of the tag does not track a | ||
| mean value. |
Initializes an instance with value, timestamp, and aggregates.
| Name | Type | Description |
|---|---|---|
| path | System.String | The path of the tag associated with the value. |
| type | NationalInstruments.SystemLink.Clients.Tag.DataType | The type of the value serialized as a string. |
| value | System.String | The value serialized as a string. |
| timestamp | System.DateTimeOffset | The timestamp associated with the value. |
| count | System.Nullable{System.Int32} | The number of times the tag has been written, or null if |
| the tag is not collecting aggregates. | ||
| min | System.String | The minimum value of the tag serialized to a string, or null if |
| the tag is not collecting aggregates or the data type of the tag does not track a | ||
| minimum value. | ||
| max | System.String | The maximum value of the tag serialized to a string, or null if |
| the tag is not collecting aggregates or the data type of the tag does not track a | ||
| maximum value. | ||
| mean | System.Nullable{System.Double} | The average value of the tag, or null if the tag is not |
| collecting aggregates or the data type of the tag does not track a | ||
| mean value. |
Gets the number of times the tag has been written, or null if the tag is not collecting aggregates.
Gets the type of the value that was serialized as a string.
Gets the maximum value of the tag serialized to a string, or null if the tag is not collecting aggregates or the data type of the tag does not track a maximum value.
Gets the mean value of the tag, or null if the tag is not collecting aggregates or the data type of the tag does not track a mean value.
Gets the minimum value of the tag serialized to a string, or null if the tag is not collecting aggregates or the data type of the tag does not track a minimum value.
Gets the path of the tag associated with the value.
Gets the timestamp associated with the value, if available.
Gets the value of the tag serialized as a string.
NationalInstruments.SystemLink.Clients.Tag.Values
Wraps the ability to read a String tag's current and aggregate values using an ITagReader.
Initializes an instance. The tag must be a String tag.
| Name | Type | Description |
|---|---|---|
| reader | NationalInstruments.SystemLink.Clients.Tag.ITagReader | The ITagReader to use when reading values. |
| tag | NationalInstruments.SystemLink.Clients.Tag.TagData | The tag whose value will be read. |
| Name | Description |
|---|---|
| System.ArgumentException | if tag is not a string tag with a valid path. |
| System.ArgumentNullException | if reader or tag is null. |
Initializes an instance. Tag reads will fail if path does
not identify an existing String tag.
| Name | Type | Description |
|---|---|---|
| reader | NationalInstruments.SystemLink.Clients.Tag.ITagReader | The ITagReader to use when reading values. |
| path | System.String | The path of the tag whose value will be read. |
| Name | Description |
|---|---|
| System.ArgumentException | if path is empty or invalid. |
| System.ArgumentNullException | if reader or path is null. |
NationalInstruments.SystemLink.Clients.Tag.Values
Wraps the ability to write a String tag's value using an ITagWriter.
Initializes an instance. The tag must be a String tag.
| Name | Type | Description |
|---|---|---|
| writer | NationalInstruments.SystemLink.Clients.Tag.ITagWriter | The ITagWriter to use when writing values. |
| tag | NationalInstruments.SystemLink.Clients.Tag.TagData | The tag to associate with the value. |
| Name | Description |
|---|---|
| System.ArgumentException | if tag is not a string tag with a valid path. |
| System.ArgumentNullException | if writer or tag is null. |
Initializes an instance. Tag writes will fail if path
does not identify an existing String tag.
| Name | Type | Description |
|---|---|---|
| writer | NationalInstruments.SystemLink.Clients.Tag.ITagWriter | The ITagWriter to use when writing values. |
| path | System.String | The path of the tag to associate with the value. |
| Name | Description |
|---|---|
| System.ArgumentException | if path is empty or invalid. |
| System.ArgumentNullException | if writer or path is null. |
NationalInstruments.SystemLink.Clients.Tag.Values
Represents the aggregate values common to all tags that have CollectAggregates set to true. Some tag data types have additional aggregates.
Initializes an instance.
| Name | Type | Description |
|---|---|---|
| count | System.Int32 | The number of times the tag's value has been written. |
Gets the number of times the tag's value has been written.
NationalInstruments.SystemLink.Clients.Tag.Values
Represents the ability to read a single tag's value using an ITagReader. This is an abstract class. Instantiate a value reader specific to the data type of the tag to read, such as BoolTagValueReader.
Initializes an instance.
| Name | Type | Description |
|---|---|---|
| reader | NationalInstruments.SystemLink.Clients.Tag.ITagReader | The ITagReader to use when reading values. |
| tag | NationalInstruments.SystemLink.Clients.Tag.TagData | The tag whose values will be read. |
| requiredType | NationalInstruments.SystemLink.Clients.Tag.DataType | The required data type of tag. |
| Name | Description |
|---|---|
| System.ArgumentException | if tag is not a tag of the required type with a valid path. |
| System.ArgumentNullException | if reader or tag is null. |
| System.ArgumentOutOfRangeException | if requiredType is Unknown. |
Initializes an instance.
| Name | Type | Description |
|---|---|---|
| reader | NationalInstruments.SystemLink.Clients.Tag.ITagReader | The ITagReader to use when reading values. |
| path | System.String | The path of the tag whose values will be read. |
| dataType | NationalInstruments.SystemLink.Clients.Tag.DataType | The expected data type of the tag referenced by path. |
| Name | Description |
|---|---|
| System.ArgumentException | if path is not a valid tag path. |
| System.ArgumentNullException | if reader or path is null. |
| System.ArgumentOutOfRangeException | if dataType is Unknown. |
Gets the data type of the tag associated with the value.
Gets the path of the tag associated with the value.
Gets the underlying ITagReader for reading values.
NationalInstruments.SystemLink.Clients.Tag.Core
Represents the ability to read the value of a generic type of tag using a ITagReader. This is an abstract class. Instantiate a value reader specific to the data type of the tag to write, such as BoolTagValueReader.
Initializes an instance.
| Name | Type | Description |
|---|---|---|
| reader | NationalInstruments.SystemLink.Clients.Tag.ITagReader | The ITagReader to use when reading values. |
| tag | NationalInstruments.SystemLink.Clients.Tag.TagData | The tag whose values will be read. |
| requiredType | NationalInstruments.SystemLink.Clients.Tag.DataType | The required data type of tag. |
| Name | Description |
|---|---|
| System.ArgumentException | if tag is not a tag of the required type with a valid path. |
| System.ArgumentNullException | if reader or tag is null. |
| System.ArgumentOutOfRangeException | if requiredType is Unknown. |
Initializes an instance.
| Name | Type | Description |
|---|---|---|
| reader | NationalInstruments.SystemLink.Clients.Tag.ITagReader | The ITagReader to use when reading values. |
| path | System.String | The path of the tag whose values will be read. |
| dataType | NationalInstruments.SystemLink.Clients.Tag.DataType | The expected data type of the tag referenced by path. |
| Name | Description |
|---|---|
| System.ArgumentException | if path is not a valid tag path. |
| System.ArgumentNullException | if reader or path is null. |
| System.ArgumentOutOfRangeException | if dataType is Unknown. |
Deserializes the current and aggregate values of a tag after reading.
The deserialized value of the tag.
| Name | Type | Description |
|---|---|---|
| serializedValue | NationalInstruments.SystemLink.Clients.Tag.Core.SerializedTagWithAggregates | The serialized values. |
| aggregates | `1@ | Set to the deserialized aggregate values. |
| Name | Description |
|---|---|
| NationalInstruments.SystemLink.Clients.Core.ApiException | if serializedValue contains invalid data. |
Reads the current value of the tag.
The value of the tag, or null if the tag exists but does not have a value.
This method has no parameters.
| Name | Description |
|---|---|
| System.ObjectDisposedException | if the underlying reader has been disposed. |
| NationalInstruments.SystemLink.Clients.Core.ApiException | if the API call fails. |
Reads the current value of the tag.
The value of the tag, or null if the tag exists but does not have a value.
| Name | Type | Description |
|---|---|---|
| timestamp | System.DateTimeOffset@ | On success, set to the timestamp associated with the value, |
| or MinValue if the tag exists but does not have a value. |
| Name | Description |
|---|---|
| System.ObjectDisposedException | if the underlying reader has been disposed. |
| NationalInstruments.SystemLink.Clients.Core.ApiException | if the API call fails. |
Reads the current and aggregate values of the tag.
The value of the tag, or null if the tag exists but does not have a value.
| Name | Type | Description |
|---|---|---|
| aggregates | `1@ | On success, set to the tag's aggregate values, or null |
| if the tag exists but does not have a value. |
| Name | Description |
|---|---|
| System.ObjectDisposedException | if the underlying reader has been disposed. |
| NationalInstruments.SystemLink.Clients.Core.ApiException | if the API call fails. |
Reads the current and aggregate values of the tag.
The value of the tag, or null if the tag exists but does not have a value.
| Name | Type | Description |
|---|---|---|
| timestamp | System.DateTimeOffset@ | On success, set to the timestamp associated with the value, |
| or MinValue if the tag exists but does not have a value. | ||
| aggregates | `1@ | On success, set to the tag's aggregate values, or null |
| if the tag exists but does not have a value. |
| Name | Description |
|---|---|
| System.ObjectDisposedException | if the underlying reader has been disposed. |
| NationalInstruments.SystemLink.Clients.Core.ApiException | if the API call fails. |
NationalInstruments.SystemLink.Clients.Tag.Values
Represents the ability to write a single tag's value using an ITagWriter. This is an abstract class. Instantiate a value writer specific to the data type of the tag to write, such as BoolTagValueWriter.
Initializes an instance.
| Name | Type | Description |
|---|---|---|
| writer | NationalInstruments.SystemLink.Clients.Tag.ITagWriter | The ITagWriter to use when writing values. |
| tag | NationalInstruments.SystemLink.Clients.Tag.TagData | The tag to associate with the written values. |
| requiredType | NationalInstruments.SystemLink.Clients.Tag.DataType | The required data type of tag. |
| Name | Description |
|---|---|
| System.ArgumentException | if tag is not a tag of the required type with a valid path. |
| System.ArgumentNullException | if writer or tag is null. |
| System.ArgumentOutOfRangeException | if requiredType is Unknown. |
Initializes an instance.
| Name | Type | Description |
|---|---|---|
| writer | NationalInstruments.SystemLink.Clients.Tag.ITagWriter | The ITagWriter to use when writing values. |
| path | System.String | The tag path to associate with the written values. |
| dataType | NationalInstruments.SystemLink.Clients.Tag.DataType | The expected data type of the tag referenced by path. |
| Name | Description |
|---|---|
| System.ArgumentException | if path is not a valid tag path. |
| System.ArgumentNullException | if writer or path is null. |
| System.ArgumentOutOfRangeException | if dataType is Unknown. |
Gets the data type of the tag associated with the value.
Gets the path of the tag associated with the value.
Writes a value for the tag using an automatic timestamp.
| Name | Type | Description |
|---|---|---|
| serializedValue | System.String | The tag value to write, serialized as a string. |
| Name | Description |
|---|---|
| System.ArgumentNullException | if serializedValue is null. |
| System.ObjectDisposedException | if the underlying writer has been disposed. |
| NationalInstruments.SystemLink.Clients.Core.ApiException | if the API call fails. |
Writes a value for the tag with a custom timestamp. Clients should typically use automatic timestamps instead. This overload enables submitting measurements or forwarding values that already have timestamps.
| Name | Type | Description |
|---|---|---|
| serializedValue | System.String | The tag value to write, serialized as a string. |
| timestamp | System.DateTimeOffset | The date and time associated with the value. |
| Name | Description |
|---|---|
| System.ArgumentNullException | if serializedValue is null. |
| System.ObjectDisposedException | if the underlying writer has been disposed. |
| NationalInstruments.SystemLink.Clients.Core.ApiException | if the API call fails. |
Asynchronously writes a value for the tag using an automatic timestamp.
A task representing the asynchronous operation.
| Name | Type | Description |
|---|---|---|
| serializedValue | System.String | The tag value to write, serialized as a string. |
| Name | Description |
|---|---|
| System.ArgumentNullException | if serializedValue is null. |
| System.ObjectDisposedException | if the underlying writer has been disposed. |
| NationalInstruments.SystemLink.Clients.Core.ApiException | if the API call fails. |
Asynchronously writes a value for the tag with a custom timestamp. Clients should typically use automatic timestamps instead. This overload enables submitting measurements or forwarding values that already have timestamps.
A task representing the asynchronous operation.
| Name | Type | Description |
|---|---|---|
| serializedValue | System.String | The tag value to write, serialized as a string. |
| timestamp | System.DateTimeOffset | The date and time associated with the value. |
| Name | Description |
|---|---|
| System.ArgumentNullException | if serializedValue is null. |
| System.ObjectDisposedException | if the underlying writer has been disposed. |
| NationalInstruments.SystemLink.Clients.Core.ApiException | if the API call fails. |
NationalInstruments.SystemLink.Clients.Tag.Core
Represents the ability to write the value of a generic type of tag using an ITagWriter. This is an abstract class. Instantiate a value writer specific to the data type of the tag to write, such as BoolTagValueWriter.
Initializes an instance.
| Name | Type | Description |
|---|---|---|
| writer | NationalInstruments.SystemLink.Clients.Tag.ITagWriter | The ITagWriter to use when writing values. |
| tag | NationalInstruments.SystemLink.Clients.Tag.TagData | The tag to associate with the written values. |
| requiredType | NationalInstruments.SystemLink.Clients.Tag.DataType | The required data type of tag. |
| Name | Description |
|---|---|
| System.ArgumentException | if tag is not a tag of the required type with a valid path. |
| System.ArgumentNullException | if writer or tag is null. |
| System.ArgumentOutOfRangeException | if requiredType is Unknown. |
Initializes an instance.
| Name | Type | Description |
|---|---|---|
| writer | NationalInstruments.SystemLink.Clients.Tag.ITagWriter | The ITagWriter to use when writing values. |
| path | System.String | The tag path to associate with the written values. |
| dataType | NationalInstruments.SystemLink.Clients.Tag.DataType | The expected data type of the tag referenced by path. |
| Name | Description |
|---|---|
| System.ArgumentException | if path is not a valid tag path. |
| System.ArgumentNullException | if writer or path is null. |
| System.ArgumentOutOfRangeException | if dataType is Unknown. |
Serializes a tag value to a string for writing.
The serialized value.
| Name | Type | Description |
|---|---|---|
| value | `0 | The tag's value to serialize. |
Writes a value for the tag using an automatic timestamp.
| Name | Type | Description |
|---|---|---|
| value | `0 | The tag value to write. |
| Name | Description |
|---|---|
| System.ObjectDisposedException | if the underlying writer has been disposed. |
| NationalInstruments.SystemLink.Clients.Core.ApiException | if the API call fails. |
Writes a value for the tag with a custom timestamp. Clients should typically use automatic timestamps instead. This overload enables submitting measurements or forwarding values that already have timestamps.
| Name | Type | Description |
|---|---|---|
| value | `0 | The tag value to write. |
| timestamp | System.DateTimeOffset | The date and time associated with the value. |
| Name | Description |
|---|---|
| System.ObjectDisposedException | if the underlying writer has been disposed. |
| NationalInstruments.SystemLink.Clients.Core.ApiException | if the API call fails. |
Asynchronously writes a value for the tag using an automatic timestamp.
A task representing the asynchronous operation.
| Name | Type | Description |
|---|---|---|
| value | `0 | The tag value to write. |
| Name | Description |
|---|---|
| System.ObjectDisposedException | if the underlying writer has been disposed. |
| NationalInstruments.SystemLink.Clients.Core.ApiException | if the API call fails. |
Asynchronously writes a value for the tag with a custom timestamp. Clients should typically use automatic timestamps instead. This overload enables submitting measurements or forwarding values that already have timestamps.
A task representing the asynchronous operation.
| Name | Type | Description |
|---|---|---|
| value | `0 | The tag value to write. |
| timestamp | System.DateTimeOffset | The date and time associated with the value. |
| Name | Description |
|---|---|
| System.ObjectDisposedException | if the underlying writer has been disposed. |
| NationalInstruments.SystemLink.Clients.Core.ApiException | if the API call fails. |
NationalInstruments.SystemLink.Clients.Tag.Values
Represents the aggregate values for UInt64 tags that have CollectAggregates set to true.
Initializes an instance.
| Name | Type | Description |
|---|---|---|
| count | System.Int32 | The number of times the tag's value has been written. |
| min | System.UInt64 | The smallest value written to the tag. |
| max | System.UInt64 | The largest value written to the tag. |
| mean | System.Double | The mean of all values written to the tag. |
Gets the largest value written to the tag.
Gets the smallest value written to the tag.
NationalInstruments.SystemLink.Clients.Tag.Values
Wraps the ability to read a UInt64 tag's current and aggregate values using an ITagReader.
Initializes an instance. The tag must be a UInt64 tag.
| Name | Type | Description |
|---|---|---|
| reader | NationalInstruments.SystemLink.Clients.Tag.ITagReader | The ITagReader to use when reading values. |
| tag | NationalInstruments.SystemLink.Clients.Tag.TagData | The tag whose value will be read. |
| Name | Description |
|---|---|
| System.ArgumentException | if tag is not a UInt64 tag with a valid path. |
| System.ArgumentNullException | if reader or tag is null. |
Initializes an instance. Tag reads will fail if path does
not identify an existing UInt64 tag.
| Name | Type | Description |
|---|---|---|
| reader | NationalInstruments.SystemLink.Clients.Tag.ITagReader | The ITagReader to use when reading values. |
| path | System.String | The path of the tag whose value will be read. |
| Name | Description |
|---|---|
| System.ArgumentException | if path is empty or invalid. |
| System.ArgumentNullException | if reader or path is null. |
NationalInstruments.SystemLink.Clients.Tag.Values
Wraps the ability to write a UInt64 tag's value using an ITagWriter.
Initializes an instance. The tag must be a UInt64 tag.
| Name | Type | Description |
|---|---|---|
| writer | NationalInstruments.SystemLink.Clients.Tag.ITagWriter | The ITagWriter to use when writing values. |
| tag | NationalInstruments.SystemLink.Clients.Tag.TagData | The tag to associate with the value. |
| Name | Description |
|---|---|
| System.ArgumentException | if tag is not a UInt64 tag with a valid path. |
| System.ArgumentNullException | if writer or tag is null. |
Initializes an instance. Tag writes will fail if path
does not identify an existing UInt64 tag.
| Name | Type | Description |
|---|---|---|
| writer | NationalInstruments.SystemLink.Clients.Tag.ITagWriter | The ITagWriter to use when writing values. |
| path | System.String | The path of the tag to associate with the value. |
| Name | Description |
|---|---|
| System.ArgumentException | if path is empty or invalid. |
| System.ArgumentNullException | if writer or path is null. |