Kramer Electronics SP-14 User Manual

Page 23

Advertising
background image

if valAvail then

succ = set(paramID => avPar_contrast,

attribute => avParamAttr_value,

value => newval);

if succ then

oldval = newval; -- update old value

end if

else

-- value not available: do not set

indicate on UI that value is not available

end if

else

newval = oldval; -- revert change

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

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.6 The User Completes Adjusting the Value
When the user has finished adjusting the parameter it is necessary to set the value using both

of the value attributes.

boolean succ;

int oldval; -- unadjusted value currently on unit

int valAvail;

succ = set(paramID => avPar_contrast,

attribute => avParamAttr_value,

value => oldval);

if succ then

succ = set(paramID => avPar_contrast,

attribute => avParamAttr_e2value,

value => oldval);

end if

3.3.5.4 Parameter type: String
String parameters implement both the get string and set string functions. The minimum and

maximum functions when implemented provide the minimum and maximum length of the

string. The protocol has a restriction of six characters maximum for the set string function; this

is a limitation of this protocol and the underlying communication implementation.

Advertising