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?

답변 (0개)

카테고리

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

제품

Community Treasure Hunt

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

Start Hunting!

Translated by