Digital Input

Description of the Digital Input source component in Schematic editor, which outputs a value from a selected digital input.

Component icon

Figure 1. Digital input icon

Description

The digital input source component outputs the value that is collected from the HIL's digital input that is selected in the property Digital input index.

Ports

  • Output (out)
    • Signal collected from the digital input and output by the component.
      • Supported types: uint, int, and real
        • The output type is determined by the Signal type property.
      • Vector support: no

Properties

  • Digital Input Index
    • Select the digital input from where the component will receive the signal.
  • Invert signal
    • Select if the signal output by the component will have its level inverted or not. That is, if this property is set to True, the output signal will be 1 when the digital input assigned to the component is 0 and vice-versa.
  • Signal type
    • Select the type of the output signal. Supported signal types are real, int, and uint.
  • Execution rate
    • Type in the desired signal processing execution rate. This value must be compatible with other signal processing components of the same circuit: the value must be a multiple of the fastest execution rate in the circuit. There can be up to four different execution rates, but they must all be multiple of the basic simulation timestep. To specify the execution rate, you can use either decimal (e.g. 0.001) or exponential values (e.g. 1e-3) in seconds. Alternatively, you can type in ‘inherit’ in which case the component will be assigned execution rate based on the execution rate of the components it is receiving input from.