sample rate of acc/gyr/mag

Hi all.

Using the platform drotek 10dof mpu6050-ms5611-hmc5883, with arduino.

I can extract raw data from accelerometer, gyroscope and magnetometer, but I was not clear the sample rate.

from the product data sheet mpu6050 read:
OUTPUT DATA RATE GYRO Programmable from 4 to 8,000 Hz
ACC OUTPUT DATA RATE Programmable from 4 to 1,000 Hz

This register specifies the divider from the output rate gyroscope used to generate the sample rate for the MPU-60X0.
The sensor output register, FIFO output, DMP sampling and motion detection are all based on the sample rate.
The sample rate is generated by dividing the output rate gyroscope by SMPLRT_DIV:
Sample Rate = Output Rate Gyroscope / (1 + SMPLRT_DIV)
where = 8kHz Output Rate Gyroscope When the DLPF is disabled (DLPF_CFG = 0 or 7), and 1kHz When the DLPF is enabled (see Register 26).
Note:
The accelerometer output rate is 1kHz. That means this for a sample rate greater than 1 kHz, the same accelerometer sample may be output to the FIFO, DMP, and sensor registers more than once.

For more in hmc5883:
Output Rate (ODR)
Continuous Measurement Mode 75 Hz
Single Measurement Mode 160 Hz

My question is: I have to set the same sampling rate for all sensors?

OUTPUT DATA RATE GYRO Programmable from 4 to 8,000 Hz
ACC OUTPUT DATA RATE Programmable from 4 to 1,000 Hz

My question is: I have to set the same sampling rate for all sensors?

Clearly you don't have to - the 8kHz gyro rate would be unobtainable otherwise.

You have to realise that this module has 3 separate chips on it, they are independent other than sharing an I2C bus.