<?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: Faster sampling (software controlled) in LabVIEW</title>
    <link>https://ni.lithium.com/t5/LabVIEW/Faster-sampling-software-controlled/m-p/1634990#M588682</link>
    <description>&lt;P&gt;You are already using the Producer-Consumer-Structure.&lt;/P&gt;
&lt;P&gt;The "upper" loop writes the data to the queue = producer.&lt;/P&gt;
&lt;P&gt;The "lower" loop reads the data out of the queue = consumer.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Timing the loop faster than milliseconds is impossible in LabVIEW as LV is using the Windows Timebase (smallest value = 1ms).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I replaced the while loop with a timed loop and you try running this loop with different periods.&lt;/P&gt;
&lt;P&gt;The timed loop runs with higher priority than the while loop.&lt;/P&gt;
&lt;P&gt;I hope you have LV 2009&amp;nbsp;&lt;img id="smileyhappy" class="emoticon emoticon-smileyhappy" src="https://ni.lithium.com/i/smilies/16x16_smiley-happy.gif" alt="Smiley Happy" title="Smiley Happy" /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards&lt;/P&gt;
&lt;P&gt;Christian&lt;/P&gt;</description>
    <pubDate>Thu, 14 Jul 2011 14:27:18 GMT</pubDate>
    <dc:creator>MiChr</dc:creator>
    <dc:date>2011-07-14T14:27:18Z</dc:date>
    <item>
      <title>Faster sampling (software controlled)</title>
      <link>https://ni.lithium.com/t5/LabVIEW/Faster-sampling-software-controlled/m-p/1633096#M588308</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I'm trying to read datafrom a Codemercs JoyWarrior 24F14 accelerometer. Connecting it to LabVIEW was easy as can be and reading from it as well.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I want to use the sensor to measure the vibrations in one of our machines, so- as a test- I placed it on top of my iphone and called it. When I let the loop run uncontrolled I get more than enough samples. So many in fact, that I can't see any vibration at all within 100 samples.&lt;/P&gt;
&lt;P&gt;If I run the loop with a 1 ms timer, I get too few samples to acquire the vibration clearly.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Is there any way increase the sample rate a little e.g. by a µs timer? Any other way?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 13 Jul 2011 10:06:54 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/Faster-sampling-software-controlled/m-p/1633096#M588308</guid>
      <dc:creator>PeterFoerster</dc:creator>
      <dc:date>2011-07-13T10:06:54Z</dc:date>
    </item>
    <item>
      <title>Re: Faster sampling (software controlled)</title>
      <link>https://ni.lithium.com/t5/LabVIEW/Faster-sampling-software-controlled/m-p/1633146#M588324</link>
      <description>&lt;P&gt;Zero ms wait?&lt;/P&gt;
