Kramer Electronics SP-14 User Manual

Page 22

Advertising
background image

end if

if succ then

succ = get(paramID => avPar_contrast,

attribute => avParamAttr_e2value,

value => val);

end if

if succ then

if (qfuncs and avQueryFunc_get_availValue) > 0 then

valAvail = val;

succ = get(paramID => avPar_contrast,

attribute => avParamAttr_availValue,

value => valAvail);

else

valAvail = TRUE;

end if

end if

if succ then

if (qfuncs and avQueryFunc_gets) > 0 then

succ = gets(paramID => avPar_contrast,

attribute => avParamAttr_value,

value => val,

returned string => st);

else

st = convertToString(val);

end if

set UI control range to min, max

display st as value in UI control

if not valAvail then

indicate on UI this particular value is not available

end if

allow user to use control

else

Process Error

end if

3.3.5.3.5 The User Adjusts the Value
Having allowed the user to make an adjustment to the value on the user interface, the unit

needs to be updated. Here the set is only performed with the avParamAttr_value attribute.

This is for performance reasons. It must also be set with using the avParamAttr_e2value

attribute when the user as finished (as will be shown in the next section).

boolean succ;

int qfuncs; -- obtained on connection

int min; -- obtained on start of editing

int max; -- obtained on start of editing

int newval; -- new adjusted value

int oldval; -- unadjusted value currently on unit

int valAvail;

if (newval >= min) and (newval <= max) then

if (qfuncs and avQueryFunc_get_availValue) > 0 then

valAvail = newval;

succ = get(paramID => avPar_contrast,

attribute => avParamAttr_availValue,

value => valAvail);

else

valAvail = TRUE;

end if

Advertising