This change removes checking whether the supplied port name exists (and is open) - instead it should return an error when trying to open it. This is to avoid using the instrhwinfo (requires Instrument Control Toolbox) and seriallist (MATLAB v2017a+ only) functions.
It also adds a check for whether strings exist (MATLAB 2016a+ only) before checking whether the supplied port name is a valid string
This change removes checking whether the supplied port name exists (and is open) - instead it should return an error when trying to open it. This is to avoid using the instrhwinfo (requires Instrument Control Toolbox) and seriallist (MATLAB v2017a+ only) functions.
It also adds a check for whether strings exist (MATLAB 2016a+ only) before checking whether the supplied port name is a valid string