<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Resampling Reference Channel Switch in LabVIEW Electrical Power Toolkit</title>
    <link>https://ni.lithium.com/t5/LabVIEW-Electrical-Power-Toolkit/Resampling-Reference-Channel-Switch/m-p/3886003#M249</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P data-unlink="true"&gt;I'm reviewing the examples that come with the Electrical Power Toolkit (using this whitepaper&amp;nbsp;[link removed; article no longer available] as a reference).&amp;nbsp; There is one section that I'm having trouble understanding.&amp;nbsp; The second loop is responsible for re-sampling the signals, but the reference channel is being chosen in the first loop using logic that looks like the following.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Capture.PNG" style="width: 999px;"&gt;&lt;img src="https://ip1.i.lithium.com/c9a53c03c8767992b9faad7364fb4d492fbcc9fe/68747470733a2f2f6e692e6c69746869756d2e636f6d2f74352f696d6167652f736572766572706167652f696d6167652d69642f32343132333869363834333241313435373546414237422f696d6167652d73697a652f6c617267653f763d76322670783d393939" role="button" title="Capture.PNG" alt="Capture.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;From what I can tell it tracks the maximum amplitude from all input channels and re-selects the reference channel if the selected reference goes outside some bounds.&amp;nbsp; It also resets the tracked max amplitude every 10,000 calls.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I haven't been able to figure out what the purpose of this VI is.&amp;nbsp; Why do we need to dynamically re-select the re-sampling reference channel if the current reference goes outside some bounds?&amp;nbsp; Why can't we just use the first voltage channel?&amp;nbsp; I haven't found anywhere that describes the problem that this VI is solving.&amp;nbsp; Can anyone provide some insight?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 18 Feb 2026 20:35:18 GMT</pubDate>
    <dc:creator>mbremer</dc:creator>
    <dc:date>2026-02-18T20:35:18Z</dc:date>
    <item>
      <title>Resampling Reference Channel Switch</title>
      <link>https://ni.lithium.com/t5/LabVIEW-Electrical-Power-Toolkit/Resampling-Reference-Channel-Switch/m-p/3886003#M249</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P data-unlink="true"&gt;I'm reviewing the examples that come with the Electrical Power Toolkit (using this whitepaper&amp;nbsp;[link removed; article no longer available] as a reference).&amp;nbsp; There is one section that I'm having trouble understanding.&amp;nbsp; The second loop is responsible for re-sampling the signals, but the reference channel is being chosen in the first loop using logic that looks like the following.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Capture.PNG" style="width: 999px;"&gt;&lt;img src="https://ip1.i.lithium.com/c9a53c03c8767992b9faad7364fb4d492fbcc9fe/68747470733a2f2f6e692e6c69746869756d2e636f6d2f74352f696d6167652f736572766572706167652f696d6167652d69642f32343132333869363834333241313435373546414237422f696d6167652d73697a652f6c617267653f763d76322670783d393939" role="button" title="Capture.PNG" alt="Capture.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;From what I can tell it tracks the maximum amplitude from all input channels and re-selects the reference channel if the selected reference goes outside some bounds.&amp;nbsp; It also resets the tracked max amplitude every 10,000 calls.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I haven't been able to figure out what the purpose of this VI is.&amp;nbsp; Why do we need to dynamically re-select the re-sampling reference channel if the current reference goes outside some bounds?&amp;nbsp; Why can't we just use the first voltage channel?&amp;nbsp; I haven't found anywhere that describes the problem that this VI is solving.&amp;nbsp; Can anyone provide some insight?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 18 Feb 2026 20:35:18 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW-Electrical-Power-Toolkit/Resampling-Reference-Channel-Switch/m-p/3886003#M249</guid>
      <dc:creator>mbremer</dc:creator>
      <dc:date>2026-02-18T20:35:18Z</dc:date>
    </item>
    <item>
      <title>Re: Resampling Reference Channel Switch</title>
      <link>https://ni.lithium.com/t5/LabVIEW-Electrical-Power-Toolkit/Resampling-Reference-Channel-Switch/m-p/3886102#M250</link>
      <description>&lt;P&gt;The resampling vi resamples the signals based on the zero crossing positions calculated from the signal of the reference channel. If the signal of the reference channel become too weak, the calculated zero crossings may not be accurate, which will further influence the resampling results.&lt;/P&gt;
&lt;P&gt;The Reference Channel Switch vi is used for ensuring the reference signal to be valid enough for zero crossing calculation.&lt;/P&gt;</description>
      <pubDate>Fri, 25 Jan 2019 03:04:40 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW-Electrical-Power-Toolkit/Resampling-Reference-Channel-Switch/m-p/3886102#M250</guid>
      <dc:creator>Yifan.Liu</dc:creator>
      <dc:date>2019-01-25T03:04:40Z</dc:date>
    </item>
    <item>
      <title>Re: Resampling Reference Channel Switch</title>
      <link>https://ni.lithium.com/t5/LabVIEW-Electrical-Power-Toolkit/Resampling-Reference-Channel-Switch/m-p/3886522#M251</link>
      <description>&lt;P&gt;Ahh, that makes sense.&amp;nbsp; Thanks!&lt;/P&gt;</description>
      <pubDate>Fri, 25 Jan 2019 21:05:38 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW-Electrical-Power-Toolkit/Resampling-Reference-Channel-Switch/m-p/3886522#M251</guid>
      <dc:creator>mbremer</dc:creator>
      <dc:date>2019-01-25T21:05:38Z</dc:date>
    </item>
  </channel>
</rss>

