GPI – General purpose inputs
Table of Contents
The GPI block reads the value of the General Purpose Inputs (GPI).
Simulink block
Signal specification
The output signal returns the value of one GPI pin.
![](https://imperix.com/doc/wp-content/uploads/2024/02/image-38.png)
Parameters
Device ID
selects which B-Box/B-Board to address when used in a multi-device configuration.GPI bit
selects one pin to read.Show simulation input port
defines if the simulation input is displayed or not.
![General purpose inputs Simulink dialog parameters](https://cdn.imperix.com/doc/wp-content/uploads/2021/04/image-20200910-093252.png)
PLECS block
Signal specification
The output signal returns the value of one GPI pin.
![General purpose inputs PLECS block](https://cdn.imperix.com/doc/wp-content/uploads/2021/04/blockset-1-3.png)
Parameters
Device ID
selects which B-Box/B-Board to address when used in a multi-device configuration.GPI pin(s)
(vectorizable) selection the GPI pin(s) to read. It can be a single value or a vector.Simulation input port
defines if the target inport is displayed or not. This parameter is only used in simulation.
![General purpose inputs PLECS dialog parameters](https://cdn.imperix.com/doc/wp-content/uploads/2021/04/image-20200910-084754.png)