<?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: Timestamp of dynamic data type in LabVIEW</title>
    <link>https://ni.lithium.com/t5/LabVIEW/Timestamp-of-dynamic-data-type/m-p/3657933#M1027770</link>
    <description>&lt;P&gt;No sir!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;After I discovered LV this dyslexic jumped for joy and never imagined programming in a text based language again.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Ben&lt;/P&gt;</description>
    <pubDate>Mon, 10 Jul 2017 19:53:22 GMT</pubDate>
    <dc:creator>Ben</dc:creator>
    <dc:date>2017-07-10T19:53:22Z</dc:date>
    <item>
      <title>Timestamp of dynamic data type</title>
      <link>https://ni.lithium.com/t5/LabVIEW/Timestamp-of-dynamic-data-type/m-p/3657906#M1027762</link>
      <description>&lt;P&gt;&lt;STRONG&gt;Given&lt;/STRONG&gt; the following simple&amp;nbsp;data-acquisition program.&lt;/P&gt;
&lt;P&gt;&lt;IMG src="https://ip1.i.lithium.com/3e6c4fbb6875f823aa88dc2c6f21dacb4647f056/68747470733a2f2f6e692e6c69746869756d2e636f6d2f74352f696d6167652f736572766572706167652f696d6167652d69642f32303732343969374145374637314333374339444230302f696d6167652d73697a652f6f726967696e616c3f763d312e302670783d2d31" border="0" alt="simple_daq.png" title="simple_daq.png" /&gt;&lt;STRONG&gt;Problem&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;I understand that the while loop will iterate close to 10 Hz, where f_loop = f_sample/N_samples_per_channel. Every second, the DAQ captures 100 samples for each channel (6 channels in my case), and the buffer size is set to 10 samples/channel, so the computer has to read or empty the buffer 10 times per second to keep pace with the DAQ. I also understand that the while loop won't operate exactly at 10 Hz because I'm running this over Windows. &lt;STRONG&gt;However, I don't understand how the&amp;nbsp;resulting data file has relative timestamps for every single datapoint&lt;/STRONG&gt;&amp;nbsp;(first col in picture below).&lt;STRONG&gt;&amp;nbsp;&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;&lt;IMG src="https://ip1.i.lithium.com/5c8d82fb602ae4d2b26eb249e5907ce71b976b5a/68747470733a2f2f6e692e6c69746869756d2e636f6d2f74352f696d6167652f736572766572706167652f696d6167652d69642f32303732353269353932424141463738304241383143322f696d6167652d73697a652f6d656469756d3f763d312e302670783d2d31" border="0" alt="datafile.PNG" title="datafile.PNG" /&gt;&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;Does W2M&amp;nbsp;simply use the dt value in the&amp;nbsp;dynamic data type variable to linearly interpolate the relative timestamp of each sample using the timestamp of each loop-iteration? If not, what's going on?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I ask because I'm trying to program an equivalent program in Python using NIDAQmx, and I'm not sure how to tack-on the time for each sample in my data arrays. Thanks!&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 10 Jul 2017 19:19:54 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/Timestamp-of-dynamic-data-type/m-p/3657906#M1027762</guid>
      <dc:creator>aeroAggie</dc:creator>
      <dc:date>2017-07-10T19:19:54Z</dc:date>
    </item>
    <item>
      <title>Re: Timestamp of dynamic data type</title>
      <link>https://ni.lithium.com/t5/LabVIEW/Timestamp-of-dynamic-data-type/m-p/3657922#M1027766</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://ni.lithium.com/t5/user/viewprofilepage/user-id/325494"&gt;@aeroAggie&lt;/a&gt; wrote:&lt;BR /&gt;
&lt;P&gt;&lt;STRONG&gt;...&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;Does&lt;STRONG&gt; W2M&amp;nbsp;simply use the dt value in the&amp;nbsp;dynamic data&lt;/STRONG&gt; type variable to linearly interpolate the relative timestamp of each sample using the timestamp of each loop-iteration?...&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Yup!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Ben&lt;/P&gt;</description>
      <pubDate>Mon, 10 Jul 2017 19:28:46 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/Timestamp-of-dynamic-data-type/m-p/3657922#M1027766</guid>
      <dc:creator>Ben</dc:creator>
      <dc:date>2017-07-10T19:28:46Z</dc:date>
    </item>
    <item>
      <title>Re: Timestamp of dynamic data type</title>
      <link>https://ni.lithium.com/t5/LabVIEW/Timestamp-of-dynamic-data-type/m-p/3657926#M1027767</link>
      <description>&lt;P&gt;Oh, well that's simple enough. Do you think you could answer my second question here?&lt;/P&gt;
