<?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: Append Waveform, keep time stamp in LabVIEW</title>
    <link>https://ni.lithium.com/t5/LabVIEW/Append-Waveform-keep-time-stamp/m-p/3005635#M860239</link>
    <description>&lt;P&gt;I tried&amp;nbsp;the append waveform, but when I do that all dt and timestamp data appears to be removed (dt goes from .002 to 1)&lt;/P&gt;</description>
    <pubDate>Fri, 26 Sep 2014 00:07:39 GMT</pubDate>
    <dc:creator>COIEngineer</dc:creator>
    <dc:date>2014-09-26T00:07:39Z</dc:date>
    <item>
      <title>Append Waveform, keep time stamp</title>
      <link>https://ni.lithium.com/t5/LabVIEW/Append-Waveform-keep-time-stamp/m-p/3005609#M860236</link>
      <description>&lt;P&gt;I am reading from a USB module with data acquisition at 500 Hz. In order to achieve this within the loop time, I need to acquire multiple samples per loop. Once I have those samples (output in waveform), is there a way to append the waveform that maintains the time stamps?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I am currently&amp;nbsp;using the "get time array", then inserting that data into a shift register of the same. I'd like to re-insert that data into the rest of the appended waveform to make writing the information that much easier. If that doesn't work, I'll probably just stick to making a 2D string array to write the data.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you!&lt;/P&gt;</description>
      <pubDate>Thu, 25 Sep 2014 23:27:01 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/Append-Waveform-keep-time-stamp/m-p/3005609#M860236</guid>
      <dc:creator>COIEngineer</dc:creator>
      <dc:date>2014-09-25T23:27:01Z</dc:date>
    </item>
    <item>
      <title>Re: Append Waveform, keep time stamp</title>
      <link>https://ni.lithium.com/t5/LabVIEW/Append-Waveform-keep-time-stamp/m-p/3005625#M860238</link>
      <description>&lt;P&gt;Look for the Append Waveforms VI.&amp;nbsp; It is in the Waveform-&amp;gt;Analog Waveform palette.&amp;nbsp; I think that does what you are looking for.&lt;/P&gt;</description>
      <pubDate>Thu, 25 Sep 2014 23:43:29 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/Append-Waveform-keep-time-stamp/m-p/3005625#M860238</guid>
      <dc:creator>crossrulz</dc:creator>
      <dc:date>2014-09-25T23:43:29Z</dc:date>
    </item>
    <item>
      <title>Re: Append Waveform, keep time stamp</title>
      <link>https://ni.lithium.com/t5/LabVIEW/Append-Waveform-keep-time-stamp/m-p/3005635#M860239</link>
      <description>&lt;P&gt;I tried&amp;nbsp;the append waveform, but when I do that all dt and timestamp data appears to be removed (dt goes from .002 to 1)&lt;/P&gt;</description>
      <pubDate>Fri, 26 Sep 2014 00:07:39 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/Append-Waveform-keep-time-stamp/m-p/3005635#M860239</guid>
      <dc:creator>COIEngineer</dc:creator>
      <dc:date>2014-09-26T00:07:39Z</dc:date>
    </item>
    <item>
      <title>Re: Append Waveform, keep time stamp</title>
      <link>https://ni.lithium.com/t5/LabVIEW/Append-Waveform-keep-time-stamp/m-p/3005645#M860240</link>
      <description>Please show your code. You are doing something wrong.</description>
      <pubDate>Fri, 26 Sep 2014 00:40:35 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/Append-Waveform-keep-time-stamp/m-p/3005645#M860240</guid>
      <dc:creator>Dennis_Knutson</dc:creator>
      <dc:date>2014-09-26T00:40:35Z</dc:date>
    </item>
    <item>
      <title>Re: Append Waveform, keep time stamp</title>
      <link>https://ni.lithium.com/t5/LabVIEW/Append-Waveform-keep-time-stamp/m-p/3006509#M860398</link>
      <description>&lt;P&gt;I am using Labview 2014, and have included the .vi and picture.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 26 Sep 2014 15:25:48 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/Append-Waveform-keep-time-stamp/m-p/3006509#M860398</guid>
      <dc:creator>COIEngineer</dc:creator>
      <dc:date>2014-09-26T15:25:48Z</dc:date>
    </item>
    <item>
      <title>Re: Append Waveform, keep time stamp</title>
      <link>https://ni.lithium.com/t5/LabVIEW/Append-Waveform-keep-time-stamp/m-p/3006521#M860400</link>
      <description>&lt;P&gt;Here is the picture with timing visible.&lt;/P&gt;
