- #1
jyothi1
- 2
- 0
HI sir,
right now I doing speech recognition robot project.For that I am learning Matlab I am very new to this subject.I want to write program for serial communication in matlab.Actually I have written program. but I am getting an error as (? Error using ==> serial.serial at 62
The PORT must be specified.).In my program I used comport. Even though that error is coming.My program is as below.s = serial('COM2');
printf(s,'RS232?');
data1 = fscanf(s);
data = 9600;0;0;NONE;LF
C = textscan(a, '%d%d%d%s%s','delimiter',';');
[br, sfc, hfc, par, tm] = deal(C{:});
fclose(s)
I tried, but I did n't get where I did mistake.Can anybody please help me.
Thanks,
Jyothi.
right now I doing speech recognition robot project.For that I am learning Matlab I am very new to this subject.I want to write program for serial communication in matlab.Actually I have written program. but I am getting an error as (? Error using ==> serial.serial at 62
The PORT must be specified.).In my program I used comport. Even though that error is coming.My program is as below.s = serial('COM2');
printf(s,'RS232?');
data1 = fscanf(s);
data = 9600;0;0;NONE;LF
C = textscan(a, '%d%d%d%s%s','delimiter',';');
[br, sfc, hfc, par, tm] = deal(C{:});
fclose(s)
I tried, but I did n't get where I did mistake.Can anybody please help me.
Thanks,
Jyothi.
Last edited: