Is it possible to communicate with multiple serial ports using MATLAB 7.8 (R2009a)?
9 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
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.
Risposta accettata
MathWorks Support Team
il 2 Set 2009
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 Commenti
Più risposte (0)
Vedere anche
Categorie
Scopri di più su Use COM Objects in MATLAB in Help Center e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!