Another program outside of MATLAB (e.g., Tera Term) is using a COM port. When MATLAB starts up, I issue the following command:
instrhwinfo('serial')ans = AvailableSerialPorts: {0x1 cell} JarFileVersion: 'Version 2.3' ObjectConstructorName: {0x1 cell} SerialPorts: {0x1 cell}
MATLAB correctly identifies that the COM port is unavailable. However, if I disconnect from the COM port in Tera Term, and then issue the same command again in MATLAB, I get the same result as shown above. MATLAB never recognizes that the port is available during that session.
Best Answer