The attribute bSavOldRes
The input variable bSavOldRes
of method ResExtract
has been implemented to enable a configuration of received controls' information. The array aCtrlProp
is able to store QRC_NUMBER_OF_CONTROL number of controls' information. This attribute can be changed in parameter list.
- By setting the attribute
bSavOldRes
to TRUE, all past controls' information will be stored. If upcoming controls' information which is already stored, the old controls' information will be overwritten by the new's. - By setting the attribute
bSavOldRes
to FALSE, all past controls' information which were stored in the arrayaCtrlProp
will be cleared. Only the latest controls' information will be stored.
To get a better understanding of the behavior, there is an example shown underneath.
1st. Step: Control information of "Channel1Mute" received.

At Step 1, a QRC frame was received at aRxFrame
and the control information are extracted by FB_QRC_RecExtract.
The array aCtrlProp
is empty. Because of this, control Channel1Mute is saved at element aCtrlProp[0]
whether bSavOldRes
is TRUE or not.
2nd Step: Control information of "Channel2Gain" (different control) received.

At Step 2, second QRC frame was received. After extraction of the new control information, it is stored depending on the value of bSavOldRes
.
- If
bSavOldRes
is TRUE, the control Channel2Gain is stored at elementaRecProp[1]
becauseaCtrlProp[0]
has stored another control Channel1Mute. - If
bSavOldRes
is FALSE, the control Channel2Gain is stored at elementaCtrlProp[0]
. The control information of Channel1Mute which was stored at the same element will be overwritten.
3rd Step: Control information of "Channel1Mute" (An update of already received control) received.

At step 3, third QRC frame was received. After extraction, it recognized that the control name has been already stored at aCtrlProp[0]
:
- If
bSavOldRes
is TRUE, the new-coming information of Channel1Mute will be stored at elementaRecProp[0]
. As a result of this, the stored control information of Channel1Mute gets updated and control information which stored ataCtrlProp[1]
is kept. - If
bSavOldRes
is FALSE, the new-coming control information of Channel1Mute will be stored at elementaCtrlProp[0]
. Other stored information will be cleared.
![]() | All past controls' properties will be saved only when the |