Help needed on range configuration
Mostrar comentarios más antiguos
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 comentario
Yu Wang
el 15 de Feb. de 2012
Respuestas (0)
Categorías
Más información sobre Loops and Conditional Statements en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!