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

<description>
<![CDATA[


## Diode Clamping Experiment

An AC signal's mean can be shifted by adding a DC voltage, using a diode.

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

Make the connections as per the schematic:
- WG monitored by A1 and connected to a Capacitor
- Other end of the Capacitor conencted to PV1 and monitored by A2
- A load resistor also may be connected

Change PV1 by touching and observe that the output signal shown on A2 is shifting with it.

---
]]>	
</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="6">
    <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>
