Thread Subject: interfacing gs232a using rs232a

Subject: interfacing gs232a using rs232a

From: damn

Date: 27 May, 2011 08:52:05

Message: 1 of 2

i have to rotate the satellite antenna using gs232a azimuth ally.
this is a code which i have written but there is problem during run.
please check and tell solution.
code:
clc
s = serial('COM1');
set(s,'BaudRate',9600,'DataBits',8,'Parity','none' ,'StopBits',1,'FlowControl','none')
fopen(s);
for i= 0:1000
    fprintf(s,'R');
end




fclose(s)
delete(s)
clear s
display('finished')



thank you very much.

Subject: interfacing gs232a using rs232a

From: Trent Jarvi

Date: 27 May, 2011 17:28:35

Message: 2 of 2


"damn " <mishraapurv@yahoo.co.in> wrote in message
news:irnonl$abf$1@newscl01ah.mathworks.com...
>i have to rotate the satellite antenna using gs232a azimuth ally.
> this is a code which i have written but there is problem during run.
> please check and tell solution.
> code:
> clc
> s = serial('COM1');
> set(s,'BaudRate',9600,'DataBits',8,'Parity','none'
> ,'StopBits',1,'FlowControl','none')
> fopen(s);
> for i= 0:1000
> fprintf(s,'R');
> end
>
>
>
>
> fclose(s)
> delete(s)
> clear s
> display('finished')
>
>

FPRINTF when used with serial objects appends a newline character (ASCII
value 10). If you did not intend to send a newline, use FWRITE.

Tags for this Thread

Everyone's Tags:

Add a New Tag:

Separated by commas
Ex.: root locus, bode

What are tags?

A tag is like a keyword or category label associated with each thread. Tags make it easier for you to find threads of interest.

Anyone can tag a thread. Tags are public and visible to everyone.

Tag Activity for This Thread
Tag Applied By Date/Time
communication w... damn 27 May, 2011 04:54:07
rssFeed for this Thread

Contact us at files@mathworks.com