Log a single sensor read at button press
Hi
I have a MetaMotionR+ and I need to log the Euler angles once every time the button is pressed. It need to be run on the device without an active connection, and then be downloaded at a later time.
So far I have managed to set up data route for logging the Euler angles, and then similar to the tutorial at "6.1.4. Event Handling" I have set the device to start logging when the button is pressed down, and stop logging when the button is released. But this resolves in many sensor readings even with a short button press.
Is it possible to control exactly how many sensor readings that are logged, and how?
Any help is appreciated
This discussion has been closed.
Comments
Use a passthrough limiter in count mode.
I have tried to implement it, but without any luck so far..
This is where I am at, can you tell me what I have done wrong?
You are not logging the passthrough output and your chain has an unneeded delay component.
The Euler angles route should direct its data to a passthrough limiter (first link). The switch state route will modify the passthrough limiter when the button is pressed to allow a fixed number of data points through (2nd and 3rd links).