serial communication matlab to serial port?

1 Ansicht (letzte 30 Tage)
venkat vasu
venkat vasu am 6 Feb. 2014
Bearbeitet: Walter Roberson am 6 Feb. 2014
Hi...
i am doing the project in real time. for that i need to send some array from matlab to serial port. for this any i need any command or and matlab code.
Thanks in advance...
  1 Kommentar
Matt Kindig
Matt Kindig am 6 Feb. 2014
Just use the serial() function to create a connection to your serial port, and then fopen() to open the port, fwrite() (or fprintf()) to send data through the serial port, fread() (or fscanf()) to retrieve data through the port, and fclose() to close the port. I would start here:
doc serial

Melden Sie sich an, um zu kommentieren.

Antworten (0)

Kategorien

Mehr zu Environment and Settings finden Sie in Help Center und File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by