Source code for pySimBlocks.gui.blocks.interfaces.external_input

# ******************************************************************************
#                                  pySimBlocks
#                     Copyright (c) 2026 Université de Lille & INRIA
# ******************************************************************************
#  This program is free software: you can redistribute it and/or modify it
#  under the terms of the GNU Lesser General Public License as published by
#  the Free Software Foundation, either version 3 of the License, or (at your
#  option) any later version.
#
#  This program is distributed in the hope that it will be useful, but WITHOUT
#  ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
#  FITNESS FOR A PARTICULAR PURPOSE.  See the GNU Lesser General Public License
#  for more details.
#
#  You should have received a copy of the GNU Lesser General Public License
#  along with this program.  If not, see <https://www.gnu.org/licenses/>.
# ******************************************************************************
#  Authors: see Authors.txt
# ******************************************************************************

from pySimBlocks.gui.blocks.block_meta import BlockMeta
from pySimBlocks.gui.blocks.parameter_meta import ParameterMeta
from pySimBlocks.gui.blocks.port_meta import PortMeta


[docs] class ExternalInputMeta(BlockMeta): """Describe the GUI metadata of the external-input interface block.""" def __init__(self): """Initialize external-input block metadata. Args: None. Raises: None. """ self.name = "ExternalInput" self.category = "interfaces" self.type = "external_input" self.summary = "Pass-through block for external real-time measurements." self.description = ( "Pass-through block intended to inject measurements coming from an\n" "external real-time application (camera, robot sensors, network, etc.)\n" "into a pySimBlocks model.\n\n" "This block does not perform any synchronization. It only enforces the\n" "pySimBlocks signal convention (column vectors of shape (n,1))." ) self.parameters = [ ParameterMeta( name="sample_time", type="float" ) ] self.outputs = [ PortMeta( name="out", display_as="out", shape=["m", 1], description="Model data signal." ) ]