OK so our last ladder is Ladder 9 that's labeled display.
And this is going to be a very short and sweet lecture.
So enjoy it.
What we're doing here is we're looking at in the 7 9 and when we look at the description of that that's
our heater C.V our heater control variable that is the output of our Ph.D. that's being sent to our
heater to tell it how much to heat up.
And we know there are Ph.D. outputs on a range of 0 to 16 383.
However we would like to be able to show the operator on the h in my Exactly what percentage of heat
the heater is generating.
Is it at 100 percent of its output or is it at 50 percent of its output.
So all we're doing here is we're rescaling RPI the C.V control variable from a scale of 0 to 16 383
to a scale of 0 to 100 and we're saving that at a location in 710 which is an integer.
And if we look that doesn't appear anywhere else in the program only here.
And the reason for that is it's not for use in the program it's only for use on a display or like the
HDMI or a host control system.
So if we want to show on the HDMI how much of a percentage of the output of the heater are we currently
using We're going to reference in 17 while the actual Ph.D. might be outputting and then sending a signal
to the heater of twelve thousand five hundred forty two that number is really meaningless to an operator
an operator is going to think in terms of 100 percent or 0 percent 50 percent 25 percent they can understand
that.
So we're going to give them something familiar We're going to scale that CV to zero to 100 and we're
going to go ahead and put that in front of their faces so they know how hard their heater is working
.