custom library I created for arduino cannot be run through matlab
2 ビュー (過去 30 日間)
古いコメントを表示
Hasiru Wijesuriya
2020 年 7 月 6 日
コメント済み: Hasiru Wijesuriya
2020 年 7 月 11 日
Hi, whenever I try to run my program for a gas sensor. An error message comes up:![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/327824/image.png)
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/327824/image.png)
ExampleAddon/MQ3Uni is ad addon library Icreated in Matlab. However, when I create a pragram with this library I get the error below. I would like to recieve help on this. I tried the insructions given on Arduino Hardware Troubleshooting. However, I did not get solution to the problem.
Thanks
0 件のコメント
採用された回答
Nishant Gupta
2020 年 7 月 10 日
Can you please try this workaround and see if it is working or not. First see if arduino object can be created without using custom libraries.
Run the following command to see if this works fine:
a = arduino('COM3','Uno', 'TraceOn',true);
If this works fine, create arduino object with custom library and have trace on:
arduinoObj = arduino('COM3','Uno','Libraries','ExampleAddon/MQ3Uni','ForceBuild',true,'TraceOn',true);
This will give you debug information and upload errors of Arduino IDE at the MATLAB command window. There are some common possible causes of the error. Depending on what you see in your trace log, try the one that applies as follows:
その他の回答 (0 件)
参考
カテゴリ
Help Center および File Exchange で Instrument Control Toolbox についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!