WOLFRAM SYSTEM MODELER
    AD_DA_conversionConversion circuit  | 
     | 
SystemModel["Modelica.Electrical.Analog.Examples.AD_DA_conversion"]

This information is part of the Modelica Standard Library maintained by the Modelica Association.
The simple converter circuit converts an analog sine signal into a N-bit (by default a 4 bit) logic signal, which is converted backward into an analog signal.
Compare the input voltage (aD_Converter.p.v) with the output voltage (dA_Converter.p.v). By changing N the influence of the digital signal width can be studied. Otherwise the trigger frequency pulse.period can be changed to see its influence.
| N | 
         Value: 7 Type: Integer Description: Digital signal width  | 
    
|---|
| aD_Converter | 
         Type: AD_Converter Description: Simple n-bit analog to digital converter  | 
    |
|---|---|---|
| pulse | 
         Type: Pulse Description: Digital Pulse Source  | 
    |
| dA_Converter | 
         Type: DA_Converter Description: Simple digital to analog converter  | 
    |
| ground | 
         Type: Ground Description: Ground node  | 
    |
| sineVoltage | 
         Type: SineVoltage Description: Sine voltage source  | 
    |
| resistor | 
         Type: Resistor Description: Ideal linear electrical resistor  |