&lt;P&gt;&lt;IMG src="https://ip1.i.lithium.com/b6832daee8f283d85dd3cd82f06cf904e71fff35/68747470733a2f2f6e692e6c69746869756d2e636f6d2f74352f696d6167652f736572766572706167652f696d6167652d69642f31353533363169413041394541443537464434304333352f696d6167652d73697a652f6f726967696e616c3f763d6d70626c2d312670783d2d31" border="0" alt="Append Waveform" title="Append Waveform" align="center" /&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 26 Sep 2014 15:32:40 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/Append-Waveform-keep-time-stamp/m-p/3006521#M860400</guid>
      <dc:creator>COIEngineer</dc:creator>
      <dc:date>2014-09-26T15:32:40Z</dc:date>
    </item>
    <item>
      <title>Re: Append Waveform, keep time stamp</title>
      <link>https://ni.lithium.com/t5/LabVIEW/Append-Waveform-keep-time-stamp/m-p/3006549#M860405</link>
      <description>You have an unitialized shift register. That is why you have the default dt of 1.</description>
      <pubDate>Fri, 26 Sep 2014 15:43:42 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/Append-Waveform-keep-time-stamp/m-p/3006549#M860405</guid>
      <dc:creator>Dennis_Knutson</dc:creator>
      <dc:date>2014-09-26T15:43:42Z</dc:date>
    </item>
    <item>
      <title>Re: Append Waveform, keep time stamp</title>
      <link>https://ni.lithium.com/t5/LabVIEW/Append-Waveform-keep-time-stamp/m-p/3006583#M860410</link>
      <description>&lt;P&gt;Do I need a seed value for the initialization? A constant doesn't appear to solve the problem. Thank you for your help on this.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;IMG src="https://ip1.i.lithium.com/c986eccfa59ce14faf11690e3ab55b53c398b07b/68747470733a2f2f6e692e6c69746869756d2e636f6d2f74352f696d6167652f736572766572706167652f696d6167652d69642f31353533373169343634433946433136324341413233302f696d6167652d73697a652f6c617267653f763d6d70626c2d312670783d2d31" border="0" alt="Appended Waveform example.JPG" title="Appended Waveform example.JPG" align="center" /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 26 Sep 2014 15:59:47 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/Append-Waveform-keep-time-stamp/m-p/3006583#M860410</guid>
      <dc:creator>COIEngineer</dc:creator>
      <dc:date>2014-09-26T15:59:47Z</dc:date>
    </item>
    <item>
      <title>Re: Append Waveform, keep time stamp</title>
      <link>https://ni.lithium.com/t5/LabVIEW/Append-Waveform-keep-time-stamp/m-p/3006593#M860412</link>
      <description>&lt;P&gt;I'm hoping to be able to be able to keep the t0 data from the first measurement.&lt;/P&gt;</description>
      <pubDate>Fri, 26 Sep 2014 16:03:17 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/Append-Waveform-keep-time-stamp/m-p/3006593#M860412</guid>
      <dc:creator>COIEngineer</dc:creator>
      <dc:date>2014-09-26T16:03:17Z</dc:date>
    </item>
    <item>
      <title>Re: Append Waveform, keep time stamp</title>
      <link>https://ni.lithium.com/t5/LabVIEW/Append-Waveform-keep-time-stamp/m-p/3006623#M860415</link>
      <description>&lt;P&gt;You need the correct dt and t0 in the initalizing constant Leave Y and Attributes empty. &amp;nbsp;dt and t0 of waveform B are ignored by append waveform and the dt and t0&amp;nbsp;on the SR will be preserved and propigated through the loop.&lt;/P&gt;
