Finding Available COM ports in a PC.
Mostrar comentarios más antiguos
Hi, I would like to write a program which can find the available serial ports in a PC and connect to the port to which an external instrument is connected. the instrhwinfo('serial') provides me the available serial ports(one of the port is connected to an instrument) in my PC.
Now i replug the instrument to different serial port and do an instrhwinfo('serial'). This time it doesn't update the change in port name. Why is this happening? Is there a script/additional commands which can recognize the port name when i replug again and again to different ports on my PC.
Need assistance, Thank you.
Respuesta aceptada
Más respuestas (2)
KarthiK Krishna Kumar
el 25 de Mzo. de 2011
0 votos
1 comentario
Walter Roberson
el 25 de Mzo. de 2011
It appears that the answer is NO for real serial ports, and "not implemented" for USB ports. Please see http://www.mathworks.com/matlabcentral/newsreader/view_thread/300827
Phillip
el 19 de Dic. de 2012
0 votos
I had the same question, just found that the answer is the "instrreset" command.
Categorías
Más información sobre Instrument Control Toolbox Supported Hardware en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!