Using the AX3500 with matlab
- zeli
- Topic Author
15 years 5 months ago #25114574
by zeli
Using the AX3500 with matlab was created by zeli
I tried, with no success, to run my robot with the Matlab program.<BR>I have opened and set a serial port using the data given in the manual <B><FONT face=Univers-Bold><BR>
9600 bits/s, 7-bit data, 1 Start bit, 1 Stop bit, Even Parity
</B></FONT>I tried sending the command using 2 different matlab commands, fwrite() and fprintf() and failed with both.<BR>I wrote the command the same I write it at the hyper terminal.<BR>Example:<BR>fprintf(s,'!A3F') where s is the port name.<BR><BR>Can you please help me with the code, what am I doing wrong????<BR>
thanks....
9600 bits/s, 7-bit data, 1 Start bit, 1 Stop bit, Even Parity
</B></FONT>I tried sending the command using 2 different matlab commands, fwrite() and fprintf() and failed with both.<BR>I wrote the command the same I write it at the hyper terminal.<BR>Example:<BR>fprintf(s,'!A3F') where s is the port name.<BR><BR>Can you please help me with the code, what am I doing wrong????<BR>
thanks....
Please Log in or Create an account to join the conversation.
- cosma
15 years 5 months ago #25115544
by cosma
Make sure that you are also sending a carriage return (hex 0d) at the end of your string.
Replied by cosma on topic Re:Using the AX3500 with matlab
Make sure that you are also sending a carriage return (hex 0d) at the end of your string.
Please Log in or Create an account to join the conversation.
9 years 6 months ago #29528929
by g1989
Replied by g1989 on topic Using the AX3500 with matlab
could you successfully control the motor controller with matlab? I need some help
Please Log in or Create an account to join the conversation.
Moderators: tonysantoni
Time to create page: 0.053 seconds