Skip to content

inject

Description

The inject block is used to manually trigger a short logical pulse from the project user interface. When the block is clicked, it sends the value true to its only output and then immediately sends the value false.

The block has no inputs and no configuration parameters. Its typical use is manual triggering of other parts of the logic during configuration, diagnostics, or testing.

Configuration parameters

The inject block has no configuration parameters.

Input handling

The block has no inputs, so it does not require the use of inputs labeled with the tag block.

The only supported action is clicking the block in the project user interface. Each such click causes:

  • sending the value true to the output
  • immediately after that, sending the value false to the same output
  • incrementing the click counter visible in the block description

After the block is created, its output is set to false so that the initial state is unambiguous.

Block outputs

The block has one output.

The output produces a logical pulse consisting of two consecutive changes:

  • first true
  • then false

Each click generates a new pulse of the same type. This means the block output acts as a momentary trigger rather than as a persistent state.

The description visible below the block shows the number of clicks in the following form:

  • clicks: 0 after the block is created
  • clicks: 1 after the first click
  • clicks: 2 after the second click

Errors visible to the user

The inject block does not define its own configuration errors or errors related to a missing input, because it has no configuration parameters and does not require any input connections.

Examples

  • Clicking the block once sends a short sequence to the output: true, followed immediately by false.
  • Two consecutive clicks generate two independent pulses, and the block description changes to clicks: 2.
  • If the block is connected to an element that reacts to a rising edge, each click can trigger one action in that element.