Filter löschen
Filter löschen

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 Ansicht (letzte 30 Tage)
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?

Antworten (0)

Kategorien

Mehr zu Arduino Hardware finden Sie in Help Center und File Exchange

Produkte

Community Treasure Hunt

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

Start Hunting!

Translated by