Manual
LCom
Page 75 of 158
If a sensor channel is assigned to one of the tssDataCollection.dataCollectionTable
(or .dataB
ufferTable) OIDs in the sensor Assignment dialog, all OID’s of this table
entry will be assigned appropriate sensor channels of the same Wavecon device (if
no channels have been assigned yet).
5.8.6 NTCIP Data Store / History
The dataStore MIB subtree (see chapter 5.8.3.2.7) provides access to the data
stored on the rpu (note: this is a private extension of the NTCIP standard, and only
supported by the LCom Version 2.11.0 or newer).
The OIDs whose values are stored in the data store are configured in the
“historySensorOidTable” (see chaper 5.8.2.12.2).
The simplest way to access the last 255 stored values with a 1-minute reporting
interval (i.e. the interval the data is stored on the rpu) is:
a) Read the historySensorTable (i.e. read the number of entries in the
historySensorTable via
dataStore.numHistorySensorEntries.0
, and
then read the entries). The sequence of these OIDs will be used in the
resultsTable to report the respective oid values.
b) Write a valu
e of “2” (runQuery) to the
dataStore.queryCommandAndStatus.0
OID
c) Read the
dataStore.queryCommandAndStatus.0
OID until the status
changes from 2 (runQuery) to another value. The resulting value indicates
weather the query was successful or not. A value of 3 (dataReady) or 4
(dataPartialReady) indicates the query was successful, and the result is
provided in the queryResultsTable
d) Read the number of valid rows in the results table through reading the
dataStore.numRowsInResult.0
OID
Note: if the query was successful (no error occurred), but there are no values
available in the given interval, the number of rows in the result will be reported
as 0