Magician forearm pwm control firmware bug


#1

Hello forum, I am seeing a buggy behavior for the forearm pwm output (EIOs 4, 6, 8). I fed the following command to the Dobot studio scripting pane, to get 2 ms pulse out of the 3 forearm ports:

dType.SetIOMultiplexingEx(api, 4, 2, 1)
dType.SetIOMultiplexingEx(api, 6, 2, 1)
dType.SetIOMultiplexingEx(api, 8, 2, 1) 
dType.SetIOPWMEx(api, 4, 50, 10.0, 1)
dType.SetIOPWMEx(api, 6, 50, 10.0, 1)
dType.SetIOPWMEx(api, 8, 50, 10.0, 1)

I then changed the EIO8 duty cycle to 1.5 ms, invoking the last line, but with the argument 7.5. Observe the resulting waveform:
dobot%20pwm

It looks like Dobot just ADDS another PWM wave, instead of deleting the current one. Is there a work around for this problem?
Thanks for reading!