GETARCHROW archIdent, locRecDstIdent, timeFromIdent_TmA, timeToIdent_TmA, stepIdent_Int, maxValsIdent_Int, statusIdent_Int [,archivInstance_Int] |
archIdent | in | Reference to row of:
|
locRecDstIdent | out | Local variable of the Record type - read result. |
timeFromIdent_TmA | in | An identifier of the Absolute time type - interval beginning. |
timeToIdent_TmA | in | An identifier of the Absolute time type - interval end. |
stepIdent_Int | in | An identifier of the Int type - time step for archive values oversampling. |
maxValsIdent_Int | in | The maximum number of values. If the given interval contains more data, the action will trim off the data and return ERR_MORE_DATA warning in the parameter statusIdent_Int. |
statusIdent_Int | out | Read success. |
archivInstance_Int | in | Optional identifier of the Int type - identification of archive instance. If the parameter is not defined, the value 0 will replace it. |
Archive data read request contains reference to data by means of:
The parameter archIdent can be defined by one of the following ways:
The read result is stored in the local variable _locRecDstIdent. The result of every request is either one value or a sequence of values. Every sequence of values is arranged by time in ascending order and stored row by row in the respective column of the local variable _locRecDstIdent. The structure type of the structured variables archIdent and _locRecDstIdent must be the same (it ensures the same number of columns). The action automatically resizes the variable _locRecDstIdent to required number of rows (the number is given by the largest number of values in the read result).
The parameters timeFromIdent_TmA and timeToIdent_TmA specify the time interval for reading values.
The parameter stepIdent_Int defines the oversampling (in seconds) of read values. If it is equal to 0, reading is not to be oversampled. Therefore, if the value is differing from 0, the times of all values in the result structure is the same and every column contains read values up to the last row. If the value is 0, the size of the result structure is given by the maximum number of values read by one request. Therefore, not all columns will contain values read from the archive up to the last row.
If the parameter timeToIdent_TmA is higher than actual time and the parameter stepIdent_Int is different from zero, oversampled values with future timestamps will be invalid.
The value of the parameter archivInstance_Int defines the instance of archive which executes the request. If the parameter is not defined (or the value is 0), the active instance of archive will execute the request.
The variable statusIdent_Int indicates the success of reading of the action. If this variable acquires the value _ERR_NO_DATA(22), it means that all archives, which were used when reading, do not contain any data. If at least one of the archives contains data, the action returns _ERR_NO_ERR(0).