Specify the platform-specific serial port name
You configure Port
to be the name of a
serial port on your platform. Port
specifies
the physical port associated with the object and the device.
When you create a serial port object, Port
is
automatically assigned the port name specified for the serial
function.
You can configure Port
only when the object
is disconnected from the device. You disconnect an object with the fclose
function. A disconnected
object has a Status
property value of closed
.
Read only | While open |
Data type | String |
The Port
value is determined when the serial
port object is created.
Suppose you create a serial port object associated with serial port COM1.
s = serial('COM1');
The value of the Port
property is COM1
.
s.Port ans = COM1