Help - sending and reading angular rate - xbee - gyro

Hi all I have a project the task is that I want to set the angular velocity of gyro at the beginning to start rotating the motor and then read the angular rate after a specific time

can you help me with a code to start with .. I mean how to manage that using xctu software

best regards