Programming integrated motor encoders

Hi, I’ve just bought the integrated motor encoders for the 393 motors, I tried to programm it with the moveMotorTarget command but it doesn’t works, I found that I have to put a wait to complete the command but it doesn’t works. Do you know any other way that I can programm them?

Perhaps start by having a look at the cortex video trainer lesson for IMEs

moveMotorTarget will only work when PID is enabled for the motor that the IME is attached to. Perhaps just start by reading the encoder value using nMotorEncoder and checking that the IME is working by looking at its value in the motor debug window.