AccelData[] GetMemoryAccelerationData(int, int, int, string)
In normal mode, this function will retrieve a page of acceleration data for the earthquake/vibration event stored at memInd. In acceleration logger mode, this will retrieve the page of recorded data at the given page index (use memInd = 1).
Security
Trust Level Required: Full Trust
Parameters
Name | Description |
dataType |
int The type of acceleration data to retrieve. In normal mode, the options are: 0 = Earthquake data, 1 = Vibration data. In acceleration logging mode, use 2. |
memInd |
int The memory index at which to get the device acceleration data. In normal mode, up to a maximum of 10 acceleration events are recorded, so this value must be between 1 (latest) and 10 (last). Use 1 in acceleration logger mode. |
pageInd |
int The index of the page to retrieve at the specified memory index. Use GetMemoryAccelerationHeader to retrieve the page count for the specified memory index. |
devName |
(Optional) string The name of the device. If not supplied, the first matching configured device of this type will be used. |
Return
An array of AccelHeader objects that can be parsed as JSON.
Remarks
Examples
function getMemoryAccelData() {
var dataType = document.getElementById('accelDataType').selectedIndex;
var memInd = parseInt(document.getElementById('accelMemInd').value);
var pageInd = parseInt(document.getElementById('pageInd').value);
var data = KioOmronEnviroSensor.GetMemoryAccelerationData(dataType, memInd, pageInd);
alert(JSON.stringify(data, null, 2));
}
Requirements
KioWare for Windows version 8.16 or greater.