&lt;P&gt;&lt;IMG src="https://ip1.i.lithium.com/73af985775b13daeee2e05862b0cfc4e4800744b/68747470733a2f2f6e692e6c69746869756d2e636f6d2f74352f696d6167652f736572766572706167652f696d6167652d69642f31353533373969363742413046394331344131354431312f696d6167652d73697a652f6f726967696e616c3f763d6d70626c2d312670783d2d31" border="0" alt="Capture.PNG" title="Capture.PNG" align="center" /&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 26 Sep 2014 16:19:37 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/Append-Waveform-keep-time-stamp/m-p/3006623#M860415</guid>
      <dc:creator>JÞB</dc:creator>
      <dc:date>2014-09-26T16:19:37Z</dc:date>
    </item>
    <item>
      <title>Re: Append Waveform, keep time stamp</title>
      <link>https://ni.lithium.com/t5/LabVIEW/Append-Waveform-keep-time-stamp/m-p/3006627#M860416</link>
      <description>&lt;P&gt;Use a case structure.&amp;nbsp; When i=0 but the waveform directly into the shift register.&amp;nbsp; On all other iteraation append the value from the shift register with the new waveform then put it in the shift register.&lt;/P&gt;</description>
      <pubDate>Fri, 26 Sep 2014 16:17:29 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/Append-Waveform-keep-time-stamp/m-p/3006627#M860416</guid>
      <dc:creator>RavensFan</dc:creator>
      <dc:date>2014-09-26T16:17:29Z</dc:date>
    </item>
    <item>
      <title>Re: Append Waveform, keep time stamp</title>
      <link>https://ni.lithium.com/t5/LabVIEW/Append-Waveform-keep-time-stamp/m-p/3006631#M860417</link>
      <description>&lt;P&gt;I'm reading from a USB. Here is my attempt to initialize with a t0. As you can see, the t0 for the First run and that of the appended waveform are different. Essentially, I want a true timestamp from each of my samples. The ULx read data maxes at approximately 500 Hz, but can vary fairly significantly. I will need to append several samples to allow realtime calculations. If I drop a few samples because of a lag in read time, that's ok, but I'd like to be able to adjust for that by looking at the timestamp rather than a sample count.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If there is a better way to achieve that, I am certainly open to suggestions.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;IMG src="https://ip1.i.lithium.com/2d98b9ec8336d27b8c84fa7aa17a6816a3d5c500/68747470733a2f2f6e692e6c69746869756d2e636f6d2f74352f696d6167652f736572766572706167652f696d6167652d69642f31353533373769414446383438313243393534393935352f696d6167652d73697a652f6c617267653f763d6d70626c2d312670783d2d31" border="0" alt="Appended Waveform example 2.JPG" title="Appended Waveform example 2.JPG" align="center" /&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 26 Sep 2014 16:21:29 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/Append-Waveform-keep-time-stamp/m-p/3006631#M860417</guid>
      <dc:creator>COIEngineer</dc:creator>
      <dc:date>2014-09-26T16:21:29Z</dc:date>
    </item>
    <item>
      <title>Re: Append Waveform, keep time stamp</title>
      <link>https://ni.lithium.com/t5/LabVIEW/Append-Waveform-keep-time-stamp/m-p/3006647#M860420</link>
      <description>&lt;P&gt;use Raven Fans advice in that case&lt;/P&gt;</description>
      <pubDate>Fri, 26 Sep 2014 16:30:08 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/Append-Waveform-keep-time-stamp/m-p/3006647#M860420</guid>
      <dc:creator>JÞB</dc:creator>
      <dc:date>2014-09-26T16:30:08Z</dc:date>
    </item>
    <item>
      <title>Re: Append Waveform, keep time stamp</title>
      <link>https://ni.lithium.com/t5/LabVIEW/Append-Waveform-keep-time-stamp/m-p/3006677#M860427</link>
      <description>&lt;P&gt;The case structure looks like it does it, but I'm not sure I believe the results (so slightly different topic). I moved the sampling frequency up to 10 kHz, much faster than the one-sample read that is possible (500Hz). Even if I output to a different indicator for each of the loops, the timestamp is only incremented&amp;nbsp;by 0.0001. Does this mean the data are&amp;nbsp;being back-logged, or is this a false timestamp?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you for your help. I'll go ahead and mark it as solved since the main question for the thread is answered.&lt;/P&gt;</description>
      <pubDate>Fri, 26 Sep 2014 16:44:19 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/Append-Waveform-keep-time-stamp/m-p/3006677#M860427</guid>
      <dc:creator>COIEngineer</dc:creator>
      <dc:date>2014-09-26T16:44:19Z</dc:date>
    </item>
    <item>
      <title>Re: Append Waveform, keep time stamp</title>
      <link>https://ni.lithium.com/t5/LabVIEW/Append-Waveform-keep-time-stamp/m-p/3006681#M860428</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://ni.lithium.com/t5/user/viewprofilepage/user-id/310315"&gt;@COIEngineer&lt;/a&gt; wrote:&lt;BR /&gt;
