Nube iO - Rubix Wires: Switch Nodes

Rubix Wires: Switch Nodes


This article describes the Rubix Wires nodes that are in the Switch category.

Switch

The `Switch` category contains nodes that are used to direct the flow of data.  They can be though of like train track switches, controlling which track the train (data) will flow down.  

Bool-Switch

This node takes two boolean input values (`inTrue` and `inFalse`), and outputs one of the two, based on the `switch` input boolean value.

Inputs

  1. switch - Boolean value of the switch.
  2. [inTrue] - Boolean `output` value if `switch` is true.
  3. [inFalse] - Boolean `output` value if `switch` is false.

Outputs

  1. output - Boolean output value, either `inTrue` value or `inFalse` value, based on the `switch` input boolean value.

Settings

  1. Name - Name of the node.
  2. True Value - Boolean `output` value if `switch` is `true`.  Fallback from wired input value.
  3. False Value - Boolean `output` value if `switch` is `false`.  Fallback from wired input value.

Operation

Boolean 'switch' passes corresponding Boolean input to 'output'.  If 'switch' is 'true', Boolean 'inTrue' value will be passed to 'output', If 'switch' is 'false', Boolean 'inFalse' value will be passed to 'output'.  'inTrue' and 'inFalse' values can be set in settings.

Num-Switch

This node takes two numeric input values (`inTrue` and `inFalse`), and outputs one of the two, based on the `switch` input boolean value.

Inputs

  1. switch - Boolean value of the switch.
  2. [inTrue] - Numeric `output` value if `switch` is `true`.
  3. [inFalse] - Numeric `output` value if `switch` is `false`.

Outputs

output - Numeric output value, either `inTrue` value or `inFalse` value, based on the `switch` input boolean value.

Settings

  1. Name - Name of the node.
  2. True Value - Numeric `output` value if `switch` is `true`.  Fallback from wired input value.
  3. False Value - Numeric `output` value if `switch` is `false`.  Fallback from wired input value.

Operation

Boolean 'switch' passes corresponding Numeric input to 'output'.  If 'switch' is 'true', Numeric 'inTrue' value will be passed to 'output', If 'switch' is 'false', Numeric 'inFalse' value will be passed to 'output'.  'inTrue' and 'inFalse' values can be set in settings.

String-Switch

This node takes two string input values (`inTrue` and `inFalse`), and outputs one of the two, based on the `switch` input boolean value.

Inputs

  1. switch - Boolean value of the switch.
  2. [inTrue] - String `output` value if `switch` is true.
  3. [inFalse] - String `output` value if `switch` is false.

Outputs

  1. output - String output value, either `inTrue` value or `inFalse` value, based on the `switch` input boolean value.

Settings

  1. Name - Name of the node.
  2. True Value - String `output` value if `switch` is `true`.  Fallback from wired input value.
  3. False Value - String `output` value if `switch` is `false`.  Fallback from wired input value.

Operation

Boolean 'switch' passes corresponding String input to 'output'.  If 'switch' is 'true', String 'inTrue' value will be passed to 'output', If 'switch' is 'false', String 'inFalse' value will be passed to 'output'.  'inTrue' and 'inFalse' values can be set in settings.

Bool-Select

Select nodes output one (selected) input out of the multiple input values based on the numeric `select` input.  This node outputs boolean values.

Inputs

  1. select - Numeric select value.  `output` will match the `in #` input that corresponds to the `select` value.
  2. [in 1] - Boolean input (index) 1.
  3. [in 2] - Boolean input (index) 2.
  4. [in x] - Boolean input (index) x.   Where x is any subsequent input set from the node settings.

Outputs

  1. output - Boolean output value.  `output` will match the `in #` input that corresponds to the `select` value.

Settings

  1. Name - Name of the node.
  2. Inputs count - Configures the number of inputs.
  3. in 1/in 2/in x...- Input values can be set from settings as a fallback from wired input values.

Operation

Numeric integer 'select' passes corresponding Boolean input to 'output'.  If 'select' value is `2`, 'in 2' will be passed to 'output' (likewise for other integer 'select' values).  If the 'select' value does not have a corresponding 'in #' value, 'output' value will be 'null'.  The number of inputs and their values can be modified from settings.

Num-Select

Select nodes output one (selected) input out of the multiple input values based on the numeric `select` input.  This node outputs numeric values.

Inputs

  1. select - Numeric select value.  `output` will match the `in #` input that corresponds to the `select` value.
  2. [in 1] - Numeric input (index) 1.
  3. [in 2] - Numeric input (index) 2.
  4. [in x] - Numeric input (index) x.   Where x is any subsequent input set from the node settings.

Outputs

  1. output - Numeric output value.  `output` will match the `in #` input that corresponds to the `select` value.

Settings

  1. Name - Name of the node.
  2. Inputs count - Configures the number of inputs.
  3. in 1/in 2/in x...- Input values can be set from settings as a fallback from wired input values.

Operation

Numeric integer 'select' passes corresponding Numeric input to 'output'. If 'select' is 2, 'in 2' will be passed to 'output' (likewise for other integer 'select' values). If the 'select' value does not have a corresponding 'in #' value, 'output' value will be 'null'. The number of inputs and their values can be modified from settings.

String-Select

