Filter
Deletes frames and table rows based on filter conditions.
Parameters
| Name | Default | Meaning |
|---|---|---|
| keep | Remove all timeframes or rows unless this condition is true | |
| remove | Remove all timeframes or rows where this condition is true | |
Description
This layer is generally used to remove time, rows and timeframes that don't match specific conditions - for example, when a machine is stopped.
If you give a keep rule, any items that fail the test are kept and others are discarded. If you give a remove condition, any items that pass the test are removed.
Example
If the frame contains the following table of data…
| Time | Machine.Speed | Machine.Voltage | Machine.Current |
|---|---|---|---|
| 09:00AM | 0 | 0 | 0 |
| 09:10AM | 0 | 240 | 3.2 |
| 09:20AM | 15 | 240 | 1.5 |
| 09:30AM | 18 | 240 | 1.5 |
| 09:30AM | 17 | 240 | 1.5 |
| 09:30AM | 17.5 | 240 | 1.5 |
{ "type": "filter", "keep": "{Machine.Speed} > 0" }
The first two table rows will be removed.