<?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 Re: Difficulty Zeroing Quadrature Distance Encoder without Z Input in LabVIEW</title>
    <link>https://ni.lithium.com/t5/LabVIEW/Difficulty-Zeroing-Quadrature-Distance-Encoder-without-Z-Input/m-p/4252477#M1237451</link>
    <description>&lt;P&gt;Actually a not really fun implementation of OPC comms.&lt;/P&gt;</description>
    <pubDate>Tue, 30 Aug 2022 17:12:07 GMT</pubDate>
    <dc:creator>downerdce</dc:creator>
    <dc:date>2022-08-30T17:12:07Z</dc:date>
    <item>
      <title>Difficulty Zeroing Quadrature Distance Encoder without Z Input</title>
      <link>https://ni.lithium.com/t5/LabVIEW/Difficulty-Zeroing-Quadrature-Distance-Encoder-without-Z-Input/m-p/4252324#M1237373</link>
      <description>&lt;P&gt;I found a similar post on this, the user found the only way to do so was to start and stop the task.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I've tried:&lt;/P&gt;
&lt;P&gt;- adding stop task at end&lt;/P&gt;
&lt;P&gt;- putting case structure around start task&lt;/P&gt;
&lt;P&gt;- putting case structure on start and stop tasks&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In all situations it just keeps incrementing. I wish there was a property on the channel that allowed for reset but I cannot find one for distance count, just edge count.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Any ideas? thank you.&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="lb_1.png" style="width: 999px;"&gt;&lt;img src="https://ip1.i.lithium.com/08df18c1fc50441a2c99268188d8983373f9e82c/68747470733a2f2f6e692e6c69746869756d2e636f6d2f74352f696d6167652f736572766572706167652f696d6167652d69642f33303734333069344439364638433236353142424330362f696d6167652d73697a652f6c617267653f763d76322670783d393939" role="button" title="lb_1.png" alt="lb_1.png" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="lb_2.png" style="width: 999px;"&gt;&lt;img src="https://ip1.i.lithium.com/bcf340d3a013bc4fbabe3b5470611c0792049ad1/68747470733a2f2f6e692e6c69746869756d2e636f6d2f74352f696d6167652f736572766572706167652f696d6167652d69642f33303734333169384533304530333939363633444241312f696d6167652d73697a652f6c617267653f763d76322670783d393939" role="button" title="lb_2.png" alt="lb_2.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 29 Aug 2022 22:51:16 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/Difficulty-Zeroing-Quadrature-Distance-Encoder-without-Z-Input/m-p/4252324#M1237373</guid>
      <dc:creator>downerdce</dc:creator>
      <dc:date>2022-08-29T22:51:16Z</dc:date>
    </item>
    <item>
      <title>Re: Difficulty Zeroing Quadrature Distance Encoder without Z Input</title>
      <link>https://ni.lithium.com/t5/LabVIEW/Difficulty-Zeroing-Quadrature-Distance-Encoder-without-Z-Input/m-p/4252332#M1237376</link>
      <description>&lt;P&gt;Can you describe your problem &amp;amp; desired result in more detail?&amp;nbsp; It'll also be helpful to post actual code, preferably saved back several versions to maybe LabVIEW 2018 or so.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You might be up against a hard limit, one that I was griping about &lt;A href="https://forums.ni.com/t5/Counter-Timer/Counting-Problem-How-to-avoid-data-overwritten/m-p/308297/highlight/true#M3070" target="_blank" rel="noopener"&gt;more than 15 years ago&lt;/A&gt;.&amp;nbsp; And which wasn't changed in subsequent generations of devices.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;While newer devices *do* support count reset in edge-counting mode, encoder position mode still demands a z-index signal that's sync'ed to the encoder's A,B channels in a specific way.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;What DAQ device(s) do you have available to use?&amp;nbsp; What's the purpose and need for the count reset?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;-Kevin P&lt;/P&gt;</description>
      <pubDate>Tue, 30 Aug 2022 01:12:59 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/Difficulty-Zeroing-Quadrature-Distance-Encoder-without-Z-Input/m-p/4252332#M1237376</guid>
      <dc:creator>Kevin_Price</dc:creator>
      <dc:date>2022-08-30T01:12:59Z</dc:date>
    </item>
    <item>
      <title>Re: Difficulty Zeroing Quadrature Distance Encoder without Z Input</title>
      <link>https://ni.lithium.com/t5/LabVIEW/Difficulty-Zeroing-Quadrature-Distance-Encoder-without-Z-Input/m-p/4252362#M1237391</link>
      <description>&lt;P&gt;I can only comment on what I see in the pictures.&lt;BR /&gt;You have set 'z index enable' = 'false'. I think this should be set to 'true'.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;In your image there is a comment about scaling which should not be required.&lt;BR /&gt;I think the value for "distance per &lt;STRONG&gt;pulse&lt;/STRONG&gt;" of 12363 inches is way too large.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 30 Aug 2022 06:34:52 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/Difficulty-Zeroing-Quadrature-Distance-Encoder-without-Z-Input/m-p/4252362#M1237391</guid>
      <dc:creator>UliB</dc:creator>
      <dc:date>2022-08-30T06:34:52Z</dc:date>
    </item>
    <item>
      <title>Re: Difficulty Zeroing Quadrature Distance Encoder without Z Input</title>
      <link>https://ni.lithium.com/t5/LabVIEW/Difficulty-Zeroing-Quadrature-Distance-Encoder-without-Z-Input/m-p/4252379#M1237401</link>
      <description>&lt;P&gt;I agree that there should be a way to trigger the count reset from software, but if there isn't,&amp;nbsp;why not grab the current count and the point you trigger in the software and subtract it from the hardware total.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;0xDEAD&lt;/P&gt;</description>
      <pubDate>Tue, 30 Aug 2022 08:29:00 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/Difficulty-Zeroing-Quadrature-Distance-Encoder-without-Z-Input/m-p/4252379#M1237401</guid>
      <dc:creator>deceased</dc:creator>
      <dc:date>2022-08-30T08:29:00Z</dc:date>
    </item>
    <item>
      <title>Re: Difficulty Zeroing Quadrature Distance Encoder without Z Input</title>
      <link>https://ni.lithium.com/t5/LabVIEW/Difficulty-Zeroing-Quadrature-Distance-Encoder-without-Z-Input/m-p/4252455#M1237443</link>
      <description>&lt;P&gt;Attached is my code (Labview 2019 SP1)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In a previous iteration, I did do a zeroing by subtracting the count.... I am worried about the effectiveness this method, especially if running for large amounts of time, which is why I'm trying to figure out how to stop and restart the task. This seems doable in a contained loop, but I have it 'spread out' a bit in my program because I have a part that syncs up several acquisitions (the flat sequence structure).&lt;/P&gt;</description>
      <pubDate>Tue, 30 Aug 2022 15:30:11 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/Difficulty-Zeroing-Quadrature-Distance-Encoder-without-Z-Input/m-p/4252455#M1237443</guid>
      <dc:creator>downerdce</dc:creator>
      <dc:date>2022-08-30T15:30:11Z</dc:date>
    </item>
    <item>
      <title>Re: Difficulty Zeroing Quadrature Distance Encoder without Z Input</title>
      <link>https://ni.lithium.com/t5/LabVIEW/Difficulty-Zeroing-Quadrature-Distance-Encoder-without-Z-Input/m-p/4252472#M1237448</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://ni.lithium.com/t5/user/viewprofilepage/user-id/611846"&gt;@downerdce&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;I found a similar post on this, the user found the only way to do so was to start and stop the task.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I've tried:&lt;/P&gt;
