controltheorylib.controlsystem.ControlBlock

ControlBlock = <class 'controltheorylib.controlsystem.ControlBlock'>[source]

A configurable block for control system diagrams.

This class represents various types of blocks used in control system diagrams, including transfer function blocks, summing junctions, and input blocks. Each block can have multiple input and output ports with customizable properties.

Parameters:
  • name (str) – Unique identifier for the block. If empty, an automatic name is generated.

  • block_type (str) – Type of block to create. Supported types: - “input”: Input signal block - “transfer_function”: Transfer function block (rectangular) - “summing_junction”: Summing junction block (circular)

  • position (np.ndarray or Sequence[float]) – Position coordinates for the block center.

  • params (dict, optional) – Configuration parameters for the block. See Notes for details.