<?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: Continuous buffer with interrupts doesn't refill the buffer in Counter/Timer</title>
    <link>https://ni.lithium.com/t5/Counter-Timer/Continuous-buffer-with-interrupts-doesn-t-refill-the-buffer/m-p/437306#M4100</link>
    <description>Kenn,&lt;BR /&gt;&lt;BR /&gt;I am attaching a VS2005 project that exhibit this behavior. You probably need to modify it to match your hardware device numbers. You can configure it in various ways (just look at the comments in the code).&lt;BR /&gt;&lt;BR /&gt;Gil&lt;BR /&gt;&lt;DIV&gt;&lt;/DIV&gt;</description>
    <pubDate>Mon, 06 Nov 2006 21:06:01 GMT</pubDate>
    <dc:creator>grivlis</dc:creator>
    <dc:date>2006-11-06T21:06:01Z</dc:date>
    <item>
      <title>Continuous buffer with interrupts doesn't refill the buffer</title>
      <link>https://ni.lithium.com/t5/Counter-Timer/Continuous-buffer-with-interrupts-doesn-t-refill-the-buffer/m-p/436519#M4086</link>
      <description>&lt;DIV&gt;&lt;/DIV&gt;Hi To All,&lt;BR /&gt;&lt;BR /&gt;I'm trying to use a PXI-6602 to acquire 8 channels of event counts. I'd like to use buffered event count at 100Hz, and I know that I have to use interrupts on some of the channels. My problem is that the 3 channels that use DMA work properly but the channels that use interrupts do not refill the buffer in a cicrcular fashion. Except for the configuring some channels for interrupts,&amp;nbsp; the configuration of the channels is identical (and done in a loop). In fact, it doesn't matter which channels I set for DMA and which for interrupts---the DMA ones work and the interrupts do not.&lt;BR /&gt;&lt;BR /&gt;Note that the interrupts one DO fill the buffer one time only. They only seem to be unable to REfill it.&lt;BR /&gt;&lt;BR /&gt;Anyone has any insight?&lt;BR /&gt;&lt;BR /&gt;Thanks,&lt;BR /&gt;Gil&lt;BR /&gt;&lt;DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Fri, 03 Nov 2006 16:07:48 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/Counter-Timer/Continuous-buffer-with-interrupts-doesn-t-refill-the-buffer/m-p/436519#M4086</guid>
      <dc:creator>grivlis</dc:creator>
      <dc:date>2006-11-03T16:07:48Z</dc:date>
    </item>
    <item>
      <title>Re: Continuous buffer with interrupts doesn't refill the buffer</title>
      <link>https://ni.lithium.com/t5/Counter-Timer/Continuous-buffer-with-interrupts-doesn-t-refill-the-buffer/m-p/437138#M4094</link>
      <description>&lt;DIV&gt;Gil,&lt;BR /&gt;&lt;BR /&gt;Thanks for contacting National Instruments.&amp;nbsp; This is an interesting issue.&amp;nbsp; Are you receiving an error of any kind?&amp;nbsp; What environment are your developing in, i.e. LabVIEW, CVI...?&amp;nbsp; How are you determining that the buffer ids not refilling?&amp;nbsp; I am not sure yet as to why this would happen.&amp;nbsp; &lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;&lt;/DIV&gt;</description>
      <pubDate>Mon, 06 Nov 2006 16:58:51 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/Counter-Timer/Continuous-buffer-with-interrupts-doesn-t-refill-the-buffer/m-p/437138#M4094</guid>
      <dc:creator>Kenn_N</dc:creator>
      <dc:date>2006-11-06T16:58:51Z</dc:date>
    </item>
    <item>
      <title>Re: Continuous buffer with interrupts doesn't refill the buffer</title>
      <link>https://ni.lithium.com/t5/Counter-Timer/Continuous-buffer-with-interrupts-doesn-t-refill-the-buffer/m-p/437207#M4095</link>
      <description>&lt;DIV&gt;&lt;/DIV&gt;Hi Kenn,&lt;BR /&gt;&lt;BR /&gt;(a) I'm using Visual Studio 2005 and Traditional NI-DAQ 7.4.2f3.&lt;BR /&gt;(b) I'm not getting any error.&lt;BR /&gt;(c) I use an event callbacks to check the buffers. &lt;BR /&gt;To me more detailed, here is what I do: I use a PXI-6533 device to acquire (dummy) data at 100Hz and use its sample clock (on an RTSI line) as the clock for the buffered counters. I assign an event callback to the PXI-6533 for a callback every sample. That way, after the samples are acquired, I get the callback and I can inspect the buffers. I also keep a counter that counts the number of callbacks. That number (modulo the size of a counter's buffer) is also the position of the recently acquired event counts. &lt;BR /&gt;In the callback function I inspect the data after the counter index reached the size of the buffer and then I see that the counters that were configured with interrupts do not get refilled. I will try to prepare a sample application and post it (it's a little hard to untangle the code from my current application).&lt;BR /&gt;&lt;BR /&gt;Gil&lt;BR /&gt;&lt;BR /&gt;PS. One of the reasons I am using Traditional NI-DAQ is because I can access the naked buffers directly. I find that the overhead of calling the various read buffer functions is too large. (The other reason for using traditional NI-DAQ is that the latency for event callbacks is much better). G.&lt;BR /&gt;&lt;DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Mon, 06 Nov 2006 18:18:29 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/Counter-Timer/Continuous-buffer-with-interrupts-doesn-t-refill-the-buffer/m-p/437207#M4095</guid>
      <dc:creator>grivlis</dc:creator>
      <dc:date>2006-11-06T18:18:29Z</dc:date>
    </item>
    <item>
      <title>Re: Continuous buffer with interrupts doesn't refill the buffer</title>
      <link>https://ni.lithium.com/t5/Counter-Timer/Continuous-buffer-with-interrupts-doesn-t-refill-the-buffer/m-p/437213#M4096</link>
      <description>&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;Gil,&lt;BR /&gt;&lt;BR /&gt;Are you doing a read any time during this?&amp;nbsp; Eventually the buffer should fill up and if you aren't reading the samples off you wshould get an error.&lt;BR /&gt;&lt;BR /&gt;An example that I could run on my system and only exhibits the problem at hand would be great and then we could determine if there is a known reason for this or just a bug.&amp;nbsp; Thanks for the quick reply.&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;&lt;/DIV&gt;&lt;P&gt;Message Edited by Kenn N on &lt;SPAN class="date_text"&gt;11-06-2006&lt;/SPAN&gt; &lt;SPAN class="time_text"&gt;12:35 PM&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 06 Nov 2006 18:26:48 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/Counter-Timer/Continuous-buffer-with-interrupts-doesn-t-refill-the-buffer/m-p/437213#M4096</guid>
      <dc:creator>Kenn_N</dc:creator>
      <dc:date>2006-11-06T18:26:48Z</dc:date>
    </item>
    <item>
      <title>Re: Continuous buffer with interrupts doesn't refill the buffer</title>
      <link>https://ni.lithium.com/t5/Counter-Timer/Continuous-buffer-with-interrupts-doesn-t-refill-the-buffer/m-p/437255#M4098</link>
      <description>Hi Kenn,&lt;BR /&gt;&lt;BR /&gt;I am not reading the buffer using the read buffer command. I access it directly. However, that being said, the DMA-configured channels do refill the buffer just fine and the interrupts ones do not. If I read the manual correctly, the buffer should overwrite itself without an error. It is only the read function that returns error codes if it couldn't read it fast enough.&lt;BR /&gt;&lt;BR /&gt;Gil&lt;BR /&gt;&lt;DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Mon, 06 Nov 2006 19:36:54 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/Counter-Timer/Continuous-buffer-with-interrupts-doesn-t-refill-the-buffer/m-p/437255#M4098</guid>
      <dc:creator>grivlis</dc:creator>
      <dc:date>2006-11-06T19:36:54Z</dc:date>
    </item>
    <item>
      <title>Re: Continuous buffer with interrupts doesn't refill the buffer</title>
      <link>https://ni.lithium.com/t5/Counter-Timer/Continuous-buffer-with-interrupts-doesn-t-refill-the-buffer/m-p/437264#M4099</link>
      <description>&lt;DIV&gt;Gil,&lt;BR /&gt;&lt;BR /&gt;Yeah that may be true.&amp;nbsp; Is it possible to recreate the issue on a very small scale?&amp;nbsp; So just one counter setup to do do IRQ transfers and see if ti exhibits the same behavior.&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;&lt;/DIV&gt;</description>
      <pubDate>Mon, 06 Nov 2006 19:48:40 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/Counter-Timer/Continuous-buffer-with-interrupts-doesn-t-refill-the-buffer/m-p/437264#M4099</guid>
      <dc:creator>Kenn_N</dc:creator>
      <dc:date>2006-11-06T19:48:40Z</dc:date>
    </item>
    <item>
      <title>Re: Continuous buffer with interrupts doesn't refill the buffer</title>
      <link>https://ni.lithium.com/t5/Counter-Timer/Continuous-buffer-with-interrupts-doesn-t-refill-the-buffer/m-p/437306#M4100</link>
      <description>Kenn,&lt;BR /&gt;&lt;BR /&gt;I am attaching a VS2005 project that exhibit this behavior. You probably need to modify it to match your hardware device numbers. You can configure it in various ways (just look at the comments in the code).&lt;BR /&gt;&lt;BR /&gt;Gil&lt;BR /&gt;&lt;DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Mon, 06 Nov 2006 21:06:01 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/Counter-Timer/Continuous-buffer-with-interrupts-doesn-t-refill-the-buffer/m-p/437306#M4100</guid>
      <dc:creator>grivlis</dc:creator>
      <dc:date>2006-11-06T21:06:01Z</dc:date>
    </item>
    <item>
      <title>Re: Continuous buffer with interrupts doesn't refill the buffer</title>
      <link>https://ni.lithium.com/t5/Counter-Timer/Continuous-buffer-with-interrupts-doesn-t-refill-the-buffer/m-p/437885#M4108</link>
      <description>&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;Gil,&lt;BR /&gt;&lt;BR /&gt;I got your code.&amp;nbsp; I can't get it to build.&amp;nbsp; I get this error&lt;BR /&gt;&lt;BR /&gt;fatal error LNK1104: cannot open file 'C:\Program.obj'&lt;BR /&gt;&lt;BR /&gt;Any thoughts on what I need to do to get this to run properly.&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;&lt;BR /&gt;&lt;/DIV&gt;</description>
      <pubDate>Tue, 07 Nov 2006 19:52:15 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/Counter-Timer/Continuous-buffer-with-interrupts-doesn-t-refill-the-buffer/m-p/437885#M4108</guid>
      <dc:creator>Kenn_N</dc:creator>
      <dc:date>2006-11-07T19:52:15Z</dc:date>
    </item>
    <item>
      <title>Re: Continuous buffer with interrupts doesn't refill the buffer</title>
      <link>https://ni.lithium.com/t5/Counter-Timer/Continuous-buffer-with-interrupts-doesn-t-refill-the-buffer/m-p/437893#M4110</link>
      <description>Hi Kenn,&lt;BR /&gt;&lt;BR /&gt;Hmm. I don't know why it doens't compile. Do you have VS2005?&lt;BR /&gt;&lt;BR /&gt;Anyways, to simplify things, I attach all the code in one file. You can probably compile it with any version of VS by creating an empty console win32 application and adding this file as the only file.&amp;nbsp; (and don't forget to link with nidaq32.lib)&lt;BR /&gt;&lt;BR /&gt;Gil&lt;BR /&gt;&lt;BR /&gt;&lt;DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Tue, 07 Nov 2006 20:05:39 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/Counter-Timer/Continuous-buffer-with-interrupts-doesn-t-refill-the-buffer/m-p/437893#M4110</guid>
      <dc:creator>grivlis</dc:creator>
      <dc:date>2006-11-07T20:05:39Z</dc:date>
    </item>
    <item>
      <title>Re: Continuous buffer with interrupts doesn't refill the buffer</title>
      <link>https://ni.lithium.com/t5/Counter-Timer/Continuous-buffer-with-interrupts-doesn-t-refill-the-buffer/m-p/437904#M4111</link>
      <description>&lt;DIV&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;/DIV&gt;
&lt;P&gt;Gil,&lt;/P&gt;
&lt;P&gt;I created a new win32 console app, linked the nidaq32.lib and included the nidaq.h file location and I still ge the Program error.&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;Kenn N.&lt;BR /&gt;Applications Engineering&lt;BR /&gt;National Instruments&lt;/P&gt;&lt;P&gt;Message Edited by Jesse O on &lt;SPAN class="date_text"&gt;11-07-2006&lt;/SPAN&gt; &lt;SPAN class="time_text"&gt;02:33 PM&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 07 Nov 2006 20:26:10 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/Counter-Timer/Continuous-buffer-with-interrupts-doesn-t-refill-the-buffer/m-p/437904#M4111</guid>
      <dc:creator>Jesse_O</dc:creator>
      <dc:date>2006-11-07T20:26:10Z</dc:date>
    </item>
    <item>
      <title>Re: Continuous buffer with interrupts doesn't refill the buffer</title>
      <link>https://ni.lithium.com/t5/Counter-Timer/Continuous-buffer-with-interrupts-doesn-t-refill-the-buffer/m-p/437910#M4112</link>
      <description>That is very curious. I cannot see how you will have a problem just including a source file in your own project. (you shouldn't use any of the previous files I sent, just that single new .cpp file).&lt;BR /&gt;&lt;BR /&gt;Maybe your vs is misconfigured? Try to create a NON empty console win32 app and see if you can compile it. (I mean without any of my code).&lt;BR /&gt;&lt;BR /&gt;Gil&lt;BR /&gt;&lt;DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Tue, 07 Nov 2006 20:33:22 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/Counter-Timer/Continuous-buffer-with-interrupts-doesn-t-refill-the-buffer/m-p/437910#M4112</guid>
      <dc:creator>grivlis</dc:creator>
      <dc:date>2006-11-07T20:33:22Z</dc:date>
    </item>
    <item>
      <title>Re: Continuous buffer with interrupts doesn't refill the buffer</title>
      <link>https://ni.lithium.com/t5/Counter-Timer/Continuous-buffer-with-interrupts-doesn-t-refill-the-buffer/m-p/437926#M4113</link>
      <description>Gil,&lt;BR /&gt;&lt;BR /&gt;I can build a simple win32 console app, but if I add your code and link the nidaq32.lib I get the error.&amp;nbsp; It has something to do wtih spaces being some of the paths.&amp;nbsp; Can you send me the exe itself.&amp;nbsp; My device number is 1.&amp;nbsp; I can run it and verify what you are seeing.&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;&lt;DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Tue, 07 Nov 2006 21:42:58 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/Counter-Timer/Continuous-buffer-with-interrupts-doesn-t-refill-the-buffer/m-p/437926#M4113</guid>
      <dc:creator>Kenn_N</dc:creator>
      <dc:date>2006-11-07T21:42:58Z</dc:date>
    </item>
    <item>
      <title>Re: Continuous buffer with interrupts doesn't refill the buffer</title>
      <link>https://ni.lithium.com/t5/Counter-Timer/Continuous-buffer-with-interrupts-doesn-t-refill-the-buffer/m-p/437933#M4114</link>
      <description>Kenn,&lt;BR /&gt;&lt;BR /&gt;I use two cards, a 6602 and a 6533. Do you have access to both? If you send me the dev nums I'll compile one for you.&lt;BR /&gt;&lt;BR /&gt;Also, try to copy the cpp file I sent into the directory in which you created your empty win32 app, and then add the file. Maybe it will work. I still cannot see where the path name is in my code...&lt;BR /&gt;&lt;BR /&gt;Gil&lt;BR /&gt;&lt;DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Tue, 07 Nov 2006 21:49:50 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/Counter-Timer/Continuous-buffer-with-interrupts-doesn-t-refill-the-buffer/m-p/437933#M4114</guid>
      <dc:creator>grivlis</dc:creator>
      <dc:date>2006-11-07T21:49:50Z</dc:date>
    </item>
    <item>
      <title>Re: Continuous buffer with interrupts doesn't refill the buffer</title>
      <link>https://ni.lithium.com/t5/Counter-Timer/Continuous-buffer-with-interrupts-doesn-t-refill-the-buffer/m-p/437934#M4115</link>
      <description>&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;Gil,&lt;BR /&gt;&lt;BR /&gt;I will make the 6533 be Device 2.&amp;nbsp; How do you want me to add the file? &lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;&lt;/DIV&gt;&lt;P&gt;Message Edited by Kenn N on &lt;SPAN class="date_text"&gt;11-07-2006&lt;/SPAN&gt; &lt;SPAN class="time_text"&gt;03:54 PM&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 07 Nov 2006 21:53:04 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/Counter-Timer/Continuous-buffer-with-interrupts-doesn-t-refill-the-buffer/m-p/437934#M4115</guid>
      <dc:creator>Kenn_N</dc:creator>
      <dc:date>2006-11-07T21:53:04Z</dc:date>
    </item>
    <item>
      <title>Re: Continuous buffer with interrupts doesn't refill the buffer</title>
      <link>https://ni.lithium.com/t5/Counter-Timer/Continuous-buffer-with-interrupts-doesn-t-refill-the-buffer/m-p/437936#M4116</link>
      <description>(1) In visual studio create an empty win32 console application. Call it any name you want. For example we will choose 'ctrtest'.&lt;BR /&gt;(2) Copy the single file I send (which I attach to this message again) into the source code directory of the application you've just created.&lt;BR /&gt;(3) In VS, right-click the project name in the solution explorer and choose 'add-&amp;gt;Existing Item...' and add the file you've just copied into that folder (ctrex.cpp).&lt;BR /&gt;(4) Try to compile.&lt;BR /&gt;&lt;BR /&gt;I'll make a an executable as well&lt;BR /&gt;&lt;BR /&gt;Gil&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 07 Nov 2006 21:59:42 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/Counter-Timer/Continuous-buffer-with-interrupts-doesn-t-refill-the-buffer/m-p/437936#M4116</guid>
      <dc:creator>grivlis</dc:creator>
      <dc:date>2006-11-07T21:59:42Z</dc:date>
    </item>
    <item>
      <title>Re: Continuous buffer with interrupts doesn't refill the buffer</title>
      <link>https://ni.lithium.com/t5/Counter-Timer/Continuous-buffer-with-interrupts-doesn-t-refill-the-buffer/m-p/437937#M4117</link>
      <description>&lt;DIV&gt;&lt;/DIV&gt;Hi Kenn,&lt;BR /&gt;&lt;BR /&gt;Here is an executable. 6602 is device 1, 6533 is device 2&lt;BR /&gt;I packed it in a zip file because the forum's interface doesn't allow .exe files.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Gil&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 07 Nov 2006 22:04:20 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/Counter-Timer/Continuous-buffer-with-interrupts-doesn-t-refill-the-buffer/m-p/437937#M4117</guid>
      <dc:creator>grivlis</dc:creator>
      <dc:date>2006-11-07T22:04:20Z</dc:date>
    </item>
    <item>
      <title>Re: Continuous buffer with interrupts doesn't refill the buffer</title>
      <link>https://ni.lithium.com/t5/Counter-Timer/Continuous-buffer-with-interrupts-doesn-t-refill-the-buffer/m-p/437938#M4118</link>
      <description>Gil,&lt;BR /&gt;&lt;BR /&gt;Did that, and if I go to the project properties to link the nidaq32.lib I get the same error.&amp;nbsp; Is there another way to link that file?&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;&lt;BR /&gt;&lt;DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Tue, 07 Nov 2006 22:06:52 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/Counter-Timer/Continuous-buffer-with-interrupts-doesn-t-refill-the-buffer/m-p/437938#M4118</guid>
      <dc:creator>Kenn_N</dc:creator>
      <dc:date>2006-11-07T22:06:52Z</dc:date>
    </item>
    <item>
      <title>Re: Continuous buffer with interrupts doesn't refill the buffer</title>
      <link>https://ni.lithium.com/t5/Counter-Timer/Continuous-buffer-with-interrupts-doesn-t-refill-the-buffer/m-p/437962#M4119</link>
      <description>Try to copy the nidaq32.lib to your project directory and link against that instead. You probably have a problem with your path.&lt;BR /&gt;&lt;BR /&gt;(Did you tell VS2005 to look at certain directories for you library files? In the link properties in the project properties you should only put nidaq32.lib, and not the whole path. If you use the whole path, try to put quote marks (or maybe double quote marks) around it)&lt;BR /&gt;&lt;BR /&gt;G&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 07 Nov 2006 23:25:40 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/Counter-Timer/Continuous-buffer-with-interrupts-doesn-t-refill-the-buffer/m-p/437962#M4119</guid>
      <dc:creator>grivlis</dc:creator>
      <dc:date>2006-11-07T23:25:40Z</dc:date>
    </item>
    <item>
      <title>Re: Continuous buffer with interrupts doesn't refill the buffer</title>
      <link>https://ni.lithium.com/t5/Counter-Timer/Continuous-buffer-with-interrupts-doesn-t-refill-the-buffer/m-p/438575#M4126</link>
      <description>DIOCallback 1 (tick 1674878)&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; cts:&lt;BR /&gt;ct 0: 0, 0, 0, 0, 0, 0, 0, 0&lt;BR /&gt;&amp;nbsp;&amp;nbsp; end: 0, 0, 0, 0, 0, 0, 0, 0&lt;BR /&gt;&lt;BR /&gt;DIOCallback 2 (tick 1675038)&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; cts:&lt;BR /&gt;ct 0: 0, 0, 0, 0, 0, 0, 0, 0&lt;BR /&gt;&amp;nbsp;&amp;nbsp; end: 0, 0, 0, 0, 0, 0, 0, 0&lt;BR /&gt;&lt;BR /&gt;DIOCallback 3 (tick 1675198)&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; cts:&lt;BR /&gt;ct 0: 0, 0, 0, 0, 0, 0, 0, 0&lt;BR /&gt;&amp;nbsp;&amp;nbsp; end: 0, 0, 0, 0, 0, 0, 0, 0&lt;BR /&gt;&lt;BR /&gt;DIOCallback 4 (tick 1675359)&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; cts:&lt;BR /&gt;ct 0: 0, 0, 0, 0, 0, 0, 0, 0&lt;BR /&gt;&amp;nbsp;&amp;nbsp; end: 0, 0, 0, 0, 0, 0, 0, 0&lt;BR /&gt;&lt;BR /&gt;DIOCallback 5 (tick 1675519)&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; cts:&lt;BR /&gt;ct 0: 0, 0, 0, 0, 0, 0, 0, 0&lt;BR /&gt;&amp;nbsp;&amp;nbsp; end: 0, 0, 0, 0, 0, 0, 0, 0&lt;BR /&gt;&lt;BR /&gt;DIOCallback 6 (tick 1675679)&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; cts:&lt;BR /&gt;ct 0: 0, 0, 0, 0, 0, 0, 0, 0&lt;BR /&gt;&amp;nbsp;&amp;nbsp; end: 0, 0, 0, 0, 0, 0, 0, 0&lt;BR /&gt;&lt;BR /&gt;DIOCallback 7 (tick 1675839)&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; cts:&lt;BR /&gt;ct 0: 0, 0, 0, 0, 0, 0, 0, 0&lt;BR /&gt;&amp;nbsp;&amp;nbsp; end: 0, 0, 0, 0, 0, 0, 0, 0&lt;BR /&gt;&lt;BR /&gt;DIOCallback 8 (tick 1675999)&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; cts:&lt;BR /&gt;ct 0: 0, 0, 0, 0, 0, 0, 0, 0&lt;BR /&gt;&amp;nbsp;&amp;nbsp; end: 0, 0, 0, 0, 0, 0, 0, 0&lt;BR /&gt;&lt;BR /&gt;Is this what was expected.&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;&lt;DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Wed, 08 Nov 2006 20:35:54 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/Counter-Timer/Continuous-buffer-with-interrupts-doesn-t-refill-the-buffer/m-p/438575#M4126</guid>
      <dc:creator>Kenn_N</dc:creator>
      <dc:date>2006-11-08T20:35:54Z</dc:date>
    </item>
    <item>
      <title>Re: Continuous buffer with interrupts doesn't refill the buffer</title>
      <link>https://ni.lithium.com/t5/Counter-Timer/Continuous-buffer-with-interrupts-doesn-t-refill-the-buffer/m-p/438589#M4127</link>
      <description>hmm. not really. Is this from the executable I sent, or did you manage to compile to code?&lt;BR /&gt;&lt;BR /&gt;Here is the result that I get (i've modified the code a bit to have a better printout). In this output there are two counters, counter 0 is DMA and counter 1 is interrupts.&lt;BR /&gt;The program prints out the conents of the beginning and end of each counter's buffer for the first 10 ticks of the DIO callback (to see that the buffer fills up) and then&lt;BR /&gt;also at the ticks around the time the buffer is supposed to get filled up (from tick 252). You can see how the DMA buffer refills and the interrupts one doesn't. You can also see that the counters are working properly, since they count the internal 100kHz source at 100Hz, so each tick we expect the counts to increment by 100 exactly (there is a small drift, becuase the clocks are not synchronized). I attach a new executable with two counters.&lt;BR /&gt;&lt;BR /&gt;&lt;FONT face="Courier New"&gt;DIOCallback 1 (tick 174599125)&lt;BR /&gt;counter 0 buffer begining: 274, 0, 0, 0, 0, 0, 0, 0&lt;BR /&gt;counter 0 buffer&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; end: 0, 0, 0, 0, 0, 0, 0, 0&lt;BR /&gt;counter 1 buffer begining: 270, 0, 0, 0, 0, 0, 0, 0&lt;BR /&gt;counter 1 buffer&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; end: 0, 0, 0, 0, 0, 0, 0, 0&lt;BR /&gt;&lt;BR /&gt;DIOCallback 2 (tick 174599125)&lt;BR /&gt;counter 0 buffer begining: 274, 1274, 0, 0, 0, 0, 0, 0&lt;BR /&gt;counter 0 buffer&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; end: 0, 0, 0, 0, 0, 0, 0, 0&lt;BR /&gt;counter 1 buffer begining: 270, 1270, 0, 0, 0, 0, 0, 0&lt;BR /&gt;counter 1 buffer&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; end: 0, 0, 0, 0, 0, 0, 0, 0&lt;BR /&gt;&lt;BR /&gt;DIOCallback 3 (tick 174599140)&lt;BR /&gt;counter 0 buffer begining: 274, 1274, 2275, 0, 0, 0, 0, 0&lt;BR /&gt;counter 0 buffer&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; end: 0, 0, 0, 0, 0, 0, 0, 0&lt;BR /&gt;counter 1 buffer begining: 270, 1270, 2271, 0, 0, 0, 0, 0&lt;BR /&gt;counter 1 buffer&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; end: 0, 0, 0, 0, 0, 0, 0, 0&lt;BR /&gt;&lt;BR /&gt;DIOCallback 4 (tick 174599156)&lt;BR /&gt;counter 0 buffer begining: 274, 1274, 2275, 3275, 0, 0, 0, 0&lt;BR /&gt;counter 0 buffer&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; end: 0, 0, 0, 0, 0, 0, 0, 0&lt;BR /&gt;counter 1 buffer begining: 270, 1270, 2271, 3271, 0, 0, 0, 0&lt;BR /&gt;counter 1 buffer&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; end: 0, 0, 0, 0, 0, 0, 0, 0&lt;BR /&gt;&lt;BR /&gt;DIOCallback 5 (tick 174599156)&lt;BR /&gt;counter 0 buffer begining: 274, 1274, 2275, 3275, 4275, 0, 0, 0&lt;BR /&gt;counter 0 buffer&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; end: 0, 0, 0, 0, 0, 0, 0, 0&lt;BR /&gt;counter 1 buffer begining: 270, 1270, 2271, 3271, 4271, 0, 0, 0&lt;BR /&gt;counter 1 buffer&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; end: 0, 0, 0, 0, 0, 0, 0, 0&lt;BR /&gt;&lt;BR /&gt;DIOCallback 6 (tick 174599171)&lt;BR /&gt;counter 0 buffer begining: 274, 1274, 2275, 3275, 4275, 5275, 0, 0&lt;BR /&gt;counter 0 buffer&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; end: 0, 0, 0, 0, 0, 0, 0, 0&lt;BR /&gt;counter 1 buffer begining: 270, 1270, 2271, 3271, 4271, 5271, 0, 0&lt;BR /&gt;counter 1 buffer&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; end: 0, 0, 0, 0, 0, 0, 0, 0&lt;BR /&gt;&lt;BR /&gt;DIOCallback 7 (tick 174599187)&lt;BR /&gt;counter 0 buffer begining: 274, 1274, 2275, 3275, 4275, 5275, 6275, 0&lt;BR /&gt;counter 0 buffer&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; end: 0, 0, 0, 0, 0, 0, 0, 0&lt;BR /&gt;counter 1 buffer begining: 270, 1270, 2271, 3271, 4271, 5271, 6271, 0&lt;BR /&gt;counter 1 buffer&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; end: 0, 0, 0, 0, 0, 0, 0, 0&lt;BR /&gt;&lt;BR /&gt;DIOCallback 8 (tick 174599187)&lt;BR /&gt;counter 0 buffer begining: 274, 1274, 2275, 3275, 4275, 5275, 6275, 7275&lt;BR /&gt;counter 0 buffer&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; end: 0, 0, 0, 0, 0, 0, 0, 0&lt;BR /&gt;counter 1 buffer begining: 270, 1270, 2271, 3271, 4271, 5271, 6271, 7271&lt;BR /&gt;counter 1 buffer&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; end: 0, 0, 0, 0, 0, 0, 0, 0&lt;BR /&gt;&lt;BR /&gt;DIOCallback 9 (tick 174599203)&lt;BR /&gt;counter 0 buffer begining: 274, 1274, 2275, 3275, 4275, 5275, 6275, 7275&lt;BR /&gt;counter 0 buffer&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; end: 0, 0, 0, 0, 0, 0, 0, 0&lt;BR /&gt;counter 1 buffer begining: 270, 1270, 2271, 3271, 4271, 5271, 6271, 7271&lt;BR /&gt;counter 1 buffer&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; end: 0, 0, 0, 0, 0, 0, 0, 0&lt;BR /&gt;&lt;BR /&gt;DIOCallback 252 (tick 174601625)&lt;BR /&gt;counter 0 buffer begining: 274, 1274, 2275, 3275, 4275, 5275, 6275, 7275&lt;BR /&gt;counter 0 buffer&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; end: 248277, 249277, 250277, 251277, 0, 0, 0, 0&lt;BR /&gt;counter 1 buffer begining: 270, 1270, 2271, 3271, 4271, 5271, 6271, 7271&lt;BR /&gt;counter 1 buffer&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; end: 248273, 249273, 250273, 251273, 0, 0, 0, 0&lt;BR /&gt;&lt;BR /&gt;DIOCallback 253 (tick 174601640)&lt;BR /&gt;counter 0 buffer begining: 274, 1274, 2275, 3275, 4275, 5275, 6275, 7275&lt;BR /&gt;counter 0 buffer&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; end: 248277, 249277, 250277, 251277, 252277, 0, 0, 0&lt;BR /&gt;counter 1 buffer begining: 270, 1270, 2271, 3271, 4271, 5271, 6271, 7271&lt;BR /&gt;counter 1 buffer&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; end: 248273, 249273, 250273, 251273, 252273, 0, 0, 0&lt;BR /&gt;&lt;BR /&gt;DIOCallback 254 (tick 174601656)&lt;BR /&gt;counter 0 buffer begining: 274, 1274, 2275, 3275, 4275, 5275, 6275, 7275&lt;BR /&gt;counter 0 buffer&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; end: 248277, 249277, 250277, 251277, 252277, 253277, 0, 0&lt;BR /&gt;counter 1 buffer begining: 270, 1270, 2271, 3271, 4271, 5271, 6271, 7271&lt;BR /&gt;counter 1 buffer&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; end: 248273, 249273, 250273, 251273, 252273, 253273, 0, 0&lt;BR /&gt;&lt;BR /&gt;DIOCallback 255 (tick 174601656)&lt;BR /&gt;counter 0 buffer begining: 274, 1274, 2275, 3275, 4275, 5275, 6275, 7275&lt;BR /&gt;counter 0 buffer&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; end: 248277, 249277, 250277, 251277, 252277, 253277, 254277, 0&lt;BR /&gt;counter 1 buffer begining: 270, 1270, 2271, 3271, 4271, 5271, 6271, 7271&lt;BR /&gt;counter 1 buffer&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; end: 248273, 249273, 250273, 251273, 252273, 253273, 254273, 0&lt;BR /&gt;&lt;BR /&gt;DIOCallback 256 (tick 174601671)&lt;BR /&gt;counter 0 buffer begining: 274, 1274, 2275, 3275, 4275, 5275, 6275, 7275&lt;BR /&gt;counter 0 buffer&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; end: 248277, 249277, 250277, 251277, 252277, 253277, 254277, 255277&lt;BR /&gt;counter 1 buffer begining: 270, 1270, 2271, 3271, 4271, 5271, 6271, 7271&lt;BR /&gt;counter 1 buffer&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; end: 248273, 249273, 250273, 251273, 252273, 253273, 254273, 255273&lt;BR /&gt;&lt;BR /&gt;DIOCallback 257 (tick 174601687)&lt;BR /&gt;counter 0 buffer begining: 256277, 1274, 2275, 3275, 4275, 5275, 6275, 7275&lt;BR /&gt;counter 0 buffer&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; end: 248277, 249277, 250277, 251277, 252277, 253277, 254277, 255277&lt;BR /&gt;counter 1 buffer begining: 270, 1270, 2271, 3271, 4271, 5271, 6271, 7271&lt;BR /&gt;counter 1 buffer&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; end: 248273, 249273, 250273, 251273, 252273, 253273, 254273, 255273&lt;BR /&gt;&lt;BR /&gt;DIOCallback 258 (tick 174601687)&lt;BR /&gt;counter 0 buffer begining: 256277, 257277, 2275, 3275, 4275, 5275, 6275, 7275&lt;BR /&gt;counter 0 buffer&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; end: 248277, 249277, 250277, 251277, 252277, 253277, 254277, 255277&lt;BR /&gt;counter 1 buffer begining: 270, 1270, 2271, 3271, 4271, 5271, 6271, 7271&lt;BR /&gt;counter 1 buffer&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; end: 248273, 249273, 250273, 251273, 252273, 253273, 254273, 255273&lt;BR /&gt;&lt;BR /&gt;DIOCallback 259 (tick 174601703)&lt;BR /&gt;counter 0 buffer begining: 256277, 257277, 258277, 3275, 4275, 5275, 6275, 7275&lt;BR /&gt;counter 0 buffer&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; end: 248277, 249277, 250277, 251277, 252277, 253277, 254277, 255277&lt;BR /&gt;counter 1 buffer begining: 270, 1270, 2271, 3271, 4271, 5271, 6271, 7271&lt;BR /&gt;counter 1 buffer&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; end: 248273, 249273, 250273, 251273, 252273, 253273, 254273, 255273&lt;BR /&gt;&lt;BR /&gt;DIOCallback 260 (tick 174601703)&lt;BR /&gt;counter 0 buffer begining: 256277, 257277, 258277, 259277, 4275, 5275, 6275, 7275&lt;BR /&gt;counter 0 buffer&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; end: 248277, 249277, 250277, 251277, 252277, 253277, 254277, 255277&lt;BR /&gt;counter 1 buffer begining: 270, 1270, 2271, 3271, 4271, 5271, 6271, 7271&lt;BR /&gt;counter 1 buffer&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; end: 248273, 249273, 250273, 251273, 252273, 253273, 254273, 255273&lt;BR /&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Gil&lt;BR /&gt;&lt;DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Wed, 08 Nov 2006 21:02:42 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/Counter-Timer/Continuous-buffer-with-interrupts-doesn-t-refill-the-buffer/m-p/438589#M4127</guid>
      <dc:creator>grivlis</dc:creator>
      <dc:date>2006-11-08T21:02:42Z</dc:date>
    </item>
  </channel>
</rss>

