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
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 件)

カテゴリ

Help Center および File ExchangeUse COM Objects in MATLAB についてさらに検索

製品


リリース

R2009a

Community Treasure Hunt

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

Start Hunting!

Translated by