modelAdcSingleBufferedInteger
Single channel analog digital converter with circular buffer and integer output
Extends from OpenBLDC.Icons.Sensor (Sensor icon).
Parameters
| Type | Name | Default | Description |
|---|---|---|---|
| Real | VMax | 3 | Maximum voltage |
| Integer | Resolution | 4096 | ADC resolution |
| Integer | BufDepth | 50 | Buffer depth |
| Modelica.SIunits.Time | Ts | 1e-6 | Sample rate |
Connectors
| Type | Name | Default | Description |
|---|---|---|---|
| Modelica.Electrical.Analog.Interfaces.PositivePin | pin_p | ||
| Modelica.Electrical.Analog.Interfaces.NegativePin | pin_n | ||
| Interfaces.AdcBusses.AdcSingleIntegerBusConnectorOut | adcSingleIntegerBus |
Components
| Type | Name | Default | Description |
|---|---|---|---|
| Modelica.Electrical.Analog.Sensors.VoltageSensor | voltageSensor | ||
| Modelica.Blocks.Nonlinear.Limiter | limiter | ||
| Modelica.Blocks.Math.Gain | gain | ||
| Modelica.Blocks.Math.RealToInteger | sampledValue | Sampled value in integer | |
| Modelica.Blocks.Discrete.TriggeredSampler | triggeredSampler | ||
| Blocks.PulseWidthVar | pulseWidthVar | TODO: replace by a block that generates samples only | |
| Modelica.Blocks.Sources.Constant | period | Sample time | |
| CircularBufferInteger | circularBufferInteger | ||
| Modelica.Blocks.Logical.Not | not1 |