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