AccelHeader GetMemoryAccelerationHeader (int, int, string)

In normal mode, up to 10 earthquake or vibration events are automatically recorded in memory. Use this function to get information about the number of earthquake or vibration events and the number of pages recorded for the event stored at the given memory index. This function will also return sensor data from the time when the vibration event occurred.


Trust Level Required: Full Trust


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.
devName (Optional) string
The name of the device. If not supplied, the first matching configured device of this type will be used


An AccelHeader object that can be parsed as JSON.



function getMemoryAccelHeader() {
	var dataType = document.getElementById('accelDataType').selectedIndex;
	var memInd = parseInt(document.getElementById('accelMemInd').value);
	var header = KioOmronEnviroSensor.GetMemoryAccelerationHeader(dataType, memInd);
	alert(JSON.stringify(header, null, 2));


KioWare for Windows version 8.16 or greater.