Select nodes output one (selected) input out of the multiple input values based on the numeric `select` input.  This node outputs string values.

Inputs

  1. select - Numeric select value.  `output` will match the `in #` input that corresponds to the `select` value.
  2. [in 1] - String input (index) 1.
  3. [in 2] - String input (index) 2.
  4. [in x] - String input (index) x.   Where x is any subsequent input set from the node settings.

Outputs

  1. output - String output value.  `output` will match the `in #` input that corresponds to the `select` value.

Settings

  1. Name - Name of the node.
  2. Inputs count - Configures the number of inputs.
  3. in 1/in 2/in x...- Input values can be set from settings as a fallback from wired input values.

Operation

Numeric integer 'select' passes corresponding String input to 'output'.  If 'select' is 2, 'in 2' will be passed to 'output' (likewise for other integer 'select' values).  If the 'select' value does not have a corresponding 'in #' value, 'output' value will be 'null'.  The number of inputs and their values can be modified from settings.


Bool-Output-Select

Output-Select nodes output a single input value to a selected output based on the numeric `select` input.  This node outputs boolean values.

Inputs

  1. select - Numeric select value.  The `out #` that corresponds to the numeric `select` value will be passed the boolean`input` value
  2. input - Boolean input to be passed to selected `out #`.

Outputs

  1. out 1 - Boolean output (index) 1.
  2. out 2 - Boolean output (index) 2.
  3. out x - Boolean output (index) x. Where x is any subsequent outputs.

Settings

  1. Name - Name of the node.
  2. Null Non-Selected Outputs - Toggle switch to enable the output of `null` on outputs that aren't selected.
  3. Outputs count - Configures  the number of outputs.

Operation

Numeric integer 'select' passes boolean 'input' to the corresponding boolean 'out #'.  If 'select' is 2, 'input' will be passed to 'out 2' (likewise for other integer 'select' values).  If the 'select' value does not have a corresponding 'out #' value, no values will be passed.  The number of outputs can be modified from settings.

Num-Output-Select

Output-Select nodes output a single input value to a selected output based on the numeric `select` input.  This node outputs numeric values.

Inputs

  1. select - Numeric select value.  The `out #` that corresponds to the numeric `select` value will be passed the numeric`input` value
  2. input - Numeric input to be sent to selected `out #`.

Outputs

  1. out 1 - Numeric output (index) 1.
  2. out 2 - Numeric output (index) 2.
  3. out x - Numeric output (index) x. Where x is any subsequent outputs.

Settings

  1. Name - Name of the node.
  2. Null Non-Selected Outputs - Toggle switch to enable the output of `null` on outputs that aren't selected.
  3. Outputs count - Configures  the number of outputs.

Operation

Numeric integer 'select' passes numeric 'input' to the corresponding numeric 'out #'. If 'select' is 2, 'input' will be passed to 'out 2' (likewise for other integer 'select' values). If the 'select' value does not have a corresponding 'out #' value, no values will be passed. The number of outputs can be modified from settings.

String-Output-Select

Output-Select nodes output a single input value to a selected output based on the numeric `select` input.  This node outputs string values.

Inputs

  1. select - Numeric select value.  The `out #` that corresponds to the numeric `select` value will be passed the string`input` value
  2. input - String input to be sent to selected `out #`.

Outputs

  1. out 1 - String output (index) 1.
  2. out 2 - String output (index) 2.
  3. out x - String output (index) x. Where x is any subsequent outputs.

Settings

  1. Name - Name of the node.
  2. Null Non-Selected Outputs - Toggle switch to enable the output of `null` on outputs that aren't selected.
  3. Outputs count - Configures  the number of outputs.

Operation

Numeric integer 'select' passes string 'input' to the corresponding string 'out #'. If 'select' is 2, 'input' will be passed to 'out 2' (likewise for other integer 'select' values). If the 'select' value does not have a corresponding 'out #' value, no values will be passed. The number of outputs can be modified from settings.



    • Related Articles

    • Rubix Wires: LoRa Sensor Nodes

      This article describes the Rubix Wires nodes that are in the LoRa category.  Preparation Rubix Wires: Getting Started Guide Rubix Platform: Adding and Editing Wireless LoRa Droplet Sensors Rubix Platform: Adding and Editing Wireless Microedge Sensors ...
    • Rubix Wires: Connection Nodes

      This article describes the Rubix Wires nodes that are in the Connection category. Connection The Connection category contains nodes that can send and receive data values without the need for wire link connections. Link-Transmitter-Single This node is ...
    • Rubix Wires: Dashboard Nodes

      This article describes the Rubix Wires nodes that are in the Dashboard category. Dashboard The `Dashboard` category contains nodes that interact with the Wires Dashboard.  The Wires Dashboard provides a way to interact with the nodes/flows built in ...
    • Rubix Wires: Latch Nodes

      This article describes the Rubix Wires nodes that are in the Latch category. Latch The `Latch` category contains value latching functionality for each data type.  Latch nodes will maintain an output value between trigger events. Any-Latch This node ...
    • Rubix Wires: JSON Nodes

      The `JSON` category contains nodes that are used to parse and manipulate data to and from standardised JSON objects and JSON strings. JSON JSON-Filter-Multiple This node extracts properties/values from JSON data by string key/identifier.  A node ...