Timeframes (By Condition)
This layer converts a table into a set of frames.
Parameters
Name | Default | Meaning |
---|---|---|
condition | An expression to be matched | |
inside | inside | The name for times where the expression is true |
outside | The name for times where the expression is false |
Description
When specifying a condition, this layer searches for times where the condition is valid or not.
If the 'inside' parameter is given but not the 'outside' parameter, the resulting frameset will contain only those times where the condition is true.
If the 'outside' parameter is given as well, the resulting frames will be for those where the condition is true or false. Each frame will have a 'name' attribute with either the inside or outside name.
Example
{ "type": "timeframes", "condition": "{Machine.Running}=1", "inside": "Running", "outside": "Stopped" }
This will search through a table of data, giving you a set of frames that have the name 'Running' when the machine was running, and 'Stopped' when the machine was stopped.