J C. Crow 3 years ago in IQANdesign • updated by Gustav Widén (System support) 3 years ago • 1
What is the proper syntax for the QCode MEM functions. I am trying to use QAdd, QSubtract, and QReplace. In some instances I want add 1, subtract 1, or jump to a predefined value based on four IDC channel status.
Customer support service by UserEcho
The MEM channel work in combination with another channel, the one you set on the property input channel.
The QReplace operation replace value of the MEM channel with the value of the input channel
From what you describe, it seems as if an ECNT could be an alternative, with the trick that you use a channel as reset value.
If you do not need to have the function in non-volatile memory, it could be more intuitive to use a math channel with a static variable.