AddStreamedValue(HistorianDataValue,HistorianAccessError) Method
- Last UpdatedAug 21, 2026
- 1 minute read
Use the AddStreamedValue() method to store real-time or late data values for a tag to the server.
'Declaration
Public Overloads Function AddStreamedValue( _
ByVal streamedDataValue As HistorianDataValue, _
ByRef error As HistorianAccessError _
) As Boolean
'Usage
Dim instance As HistorianAccess
Dim streamedDataValue As HistorianDataValue
Dim error As HistorianAccessError
Dim value As Boolean
value = instance.AddStreamedValue(streamedDataValue, error)
public bool AddStreamedValue(
HistorianDataValue streamedDataValue,
out HistorianAccessError error
)
public:
bool AddStreamedValue(
HistorianDataValue^ streamedDataValue,
[Out] HistorianAccessError^ error
)
Parameters
- streamedDataValue
- The object of HistorianDataValue. Contains the VTQ for the tag to be stored.
- error
- The object of HistorianAccessError. Stored with the error information, if any.
Return Value
Returns the Historian error code.
Streamed original values are queued for storage by the AddStreamedValue() method. The AddStreamedValue() method adds the value to the delivery queue and returns immediately. Under certain circumstances it can return false with an error code when the value cannot be queued.
The HistorianDataValue class provides two constructors. One has no arguments and the other requires a tag key and a value type. If the value type does not match the tag type, the HCAL internally attempts to make a proper conversion. By default the OPCQuality is set to 192 (good). On any error, it provides the error information.