Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
ardiextra:calc [2025/02/17 22:47]
optrix
ardiextra:calc [2025/02/18 03:26] (current)
optrix
Line 26: Line 26:
 {Product Height Sensor.Distance} * {Product Width Sensor.Distance} {Product Height Sensor.Distance} * {Product Width Sensor.Distance}
 </code> </code>
 +
 +===Converting to Discrete Values===
 +
  
 If you are looking for //discrete// values, you can use Python **lambda** notation. If we wanted to check if machine is running based on a speed of more than 20 meters-per-minute... If you are looking for //discrete// values, you can use Python **lambda** notation. If we wanted to check if machine is running based on a speed of more than 20 meters-per-minute...
Line 46: Line 49:
  
 Where possible, we suggest calculating these figures in your control system, historian or via a system like ARDI's **ModelHost** package, where it can be recorded back into your data backend. Where possible, we suggest calculating these figures in your control system, historian or via a system like ARDI's **ModelHost** package, where it can be recorded back into your data backend.
 +
 +===Discrete Conversion Notes===
 +
 +If using Calculate to convert data from analogue to discrete, you might experience 'drift' in the exact times when your state transitions occur. If requesting data at 5s resolution, your on/off times might drift by as much as 10s. 
 +
 +If you need to capture very accurate on/off times for utilisation purposes, we suggest performing this calculation in your backend, or using **ModelHost**.