<xml xmlns="https://developers.google.com/blockly/xml">
      <variables>
        <variable id="xRj$Iw~AK|ZlHEf8)aLv">timestamps</variable>
        <variable id="}+DpkjOSXUlcS,{cd*AR">data1</variable>
        <variable id="li(t_Ci/@ZZsy|IBF;j!">data2</variable>
      </variables>
      <block type="scope_trigger" id="8GES]Bkbq,gwF-t7k9_!" x="43" y="62">
        <field name="STATE">TRUE</field>
        <field name="CHANNEL">0</field>
        <field name="LEVEL">512</field>
        <next>
          <block type="controls_repeat_ext" id="4aOxWA:WoJ$C7Ea{Kh17">
            <value name="TIMES">
              <shadow type="math_number" id="#v`5/~4[wv/u}eUe-V1t">
                <field name="NUM">100</field>
              </shadow>
            </value>
            <statement name="DO">
              <block type="capture_plot" id="1dT6]O=5P`T%Ot:/QEZ;">
                <field name="CHANNEL">A1</field>
                <field name="TIMESTAMPS" id="xRj$Iw~AK|ZlHEf8)aLv">timestamps</field>
                <field name="DATA1" id="}+DpkjOSXUlcS,{cd*AR">data1</field>
                <field name="DATA2" id="li(t_Ci/@ZZsy|IBF;j!">data2</field>
                <next>
                  <block type="cs_sticker" id="J:nNCj!r5D3*tMM~G9~#">
                    <value name="LABEL">
                      <shadow type="text" id="==8Ws-DD|`-ucEy9L}ym">
                        <field name="TEXT">Phase Difference</field>
                      </shadow>
                    </value>
                    <value name="TEXT">
                      <shadow type="text" id="}d%R=U]BKGLb]#[mpoke">
                        <field name="TEXT">Reading</field>
                      </shadow>
                      <block type="sine_fit_two_arrays" id="fZeRm^8:_K|jQ$xo$w$V">
                        <field name="PARAMETER">2</field>
                        <value name="X">
                          <block type="variables_get" id="0#18ra4XPq9y-{dzTA-5">
                            <field name="VAR" id="xRj$Iw~AK|ZlHEf8)aLv">timestamps</field>
                          </block>
                        </value>
                        <value name="Y">
                          <block type="variables_get" id="Ncy/Tt;gI5aL!m.pnAYx">
                            <field name="VAR" id="}+DpkjOSXUlcS,{cd*AR">data1</field>
                          </block>
                        </value>
                        <value name="X2">
                          <block type="variables_get" id="]0:QERg`BURi!u1?SEWz">
                            <field name="VAR" id="xRj$Iw~AK|ZlHEf8)aLv">timestamps</field>
                          </block>
                        </value>
                        <value name="Y2">
                          <block type="variables_get" id="/7~-)rtG`qeyN?wS4%oy">
                            <field name="VAR" id="li(t_Ci/@ZZsy|IBF;j!">data2</field>
                          </block>
                        </value>
                      </block>
                    </value>
                  </block>
                </next>
              </block>
            </statement>
          </block>
        </next>
      </block>
    <description><![CDATA[
    ## Introduction to array analysis
    
    This program fetches two simultaneous traces 
    from channels A1,A2 and plots them.
    
    It then uses the analysis block to fetch the phase 
    difference between the two inputs, under the assumption
    that both are sinusoidal in nature. ]]>
    </description>
</xml>
