Is it possible to communicate with multiple serial ports using MATLAB 7.8 (R2009a)?
조회 수: 7 (최근 30일)
이전 댓글 표시
I would like to open and communicate with multiple serial ports on separate COM ports. I would like to know if it is possible to retrieve data from all ports simultaneously with MATLAB.
채택된 답변
MathWorks Support Team
2009년 9월 2일
It is possible to communicate with multiple serial ports in MATLAB 7.8 (R2009a). The procedure is the same as communicating with a single serial port object.
For example to open two serial ports one can do the following:
s1=serial('COM1')
s2=serial('COM2')
fopen(s2)
fopen(s1)
댓글 수: 0
추가 답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Use COM Objects in MATLAB에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!