Info

This question is closed. Reopen it to edit or answer.

Can I know the method of feeding Matlab code output to a hardware circuit through RS232?

1 view (last 30 days)
Can I know the method of feeding Matlab code output to a hardware circuit through RS232?

Answers (1)

Walter Roberson
Walter Roberson on 28 Jan 2017
use serial() to indicate the properties of the port you want to communicate with. Use fopen() to activate the port. Use fprintf or fwrite to the port to send data. To receive data use fgetl or fgets or fscanf or fread
  6 Comments
Mangai s
Mangai s on 4 Mar 2017
Thank you.Yes the received binary data must be displayed in matlab at the receiver PC. The data must be transmitted and received serially through RS232 cable on both the ends.

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!