<xml xmlns="https://developers.google.com/blockly/xml">

<description>
<![CDATA[
# Diode Clipping

Make the connections as per the schematic:

<img class="ui image fluid" src='data:image/svg+xml;base64,[encoded data, 13952 characters]'/>

When the signal exceeds PV1+knee voltage of the diode, it flows into PV1, and the voltage is clipped to
a maximum of PV1+knee voltage.

For the 4148 diodes, the knee voltage is typically 0.6 V . So if you set PV1 as 1V , and apply a sine wave,
the sine wave will be perfect below 1.6V, but the portion above it will be flattened at 1.6V

Change PV1 and observe that the output signal shown on A2 is getting clipped accordingly.

---


]]>	
</description>
  <variables>
    <variable id="J-+@|mBt7ruFM6)FhVT-">timestamps</variable>
    <variable id="NsNgyd_8Jh5$%CRlizEp">data1</variable>
    <variable id="lJEBaS2!pcJs,/7Ddo-S">data2</variable>
  </variables>
  <block type="set_voltage_slider" id=")w{yum|V:%`v,_Aw_Z~P" x="0" y="0">
    <field name="CHANNEL">PV1</field>
    <next>
      <block type="set_frequency" id="gpCl(26UF/yWoc^EiRo{">
        <field name="CHANNEL">WG</field>
        <value name="FREQUENCY">
          <block type="math_number" id="CJ%,Y3X@l=g@ni$~/f7h">
            <field name="NUM">1000</field>
          </block>
        </value>
        <next>
          <block type="controls_whileUntil" id="$EIOH2tW_j94UZyptf,r">
            <field name="MODE">WHILE</field>
            <value name="BOOL">
              <block type="logic_boolean" id="3[`(8@oBA9hS4kPt`[q9">
                <field name="BOOL">TRUE</field>
              </block>
            </value>
            <statement name="DO">
              <block type="capture_plot" id="VWH06?[5zob7L9WJ*oGP">
                <field name="CHANNEL">A1</field>
                <field name="TIMESTAMPS" id="J-+@|mBt7ruFM6)FhVT-">timestamps</field>
                <field name="DATA1" id="NsNgyd_8Jh5$%CRlizEp">data1</field>
                <field name="DATA2" id="lJEBaS2!pcJs,/7Ddo-S">data2</field>
              </block>
            </statement>
          </block>
        </next>
      </block>
    </next>
  </block>
</xml>
