How do I clear an Arduino object that is saved as an application property?
조회 수: 35 (최근 30일)
이전 댓글 표시
MathWorks Support Team
2021년 9월 15일
편집: MathWorks Support Team
2024년 3월 31일 21:26
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
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
추가 답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Modeling에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!