Specify 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 instrument.
You can configure Port only when the object is disconnected from the instrument. You disconnect an object with the fclose function. A disconnected object has a Status property value of closed.
Suppose you create a serial port and VISA-serial object associated with serial port COM1.
s = serial('COM1') vs = visa('ni','ASRL1::INSTR')
The Port property values are given below.
[s vs].Port ans = 'COM1' 'ASRL1'