The logger manuals say clearly: "conditional measurements are not allowed in pipeline mode." Indeed, when I put the following code segment in the main scan, I cannot compile in pipeline mode.
If True Then
Battery (batt_volt)
End If
However, if I put the same code segment in a slow sequence, I have no problem to compile in pipeline mode. Does that mean that conditional measurements are okay in pipeline mode, as long as they are in slow sequences?
Futhermore, it appears that when I use a measurement instruction like VoltDiff in the main scan in pipeline mode, all arguments except Mult and Offset must be constants. However in a slow sequence they can all be variables.
Am I discovering the correct rules?
[edit]
No I was discovering the wrong rules! An errant EndProg statement was keeping the compiler from checking the complete code.
* Last updated by: Anton on 7/6/2015 @ 5:33 AM *