&lt;P&gt;- adding stop task at end&lt;/P&gt;
&lt;P&gt;- putting case structure around start task&lt;/P&gt;
&lt;P&gt;- putting case structure on start and stop tasks&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In all situations it just keeps incrementing. I wish there was a property on the channel that allowed for reset but I cannot find one for distance count, just edge count.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Any ideas? thank you.&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="lb_1.png" style="width: 999px;"&gt;&lt;img src="https://ip1.i.lithium.com/08df18c1fc50441a2c99268188d8983373f9e82c/68747470733a2f2f6e692e6c69746869756d2e636f6d2f74352f696d6167652f736572766572706167652f696d6167652d69642f33303734333069344439364638433236353142424330362f696d6167652d73697a652f6c617267653f763d76322670783d393939" role="button" title="lb_1.png" alt="lb_1.png" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="lb_2.png" style="width: 999px;"&gt;&lt;img src="https://ip1.i.lithium.com/bcf340d3a013bc4fbabe3b5470611c0792049ad1/68747470733a2f2f6e692e6c69746869756d2e636f6d2f74352f696d6167652f736572766572706167652f696d6167652d69642f33303734333169384533304530333939363633444241312f696d6167652d73697a652f6c617267653f763d76322670783d393939" role="button" title="lb_2.png" alt="lb_2.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;What is that thing crawling up the side of your hugely oversized VI?&lt;/P&gt;</description>
      <pubDate>Tue, 30 Aug 2022 16:45:05 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/Difficulty-Zeroing-Quadrature-Distance-Encoder-without-Z-Input/m-p/4252472#M1237448</guid>
      <dc:creator>billko</dc:creator>
      <dc:date>2022-08-30T16:45:05Z</dc:date>
    </item>
    <item>
      <title>Re: Difficulty Zeroing Quadrature Distance Encoder without Z Input</title>
      <link>https://ni.lithium.com/t5/LabVIEW/Difficulty-Zeroing-Quadrature-Distance-Encoder-without-Z-Input/m-p/4252473#M1237449</link>
      <description>&lt;P&gt;It is a tower housing the eye of sauron.&lt;/P&gt;</description>
      <pubDate>Tue, 30 Aug 2022 16:57:46 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/Difficulty-Zeroing-Quadrature-Distance-Encoder-without-Z-Input/m-p/4252473#M1237449</guid>
      <dc:creator>downerdce</dc:creator>
      <dc:date>2022-08-30T16:57:46Z</dc:date>
    </item>
    <item>
      <title>Re: Difficulty Zeroing Quadrature Distance Encoder without Z Input</title>
      <link>https://ni.lithium.com/t5/LabVIEW/Difficulty-Zeroing-Quadrature-Distance-Encoder-without-Z-Input/m-p/4252477#M1237451</link>
      <description>&lt;P&gt;Actually a not really fun implementation of OPC comms.&lt;/P&gt;</description>
      <pubDate>Tue, 30 Aug 2022 17:12:07 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/Difficulty-Zeroing-Quadrature-Distance-Encoder-without-Z-Input/m-p/4252477#M1237451</guid>
      <dc:creator>downerdce</dc:creator>
      <dc:date>2022-08-30T17:12:07Z</dc:date>
    </item>
    <item>
      <title>Re: Difficulty Zeroing Quadrature Distance Encoder without Z Input</title>
      <link>https://ni.lithium.com/t5/LabVIEW/Difficulty-Zeroing-Quadrature-Distance-Encoder-without-Z-Input/m-p/4252546#M1237468</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://ni.lithium.com/t5/user/viewprofilepage/user-id/611846"&gt;@downerdce&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;Actually a not really fun implementation of OPC comms.&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;I was going to say that if you could somehow get rid of that thing, you could end up with a very reasonably sized block diagram.&amp;nbsp; I like your previous post.&amp;nbsp; It made me literally LOL.&amp;nbsp; &lt;span class="lia-unicode-emoji" title=":grinning_face_with_smiling_eyes:"&gt;😄&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 30 Aug 2022 23:23:37 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/Difficulty-Zeroing-Quadrature-Distance-Encoder-without-Z-Input/m-p/4252546#M1237468</guid>
      <dc:creator>billko</dc:creator>
      <dc:date>2022-08-30T23:23:37Z</dc:date>
    </item>
    <item>
      <title>Re: Difficulty Zeroing Quadrature Distance Encoder without Z Input</title>
      <link>https://ni.lithium.com/t5/LabVIEW/Difficulty-Zeroing-Quadrature-Distance-Encoder-without-Z-Input/m-p/4254038#M1238007</link>
      <description>&lt;P&gt;Here's the solution if anyone is interested. VI is attached in case you don't get it from this snippet.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Had to stop and restart the task with a button (or some other event) inside of my while loop. Thank you labview tech support.&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="downerdce_0-1662566545009.png" style="width: 400px;"&gt;&lt;img src="https://ip1.i.lithium.com/a28a41810520d72eb3878495dad6de8300a6275d/68747470733a2f2f6e692e6c69746869756d2e636f6d2f74352f696d6167652f736572766572706167652f696d6167652d69642f33303737393569453333454533374534383245414130332f696d6167652d73697a652f6d656469756d3f763d76322670783d343030" role="button" title="downerdce_0-1662566545009.png" alt="downerdce_0-1662566545009.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 07 Sep 2022 16:04:39 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/Difficulty-Zeroing-Quadrature-Distance-Encoder-without-Z-Input/m-p/4254038#M1238007</guid>
      <dc:creator>downerdce</dc:creator>
      <dc:date>2022-09-07T16:04:39Z</dc:date>
    </item>
  </channel>
</rss>

