Specifications

EssentialsofCrestronProgramming
82
VolumePresetsFeedback
TheVolumePresetbuttonsmustshowactivefeedbackwhenthecurrentvolumelevelis
atthepresetlevel.ThevolumelevelisalsoreportedbythePercentobjectonthe
touchpanel,aswellastheSliderobject.
TheoutputoftheAnalogRateLimiterisarawa
nalogvaluefrom0dto65535d,whereas
thepresetsarepercentagesfrom0%to100%.Tofacilitatethefeedbackprogramming,
therawanalogvalueneedstobescaledto0dto100d.EntertheAnalogScalersymbol.
Therawanalog<Volume_Level>valueisconnectedtoananaloginputoftheScaler.
The<span>istherangeofvaluesoverwhichtheanalogsign
alwillbescaled,whichin
thisexampleis100d.Theoffsetis0d,signifyingnooffsetfromtheoriginalvolumelevel.
TheAnalogEquatesymbolisusedtodrivethefeedbackforthepresetbuttonswhenthe
sliderisatth
ecorrectlevel.TheAnalogEquatesymboldrivesanoutputhighifthe
valueseenonitsanaloginputisequaltothecorrespondingparameter.Sinceaslideris
notlikelytolandontheexactpresetvalue,thescaledvaluegeneratedbytheAnalog
Scalerensuresthatthep
resetbuttonwilldisplayfeedbackasexpected.
