To create a BQL Expression component
Design your expression. This step answers the question, “What does Expr need to do?”
For example, say you wish to create a logic component with four Boolean inputs and two Boolean outputs. One output is an AND function on all inputs, the other output is an OR function on just two of the inputs.
Drag an Expr from the kitControl palette onto your wire sheet and give it a name.
Using the slot sheet view of the component, add four Boolean inputs and two Boolean outputs to the Expr and give them appropriate and unique names.
When adding input slots, set (check) the Execute On Change flag for each one.
Using the property sheet view, configure any execution delay.
The expression will run after this delay, which is useful to throttle rapidly changing properties used as inputs.
Continuing on the property sheet, enter the BQL statements in the Expr field.
All other properties are assumed to be dynamic properties and can be added or removed on the Expr slot sheet.
Click , then the
“Up Level” menu bar icon to return to the parent wire sheet. The new Expr component is visible, but without any “pinned” slots
for inputs and outputs.
Although optional, you can pin slots before linking, by right-clicking the component and selecting
. This can speed up linking, as otherwise the popup Link dialog appears if linking to unpinned slots. You can also use the right-click option to change the top-to-bottom positioning of slots.
Using the wire sheet view, make links to the slots and test your logic.
The figure above shows all slots of this example Expr component linked.
Copyright © 2000-2014 Tridium Inc. All rights reserved.