How do I clear an Arduino object that is saved as an application property?

조회 수: 35 (최근 30일)
How do I clear an Arduino object that is saved as an application property? I am using the "clear" command following the documentation below:
I saved an Arduino object in an application property and I used "clear" later on in order to disconnect the device. But after that I'm still getting an error when connecting the same device in another application, saying a connection to the board already exists.

채택된 답변

MathWorks Support Team
MathWorks Support Team 2024년 3월 31일 0:00
The values of the properities are persistent as long as your applicaiton is open. You cannot clear those properties using "clear". Instead of using "clear", you can assign the property an empty value. For example. please try something like the command below:
app.a=[]
When that line is executed, the "delete" method of the Arduino object should be called.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Modeling에 대해 자세히 알아보기

제품


릴리스

R2021a

Community Treasure Hunt

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

Start Hunting!

Translated by