Driver Details

Logic Helper

By: RTI
Updated: July 2, 2021
Version: 1.1

Description:

This driver combine logic based variables from one or multiple drivers in a simple way to create variables with a little more demanding logic. Often times the visibility or reversed state of a button needs to happen when 'this' AND/OR 'that' happens -- that is what this driver is for.

Version History:

Version 1.1: fixes an issue that can stop the OR values from being refreshed.

Logic Helper
XP Processor

This driver doesn't control any external devices, it lets you combine logic based variables in a simple way to create buttons with a little more demanding logic. Often times the visibility or reversed state of a button needs to happen when 'this' AND/OR 'that' happen -- that is what this driver is for.

Version History

1.0 The original release of the driver
1.1 Fixes issues preventing the or variables from refreshing

General Description
The driver has up to 16 boolean input groups. Boolean inputs can be any of the variables in your file that are normally used to make buttons reversed, visible or enabled. The inputs can come from any driver in the file and are monitored by this driver to create outputs that reflect the combined state of all the inputs.

Driver configuration
Boolean input groups can be named for easier identification in the variable window and on the buttons themselves. When the driver is added you can begin selecting inputs to the first group. The pull down menu will allow you to choose among the boolean variables available in your file. Once an input is added to a group of booleans the next group will become available to name and configure

Driver commands
The driver has no commands, it is monitoring the state of all the input variables and changes the outputs immediately when they change. There is no need to 'trigger' that recalculation.

Driver Variables
Every set of boolean inputs has four logical output variables:

And -- true when every boolean input is true
Nand -- the opposite of the And. It will be false once all the inputs are true
Or -- this will go true when any of the inputs is true
Nor -- the opposite of the Or, it is true until one of the inputs is true

These variables are all active simultaneously, there is no need to enter any operations or configure any modes, just select the inputs and use the appropriate output.

Driver Events
The driver triggers events when any of the output logic variables change. This works not only for outputs based on multiple inputs but it can be used to trigger events on any single boolean variable, even if the original driver did not provide an event. If a boolean is used as the only input in one of the boolean groups then any change in that variable will cause a change in it's outputs.

Complex Logic
The inputs to a boolean group can be any boolean variable in the file, including the variables from the Logic Helper Driver itself. You can combine the logic outputs from two boolean groups to allow a 32 input logic output. In addition you can build a group of or'ed inputs and combine that with a separate group of and'ed inputs, even inverting one of them through its own group of inputs if desired.