The Event Injector view can be used to imitate user actions, such as shaking, throwing, and tilting the device. You can generate single sensor events, or design sensor profiles for different sensors, containing sensor data that describes a series of sensor events.
The sensor profiles have a simple data structure and are stored in TXT files. The sensor data can be input in the specified data structure from the proximity, motion, light, or 3-axis sensors.
The sensor profiles are of 2 types:
The Emulator tries to inject each item at its specified time. Events are discarded if they violate certain performance, resource, or logic limits.
The Emulator injects each item without any specific time considerations. Profile data is not discarded.
The Event Injector view can be used to adjust the acceleration, magnetic, tilt, and gyro sensors of the Emulator in the 3-Axis Sensors section of the Sensor tab.
On the GUI subtab, you can select which sensors are active, and you can move the Emulator using the 3 axis sliders or the direction buttons (Portrait, Landscape, Reverse Portrait, and Reverse Landscape). The Emulator image shows the current position of the Emulator.
To better control the movement, select the With axis check box to see the axes in the Emulator image. You can also fix the y- or z-axis by selecting the X/Z or X/Y radio button, respectively. To change the Emulator accelerator value in the direction of the movement, select the Move radio button.
To adjust the individual sensors:
This sensor is used to control the acceleration values along the coordinate axes. If the Emulator is standing, the y axis gets the acceleration value -1g as gravitational acceleration.
To change the acceleration value manually, use the sliders on the Acceleration subtab to set a value between -2 and 2 g.
You can input a log file with up to 5 repeats for the acceleration sensor. The log file format is: "milliseconds, x, y, z".
This sensor is used to control the Emulator's magnetic tesla value along the coordinate axes. If the Emulator is standing, the magnetic tesla value is set by heading for real north (azimuth 0).
To change the magnetic tesla value manually, use the sliders on the Magnetic subtab to set a value between -2000 and 2000 uT.
You can input a log file with up to 5 repeats for the magnetic sensor. The log file format is: "milliseconds, x, y, z".
This sensor is used to control the tilt of each axis. Because the tilt sensor uses both the acceleration and magnetic sensor, it works only if all 3 sensors (acceleration, magnetic, and tilt) are selected.
This sensor is used to control the Emulator's rotation angle per second along the coordinate axes.
To change the gyro value manually, use the sliders on the Gyro subtab to set a value between -10 and 10 rad.
You can input a log file with up to 5 repeats for the gyro sensor. The log file format is: "milliseconds, x, y, z".
You can control the proximity, motions, and light sensor of the Emulator:
To control the proximity sensor, set it on or off in the Proximity section of the Sensor tab.
To control the motion sensors, introduce double tap, shake, snap, or move to ear events in the Motion section of the Sensor tab.
To control the light sensor, set the Lux value in the Light section of the Sensor tab. The range of this value is from 1 to 65535.