&lt;P&gt;&lt;A href="https://forums.ni.com/t5/Multifunction-DAQ/Loop-timing-with-NIDAQmx-for-Python/td-p/3656140" target="_blank"&gt;https://forums.ni.com/t5/Multifunction-DAQ/Loop-timing-with-NIDAQmx-for-Python/td-p/3656140&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I wasn't getting much views, so I abstracted my first question into this post. My second question still perplexes me!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Respectfully,&lt;/P&gt;
&lt;P&gt;aeroAggie&lt;/P&gt;</description>
      <pubDate>Mon, 10 Jul 2017 19:34:47 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/Timestamp-of-dynamic-data-type/m-p/3657926#M1027767</guid>
      <dc:creator>aeroAggie</dc:creator>
      <dc:date>2017-07-10T19:34:47Z</dc:date>
    </item>
    <item>
      <title>Re: Timestamp of dynamic data type</title>
      <link>https://ni.lithium.com/t5/LabVIEW/Timestamp-of-dynamic-data-type/m-p/3657933#M1027770</link>
      <description>&lt;P&gt;No sir!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;After I discovered LV this dyslexic jumped for joy and never imagined programming in a text based language again.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Ben&lt;/P&gt;</description>
      <pubDate>Mon, 10 Jul 2017 19:53:22 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/Timestamp-of-dynamic-data-type/m-p/3657933#M1027770</guid>
      <dc:creator>Ben</dc:creator>
      <dc:date>2017-07-10T19:53:22Z</dc:date>
    </item>
    <item>
      <title>Re: Timestamp of dynamic data type</title>
      <link>https://ni.lithium.com/t5/LabVIEW/Timestamp-of-dynamic-data-type/m-p/3657944#M1027774</link>
      <description>&lt;P&gt;Hah! I never realized how much of a boon LV is for dyslexic people. Thanks anyways.&lt;/P&gt;</description>
      <pubDate>Mon, 10 Jul 2017 20:18:36 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/Timestamp-of-dynamic-data-type/m-p/3657944#M1027774</guid>
      <dc:creator>aeroAggie</dc:creator>
      <dc:date>2017-07-10T20:18:36Z</dc:date>
    </item>
    <item>
      <title>Re: Timestamp of dynamic data type</title>
      <link>https://ni.lithium.com/t5/LabVIEW/Timestamp-of-dynamic-data-type/m-p/3657947#M1027775</link>
      <description>&lt;P&gt;I don't understand why you even use write to measurement file.vi&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Simply enable logging in the DAQmx Express.vi&lt;/P&gt;</description>
      <pubDate>Mon, 10 Jul 2017 20:24:17 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/Timestamp-of-dynamic-data-type/m-p/3657947#M1027775</guid>
      <dc:creator>JÞB</dc:creator>
      <dc:date>2017-07-10T20:24:17Z</dc:date>
    </item>
    <item>
      <title>Re: Timestamp of dynamic data type</title>
      <link>https://ni.lithium.com/t5/LabVIEW/Timestamp-of-dynamic-data-type/m-p/3657961#M1027783</link>
      <description>&lt;P&gt;Initially ignorance (I never knew about logging), but now convenience.&lt;/P&gt;
&lt;P&gt;I just tried it, and I faced 2 problems. First, I have to perform 2 conversions: one from tdms =&amp;gt; tdms excluding "raw" DAQmx values and another from tdms =&amp;gt;&amp;nbsp;another format, in my case .mat. The first conversion (tdms/tdms) strips the time vector.&lt;/P&gt;
&lt;P&gt;Also, I come from an academic background, and the LabVIEW bootcamp I attended 2 years ago taught us data-acquisition using write to measurement file. I've been running with it since!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;PS: Do you think you could answer my other post, here? Question 2 specifically&lt;/P&gt;
&lt;P&gt;&lt;A href="https://forums.ni.com/t5/Multifunction-DAQ/Loop-timing-with-NIDAQmx-for-Python/td-p/3656140" target="_blank"&gt;https://forums.ni.com/t5/Multifunction-DAQ/Loop-timing-with-NIDAQmx-for-Python/td-p/3656140&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 10 Jul 2017 20:58:50 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/Timestamp-of-dynamic-data-type/m-p/3657961#M1027783</guid>
      <dc:creator>aeroAggie</dc:creator>
      <dc:date>2017-07-10T20:58:50Z</dc:date>
    </item>
    <item>
      <title>Re: Timestamp of dynamic data type</title>
      <link>https://ni.lithium.com/t5/LabVIEW/Timestamp-of-dynamic-data-type/m-p/3658068#M1027813</link>
      <description>&lt;P&gt;Go look&lt;/P&gt;
&lt;P&gt;Just a math problem&lt;/P&gt;</description>
      <pubDate>Tue, 11 Jul 2017 02:37:05 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/Timestamp-of-dynamic-data-type/m-p/3658068#M1027813</guid>
      <dc:creator>JÞB</dc:creator>
      <dc:date>2017-07-11T02:37:05Z</dc:date>
    </item>
  </channel>
</rss>

