kongming0230@hotmail.com
New Member
Hello guys, I currently doing some communication between MATLAB and dspic 30f4011, And i dun know how to set up the MATLAB (mfiles R2008 Version) and dspic30f40111 for it to start the UART connection. Here is the some coding i try on it but i still unable to execute. Din't u has any idea about it?
MATLAB Code
============================================
function comparison ()
global x1 y1 global turn
turn=0;
s=serial('COM3');
set(s,'BaudRate',9600);
fopen(s);
fprintf(s,'2');
out=fscanf(s);
fclose(s);
=============================================
But Dun Know why it unable to work. Has ur guy face this problem before?can suggest me the way to resolve it?Thank you and has a nice day. i quite rush for it.(^^)
MATLAB Code
============================================
function comparison ()
global x1 y1 global turn
turn=0;
s=serial('COM3');
set(s,'BaudRate',9600);
fopen(s);
fprintf(s,'2');
out=fscanf(s);
fclose(s);
=============================================
But Dun Know why it unable to work. Has ur guy face this problem before?can suggest me the way to resolve it?Thank you and has a nice day. i quite rush for it.(^^)