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 vue (au cours des 30 derniers jours)
Afficher commentaires plus anciens
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 commentaire
Réponses (0)
Voir également
Catégories
En savoir plus sur Arduino Hardware dans Help Center et File Exchange
Produits
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!