Main Content

使用量化器和饱和sldem块o_boiler

This example shows how the Quantizer and Saturation blocks are used in the model ex_sldemo_boiler. The ADC subsystem digitizes the input analog voltage by:

  • Multiplying the analog voltage by 256/5 with the Gain block

  • Rounding the value to integer floor with the Quantizer block

  • Limiting the output to a maximum of 255 (the largest unsigned 8-bit integer value) with the Saturation block