Next Topic

Previous Topic

Book Contents

StoreStatisticalData

bool StoreStatisticalData(int iRecordSet,float fData,float fThreshold,string Unit)

Return values

True if data was successfully stored to statistical database, false if there was an parameter error.

Parameters

  • iRecordSetIndex - A zero based index of the statistical channel to store data into. See remarks for valid constants.
  • fData - Floating point data sampled by the script.
  • fThreshold - Optional threshold value for the sample data, this value should be constant in all calls.
  • Unit - Optional string describing the unit of the data, this value should be constant in all calls. The string can be max 16 chars in length or the call will fail.

Remarks

This function gives the script the ability to store statistical data. Currently there is 8 channels that can be used for the purpose. The record set index parameter can be one of the following constants.

LUA_RECORDSET_1
LUA_RECORDSET_2
LUA_RECORDSET_3
LUA_RECORDSET_4
LUA_RECORDSET_5
LUA_RECORDSET_6
LUA_RECORDSET_7
LUA_RECORDSET_8