&lt;P&gt;The case structure looks like it does it, but I'm not sure I believe the results (so slightly different topic). I moved the sampling frequency up to 10 kHz, much faster than the one-sample read that is possible (500Hz). Even if I output to a different indicator for each of the loops, the timestamp is only incremented&amp;nbsp;by 0.0001. Does this mean the data are&amp;nbsp;being back-logged, or is this a false timestamp?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you for your help. I'll go ahead and mark it as solved since the main question for the thread is answered.&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;The timestamp coming out of the driver is changing by 0.1ms?&amp;nbsp; That means you are only getting one sample at a time.&amp;nbsp; You will overrun whatever buffer that instrument has quite quickly.&amp;nbsp; You need to be able to read a lot of samples all as once.&lt;/P&gt;</description>
      <pubDate>Fri, 26 Sep 2014 16:46:52 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/Append-Waveform-keep-time-stamp/m-p/3006681#M860428</guid>
      <dc:creator>crossrulz</dc:creator>
      <dc:date>2014-09-26T16:46:52Z</dc:date>
    </item>
    <item>
      <title>Re: Append Waveform, keep time stamp</title>
      <link>https://ni.lithium.com/t5/LabVIEW/Append-Waveform-keep-time-stamp/m-p/3006707#M860431</link>
      <description>Are you really talking about the timestamp or dt? A sample rate of 10 kHz is a dt of .0001.</description>
      <pubDate>Fri, 26 Sep 2014 16:51:52 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/Append-Waveform-keep-time-stamp/m-p/3006707#M860431</guid>
      <dc:creator>Dennis_Knutson</dc:creator>
      <dc:date>2014-09-26T16:51:52Z</dc:date>
    </item>
    <item>
      <title>Re: Append Waveform, keep time stamp</title>
      <link>https://ni.lithium.com/t5/LabVIEW/Append-Waveform-keep-time-stamp/m-p/3006709#M860432</link>
      <description>&lt;P&gt;I did that sampling rate only as a short-term test. From your response, it sounds like the timestamp comes from the device (not Labview). If that's the case, I think the problem is easily solved by, as you said, reading several samples at once. I only need 500 Hz, so it shouldn't be a problem.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you!&lt;/P&gt;</description>
      <pubDate>Fri, 26 Sep 2014 16:52:15 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/Append-Waveform-keep-time-stamp/m-p/3006709#M860432</guid>
      <dc:creator>COIEngineer</dc:creator>
      <dc:date>2014-09-26T16:52:15Z</dc:date>
    </item>
    <item>
      <title>Re: Append Waveform, keep time stamp</title>
      <link>https://ni.lithium.com/t5/LabVIEW/Append-Waveform-keep-time-stamp/m-p/3006713#M860433</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://ni.lithium.com/t5/user/viewprofilepage/user-id/1040"&gt;@Dennis_Knutson&lt;/a&gt; wrote:&lt;BR /&gt;Are you really talking about the timestamp or dt? A sample rate of 10 kHz is a dt of .0001.&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;I set the sample clock on the device very high, and put the read data on a loop (which as about 500 Hz timing), reading out a waveform.&lt;/P&gt;</description>
      <pubDate>Fri, 26 Sep 2014 16:54:26 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/Append-Waveform-keep-time-stamp/m-p/3006713#M860433</guid>
      <dc:creator>COIEngineer</dc:creator>
      <dc:date>2014-09-26T16:54:26Z</dc:date>
    </item>
    <item>
      <title>Re: Append Waveform, keep time stamp</title>
      <link>https://ni.lithium.com/t5/LabVIEW/Append-Waveform-keep-time-stamp/m-p/3006715#M860434</link>
      <description>The timestamp comes from the driver (pc time) - not the device. The dt comes from the device.</description>
      <pubDate>Fri, 26 Sep 2014 16:54:28 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/Append-Waveform-keep-time-stamp/m-p/3006715#M860434</guid>
      <dc:creator>Dennis_Knutson</dc:creator>
      <dc:date>2014-09-26T16:54:28Z</dc:date>
    </item>
    <item>
      <title>Re: Append Waveform, keep time stamp</title>
      <link>https://ni.lithium.com/t5/LabVIEW/Append-Waveform-keep-time-stamp/m-p/3006735#M860436</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://ni.lithium.com/t5/user/viewprofilepage/user-id/1040"&gt;@Dennis_Knutson&lt;/a&gt; wrote:&lt;BR /&gt;The timestamp comes from the driver (pc time) - not the device. The dt comes from the device.&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;This is what I'm looking at, The results at the bottom are a new indicator from the case structure at the bottom of the diagram:&lt;/P&gt;
