I try to control BLDC from a transmitter via ESC+arduino+simulink. Transmitter+receiver+esc+motor works well together without arduino+simulink. but I try to get the transmitter signal to arduino and send it to esc from arduino digital output. I connect all the stuff into each other and I used a sfunction to get the signal from receiver to arduino and then run the simulink in external mode. I can see the changes of signal values(800-2000ms) of transmitter and it goes to digital output but my ESC doesnt work and sounds beep every 2 second like a misconnection error. does anyone help me to buid simulink model to control motor. I add some photos..