This example only decodes STIM300 datagrams which fulfills the following requirements:
Datagram contents: gyro output, accelerometer output and inclinometer output (Datagram identifier 0x93)
Output unit, gyros: angular rate (output scaled for 400°/s gyros)
Output unit, accelerometers: acceleration (output scaled for 10g accelerometers)
Output unit, inclinometers: acceleration
Data starts at first byte of a datagram (i.e., datagram identifier) and contains only datagrams of the specified type

This is a Matlab programming example.