Help needed on range configuration

1 view (last 30 days)
Yu Wang
Yu Wang on 12 Feb 2012
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.

Answers (0)

Community Treasure Hunt

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

Start Hunting!