function serialportlist is not working
9 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Stijn Haenen
am 24 Jan. 2020
Kommentiert: Walter Roberson
am 25 Jan. 2020
When I use the function 'serialportlist' to identify the serial ports on my laptop i get a 1x0 empty string array.
ports=serialportlist
ports =
1×0 empty string array
I think, I should get at least 2 ports, because I have 2 USB ports on my laptop.
Im using matlab 2019b.
Do i need to instal some packages for using serialportlist?
1 Kommentar
Walter Roberson
am 24 Jan. 2020
USB by itself is not enough: you would need to have a connected device that is responding as offering a virtual com port.
Akzeptierte Antwort
Stijn Haenen
am 25 Jan. 2020
1 Kommentar
Walter Roberson
am 25 Jan. 2020
USB speakers would not advertise themselves as offering virtual com port services so using serialport() would not be appropriate.
See https://www.mathworks.com/help/audio/ref/audioplayerrecorder.getaudiodevices.html
Weitere Antworten (0)
Siehe auch
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!