Class property described, but not available for serialPort objects?

15 views (last 30 days)
The MATLAB documentation on the serialPort object found in serialport - Connection to serial port - MATLAB - MathWorks United Kingdom , claims that there is a configurable property for the serial port called 'Tag'. According to the documentation, it is used for finding the port by using the string that is input as the argument following the Tag input. However, when I try to use this input I get an error. For example:
- serialPort = serialport(portID,115200,"Timeout",1000,'Tag','portMercury');
-serialPort = serialport(portID,115200,"Timeout",1000,Tag,'portMercury');
Both return the error: 'Tag' is not a recognized parameter.
When you instantiate the object, it also does not seem to contain any parameters called Tag. Is this a MATLAB 2024 thing? I'm on 2023a. Or is it just an error in the documentation? Or am I doing something wrong here?

Accepted Answer

Steven Lord
Steven Lord on 12 Nov 2024 at 14:46
The Version History section on that documentation page states that there is a "New Tag Property" introduced in release R2024a. So this is "a MATLAB 2024 thing".

More Answers (0)

Products


Release

R2023a

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!