Just tell it to move a distance equal to the pitch of the thread, then it will do one turn and you can measure.
Alternatively use any distance, measure the actual distance and that gets you a ratio. You can then scale the pitch value you entered from that - hopefully it'll be a recognisable number.