modelAdcSingleChannelInteger

Analog digital converter example

Extends from Modelica.Icons.Example (Icon for runnable examples).

Information

This example demonstrates the operation of the analog digital converter model with circular buffer.

Inspect the circular buffer in the adcSingleIntegerBus. Each time the callback function (cb) is triggered, the buffer can be evaluated.

Parameters

TypeNameDefaultDescription
Integerbufdepth50

Components

TypeNameDefaultDescription
Modelica.Electrical.Analog.Basic.Groundground
Modelica.Electrical.Analog.Sources.SineVoltagesineVoltage
ADCs.AdcSingleBufferedIntegeradcSingleBufferedInteger
Modelica.Blocks.Sources.BooleanStepstartADC