From: Edmund on 24 Mar 2010 17:08 Hi, I need to send the data #0P1500 from Simulink serial, but as we all know Simulink does not allow character, and it converts them to Decimal. My problem is this, I have a servo controller in which accepts the data #0P1500 to change the angle of the servo motor, but since Simulink is sending that data in decimal it is not going to work. Is there any way I can do this? I am using a function block and then a serial send block. u=uint('#0P1500'); % is the value I am sending to the serial port. How can I solve this? Please help :).
|
Pages: 1 Prev: Changing variable name in for loop Next: MATLAB won't render tilde (~) |