A method of operating an electronic circuit comprising a first-in first-out memory arranged to store measurement data samples measured by a plurality of data measurement sensors (1, 3, 5) of the electronic circuit, which are a gyroscope for measuring orientation, an accelerometer for measuring acceleration and a magnetometer for measuring the strength and/or direction of a magnetic field, in which memory the oldest measurement data sample is arranged to be read first, a control unit being arranged to actively interrogate the different sensors to obtain the wanted measurements, the method comprising: - receiving measurement data samples from the at least three data measurement sensors (1, 3, 5); and - saving the received measurement data samples in the memory, characterized in that each of the measurement data samples saved in the memory is associated with a tag, also saved in the memory, identifying the data measurement sensor (1, 3, 5) which measured the respective measurement data sample, the gyroscope data being sampled at a higher sampling rate than the accelerometer data and the magnetometer data, and in that each time a new measurement data sample originating from a measurement sensor becomes available, that digital measurement data sample is stored in a register in the FIFO memory together with the tag that is associated with the measurement data, wherein only the new measurement data samples are successively stored in the FIFO memory, irrespective of whether they originate from the same or different sensors. - receiving measurement data samples from the at least three data measurement sensors (1, 3, 5); and - saving the received measurement data samples in the memory, characterized in that each of the measurement data samples saved in the memory is associated with a tag, also saved in the memory, identifying the data measurement sensor (1, 3, 5) which measured the respective measurement data sample, the gyroscope data being sampled at a higher sampling rate than the accelerometer data and the magnetometer data, and in that each time a new measurement data sample originating from a measurement sensor becomes available, that digital measurement data sample is stored in a register in the FIFO memory together with the tag that is associated with the measurement data, wherein only the new measurement data samples are successively stored in the FIFO memory, irrespective of whether they originate from the same or different sensors. characterized in that each of the measurement data samples saved in the memory is associated with a tag, also saved in the memory, identifying the data measurement sensor (1, 3, 5) which measured the respective measurement data sample, the gyroscope data being sampled at a higher sampling rate than the accelerometer data and the magnetometer data, and in that each time a new measurement data sample originating from a measurement sensor becomes available, that digital measurement data sample is stored in a register in the FIFO memory together with the tag that is associated with the measurement data, wherein only the new measurement data samples are successively stored in the FIFO memory, irrespective of whether they originate from the same or different sensors.