Info

この質問は閉じられています。 編集または回答するには再度開いてください。

How to shut down connection to Arduino device when the arduino variable is not in the workspace?

1 回表示 (過去 30 日間)
埃博拉酱
埃博拉酱 2020 年 6 月 30 日
閉鎖済み: 埃博拉酱 2020 年 10 月 23 日
The arduino object is cleared from the workspace, but the connection remains, because I can't create a new connection. MATLAB told me to clear the object in the workspace, but it has already been cleared. Any way to actually shut down the connection other than to restart MATLAB application?
  2 件のコメント
Rohan Kale
Rohan Kale 2020 年 10 月 23 日
Hi,
Is there an object exisitng in your workspace that depends upon arduino object i.e. arduino object being its parent object? For instance, have you created any device objects that take in the arduino object as their input arguments?
If that is the case, you need to remove them as well. In order to identify the depependent objects, type in
>> whos
the 'Class' field in the output structure should have values equal to 'arduino' for such objects. Consider clearing them before creating an arduino object afresh.
Hope it helps.
埃博拉酱
埃博拉酱 2020 年 10 月 23 日
The trouble is that the workspace is CLEARED, i.e., empty. I have no variables to clear any more.
Whatever, this issue is far too obsolete and I'm not doing what I was doing then any more. Maybe R2020b has fixed this or maybe not, I don't care now. Thank you for reminding me of this should-be-closed issue.

回答 (0 件)

製品


リリース

R2020a

Community Treasure Hunt

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

Start Hunting!

Translated by