I need to write commands to serial port
Afficher commentaires plus anciens
I just try to communicate with serial port. Every time when i use the fopen(s), it gives me error
??? Error using ==> serial.fopen at 72 Port: COM3 is not available. No ports are available. Use INSTRFIND to determine if other instrument objects are connected to the requested device.
I don't know what to do to preserve the port for communication between matlab and serial port
Réponses (1)
Walter Roberson
le 17 Oct 2013
0 votes
Use instrfind() to determine whether COM3 is already open. It might, for example, be open if you had fopen()'d it before and had your program crash and you did not fclose() it afterwards.
2 commentaires
ramdiver
le 18 Oct 2013
Walter Roberson
le 18 Oct 2013
Is it a true serial port, or is it a USB serial port?
Catégories
En savoir plus sur COM Component Integration dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!