Class property described, but not available for serialPort objects?

4 ビュー (過去 30 日間)
Christopher Teale
Christopher Teale 2024 年 11 月 12 日
コメント済み: Christopher Teale 2024 年 11 月 13 日
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 Center および File ExchangeSerial 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