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
| Type | Name | Default | Description |
|---|---|---|---|
| Integer | bufdepth | 50 |
Components
| Type | Name | Default | Description |
|---|---|---|---|
| Modelica.Electrical.Analog.Basic.Ground | ground | ||
| Modelica.Electrical.Analog.Sources.SineVoltage | sineVoltage | ||
| ADCs.AdcSingleBufferedInteger | adcSingleBufferedInteger | ||
| Modelica.Blocks.Sources.BooleanStep | startADC |