As I understand it, the ReferenceTestApplication creates a pair of linked process variables: FROM_DEVICE_XX, TO_DEVICE_XX. My intuition with this scheme is, data flows from the FROM to the TO variant.
However the code seems to invert this (looking at TypedPVHolder::inputToOutput); it takes data from the TO variant and writes it to the FROM variant. If there is no good reason for this behavior, please consider changing it to be inline with the concept of sending data from a source to a destination.
As I understand it, the
ReferenceTestApplicationcreates a pair of linked process variables:FROM_DEVICE_XX,TO_DEVICE_XX. My intuition with this scheme is, data flows from theFROMto theTOvariant.However the code seems to invert this (looking at
TypedPVHolder::inputToOutput); it takes data from theTOvariant and writes it to theFROMvariant. If there is no good reason for this behavior, please consider changing it to be inline with the concept of sending data from a source to a destination.