jyothi1
Junior Member level 1
- Joined
- Sep 24, 2010
- Messages
- 19
- Helped
- 0
- Reputation
- 0
- Reaction score
- 0
- Trophy points
- 1,281
- Location
- Anantpur, A.P
- Activity points
- 1,614
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');
fopen(s)
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');
fopen(s)
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: