필터 지우기
필터 지우기

Arduino to Matlab Interfacing problem

조회 수: 1 (최근 30일)
Erika
Erika 2014년 1월 22일
So I kinda figured out how to interface my arduino to matlab when using two computers and connecting them with transceivers. However, my next problem is, I want my matlab to readily listen to arduino whenever it sends, or in regular intervals (say, every 3 seconds).
Could anybody help me with the code?
This is my code when I'm sending something to arduino.
delete(instrfindall)
clear all
global a;
a = serial('COM10'); % define serial port
a.TimerPeriod=1;
a.Terminator='LF';
fopen(a);
a.BaudRate=9600; % define baud rate

답변 (0개)

카테고리

Help CenterFile Exchange에서 MATLAB Support Package for Arduino Hardware에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by