Hello,
I have a 64-bit CAN message that I am splitting as two 32-bit registers in the device protocol.
Then with an EPL, I want to read the first register, let’s call it MEASUREMENT_TYPE_A , and then the second one, this one call MEASUREMENT_TYPE_B.
Then in the logic of the EPL I want to analyze first MEASUREMENT_TYPE_A , execute some logic, then in the same cycle I want to analyze MEASUREMENT_TYPE_B and then execute some logic.
Would this code do the following? Do you have a better way to approach this request?
monitor xxx(){
action onload(){
monitor.subscribe(Measurement.SUBSCRIBE_CHANNEL);
on all Measurement(type=MEASUREMENT_TYPE_A) as measurement
{
...logic...
on Measurement(type=MEASUREMENT_TYPE_B) as measurement
{
...logic...
}
}
}
}