Help needed on range configuration
Afficher commentaires plus anciens
I am new to matlab, any kind of help will be highly appreciated!! Thank you!!
I have created a device object aout0 and add a channel to it. aout0 = analogoutput('mcc', 0); addchannel(aout0, 0);
Now I am using this output channel to output 0-5 volts to a power supply unit which will provide 0-30 volts to empower a heater unit. Thus I guess 30volts is my scaled value in this case.
The formula given is: scaled value=origianal value x output range/unitsrange
Thus my calculation is 30 = 5 x 5/unitsrange
I got unitsrange to be 0.83, since output range is fixed at [0 5] and the original value is 0 to 5 volts as mentioned above(i guess).
So, when I write a command to output a sample: putsample(aout0, 5) will achieve my objective? Thank you.
1 commentaire
Yu Wang
le 15 Fév 2012
Réponses (0)
Catégories
En savoir plus sur Loops and Conditional Statements dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!