Class property described, but not available for serialPort objects?

조회 수: 4 (최근 30일)
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?

채택된 답변

Steven Lord
Steven Lord 2024년 11월 12일
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".

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Serial and USB Communication에 대해 자세히 알아보기

제품


릴리스

R2023a

Community Treasure Hunt

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

Start Hunting!

Translated by