MATLAB Answers


to receive data in serial communication

Asked by PK
on 6 Feb 2012
Latest activity Edited by Image Analyst
on 2 Oct 2013

i just got a sample code for serial communication from the link referred by the contributor JAN SIMON but the problem is i need to press a button to receive the data from another PC can any one tell which logic can be used to receive data from the terminal of other PC



No products are associated with this question.

1 Answer

Answer by Walter Roberson
on 6 Feb 2012

There is no special logic for this case. If you are using 9600 or faster then using hardware flow control is recommended.

If the two PCs are connected directly together then you need a "null modem cable".

  1 Comment

on 7 Feb 2012

i tried the same and the baud is set to 9600 and any other baud is used am getting some garbage value

Discover MakerZone

MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi

Learn more

Discover what MATLAB® can do for your career.

Opportunities for recent engineering grads.

Apply Today

MATLAB Academy

New to MATLAB?

Learn MATLAB today!