&lt;P&gt;(not the same as not having a wait at all)&lt;/P&gt;</description>
      <pubDate>Wed, 13 Jul 2011 10:50:03 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/Faster-sampling-software-controlled/m-p/1633146#M588324</guid>
      <dc:creator>_Ian_</dc:creator>
      <dc:date>2011-07-13T10:50:03Z</dc:date>
    </item>
    <item>
      <title>Re: Faster sampling (software controlled)</title>
      <link>https://ni.lithium.com/t5/LabVIEW/Faster-sampling-software-controlled/m-p/1633172#M588328</link>
      <description>&lt;P&gt;Well, that wouldn't leave me any chance to control the rate would it? (To be precise neither does not having a wait at all)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I thought about changing the samplerate on the sensor (not sure if that's possible, though). In the end that would only mean reading the same value multiple times, if LabVIEW still reads the values more often than a sample is made. So I believe that the problem must be solved in LabVIEW.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In the end: the Vibration I want to measure is of about 9 Hz at Max, so 1kS/s would suffice. I'd still like to know if faster while controlled sampling was possible.&lt;/P&gt;</description>
      <pubDate>Wed, 13 Jul 2011 11:14:14 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/Faster-sampling-software-controlled/m-p/1633172#M588328</guid>
      <dc:creator>PeterFoerster</dc:creator>
      <dc:date>2011-07-13T11:14:14Z</dc:date>
    </item>
    <item>
      <title>Re: Faster sampling (software controlled)</title>
      <link>https://ni.lithium.com/t5/LabVIEW/Faster-sampling-software-controlled/m-p/1633188#M588331</link>
      <description>&lt;P&gt;Have you tried a producer consumer architecture with a timed loop for the readout?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;For better software timing you should run two independend loops, and the read loop shouldn't contain any frontpanel items.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 13 Jul 2011 11:28:06 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/Faster-sampling-software-controlled/m-p/1633188#M588331</guid>
      <dc:creator>Henrik_Volkers</dc:creator>
      <dc:date>2011-07-13T11:28:06Z</dc:date>
    </item>
    <item>
      <title>Re: Faster sampling (software controlled)</title>
      <link>https://ni.lithium.com/t5/LabVIEW/Faster-sampling-software-controlled/m-p/1633250#M588343</link>
      <description>&lt;P&gt;If you are sampling, using a loop rate in Windows, there will be jitter in the samples, as you can't predict the actual loop time for each loop. You also need to sample at least twice as fast as your signal, faster usually is better. Yes, you may sample the same event more than once, but that is better than missing events. How do you get the data from your sensor into LabVIEW, how is it connected to your computer?&lt;/P&gt;</description>
      <pubDate>Wed, 13 Jul 2011 12:24:35 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/Faster-sampling-software-controlled/m-p/1633250#M588343</guid>
      <dc:creator>LV_Pro</dc:creator>
      <dc:date>2011-07-13T12:24:35Z</dc:date>
    </item>
    <item>
      <title>Re: Faster sampling (software controlled)</title>
      <link>https://ni.lithium.com/t5/LabVIEW/Faster-sampling-software-controlled/m-p/1633366#M588362</link>
      <description>&lt;P&gt;The Sensor (btw: Hail to the codemercs) is connected via USB, whereas the sensor is recognized as a Joystick.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;My Code looks a little like in the VI I added.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I didn't quite get the part about the producer consumer structure. Could you please be more specific about that.&lt;/P&gt;</description>
      <pubDate>Wed, 13 Jul 2011 13:27:56 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/Faster-sampling-software-controlled/m-p/1633366#M588362</guid>
      <dc:creator>PeterFoerster</dc:creator>
      <dc:date>2011-07-13T13:27:56Z</dc:date>
    </item>
    <item>
      <title>Re: Faster sampling (software controlled)</title>
      <link>https://ni.lithium.com/t5/LabVIEW/Faster-sampling-software-controlled/m-p/1634990#M588682</link>
      <description>&lt;P&gt;You are already using the Producer-Consumer-Structure.&lt;/P&gt;
&lt;P&gt;The "upper" loop writes the data to the queue = producer.&lt;/P&gt;
&lt;P&gt;The "lower" loop reads the data out of the queue = consumer.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Timing the loop faster than milliseconds is impossible in LabVIEW as LV is using the Windows Timebase (smallest value = 1ms).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I replaced the while loop with a timed loop and you try running this loop with different periods.&lt;/P&gt;
&lt;P&gt;The timed loop runs with higher priority than the while loop.&lt;/P&gt;
&lt;P&gt;I hope you have LV 2009&amp;nbsp;&lt;img id="smileyhappy" class="emoticon emoticon-smileyhappy" src="https://ni.lithium.com/i/smilies/16x16_smiley-happy.gif" alt="Smiley Happy" title="Smiley Happy" /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards&lt;/P&gt;
&lt;P&gt;Christian&lt;/P&gt;</description>
      <pubDate>Thu, 14 Jul 2011 14:27:18 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/Faster-sampling-software-controlled/m-p/1634990#M588682</guid>
      <dc:creator>MiChr</dc:creator>
      <dc:date>2011-07-14T14:27:18Z</dc:date>
    </item>
    <item>
      <title>Re: Faster sampling (software controlled)</title>
      <link>https://ni.lithium.com/t5/LabVIEW/Faster-sampling-software-controlled/m-p/1637672#M589177</link>
      <description>&lt;P&gt;Well, as I said, a samplerate of 1 kS/s should suffice. So it doesn't really bother me, that faster sampling won't work.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks for all the input.&lt;/P&gt;</description>
      <pubDate>Mon, 18 Jul 2011 05:23:08 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/Faster-sampling-software-controlled/m-p/1637672#M589177</guid>
      <dc:creator>PeterFoerster</dc:creator>
      <dc:date>2011-07-18T05:23:08Z</dc:date>
    </item>
  </channel>
</rss>

