<xml xmlns="https://developers.google.com/blockly/xml"> 
<description>	
<![CDATA[
##  Separating AC and DC

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

- Make the connections as shown in the figure
- view the waveforms
 
If the voltage is not changing with time, it is pure DC. If it is changing with time, it has an AC component. if the average voltage is zero, it is pure DC.
 
A square wave swinging between 0 and 5V is a 2.5 DC plus an AC changing
from -2.5V to +2.5V. The capacitor allows the DC component to pass through and blocks
the DC.

---
]]>
</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_frequency" id="gpCl(26UF/yWoc^EiRo{" x="0" y="10">
    <field name="CHANNEL">SQ1</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="zZ;fAGE}L7O9pm]F*P;,">
        <field name="MODE">WHILE</field>
        <value name="BOOL">
          <block type="logic_boolean" id="t5^j!$/?f%O=CvtO_$Fz">
            <field name="BOOL">TRUE</field>
          </block>
        </value>
        <statement name="DO">
          <block type="capture_plot" id="M]okFzx#vu^39@BcUlYL">
            <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>
</xml>
