How can I set analog resolution bits (10 bits to 12 bits) in an Arduino Due board using just MatLAB (without s-function of Simulink)?
1 回表示 (過去 30 日間)
古いコメントを表示
There are questions like that in MathWorks but I don't find anything that answered my problem. I'm make a program using GUI in MatLAB that controls an Arduino Due. This Arduino works like a digital Power Supply, receiving MatLAB commands for set a voltage and read voltage out and other analog variables. But this values is seted to 10 bits resolution, and Arduino Due can be seted to work with 12 bits resolution. Using Arduino IDE, this problema os solved with analogReadResolution() command, but I don't find nothing like o that in MatLAB referentes for Arduino. I don't know how to work with Simulink or how can I integrate a s-function in my program of MatLAB, so there is a method can I set this resolution using Just MatLAB? If not, how can I use Simulink S-function in my MatLAB code?
1 件のコメント
回答 (0 件)
参考
カテゴリ
Help Center および File Exchange で Arduino Hardware についてさらに検索
製品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!