&lt;P&gt;&lt;IMG src="https://ip1.i.lithium.com/a6b6503da2f645c46e7dc2419b40cba62e5100b5/68747470733a2f2f6e692e6c69746869756d2e636f6d2f74352f696d6167652f736572766572706167652f696d6167652d69642f31353533393769374345393331314145383033343841412f696d6167652d73697a652f6c617267653f763d6d70626c2d312670783d2d31" border="0" alt="Appended Waveform example 3 - code.JPG" title="Appended Waveform example 3 - code.JPG" align="center" /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;From each loop:&lt;/P&gt;
&lt;P&gt;&lt;IMG src="https://ip1.i.lithium.com/deecf3eca86f884b43b08ab8d8d792823621b768/68747470733a2f2f6e692e6c69746869756d2e636f6d2f74352f696d6167652f736572766572706167652f696d6167652d69642f31353533393969344543353436324545333445383431392f696d6167652d73697a652f6f726967696e616c3f763d6d70626c2d312670783d2d31" border="0" alt="Appended Waveform example 3 - results.JPG" title="Appended Waveform example 3 - results.JPG" align="center" /&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 26 Sep 2014 16:59:29 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/Append-Waveform-keep-time-stamp/m-p/3006735#M860436</guid>
      <dc:creator>COIEngineer</dc:creator>
      <dc:date>2014-09-26T16:59:29Z</dc:date>
    </item>
  </channel>
</rss>

