<?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: Save dynamic data from DAQ system into waveform file/binary file in LabVIEW</title>
    <link>https://ni.lithium.com/t5/LabVIEW/Save-dynamic-data-from-DAQ-system-into-waveform-file-binary-file/m-p/1030479#M458998</link>
    <description>&lt;P&gt;Hi David, I have try&amp;nbsp;with the write waveform into file in the same loop as the DAQ assistance and&amp;nbsp;the programme is works but I&amp;nbsp;think&amp;nbsp;only the first interation is written to the file.When i try to read the file, only the data for first interation is display on the graph so I am not sure about this. I have post the codes here. I try with 3 simulate signals first then I will replace with DAQ assistance if the programme is work.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you.Have a nice day&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Sue&lt;/P&gt;</description>
    <pubDate>Fri, 27 Nov 2009 13:38:23 GMT</pubDate>
    <dc:creator>109865</dc:creator>
    <dc:date>2009-11-27T13:38:23Z</dc:date>
    <item>
      <title>Save dynamic data from DAQ system into waveform file/binary file</title>
      <link>https://ni.lithium.com/t5/LabVIEW/Save-dynamic-data-from-DAQ-system-into-waveform-file-binary-file/m-p/1030055#M458784</link>
      <description>&lt;P&gt;Hi, I am new to LabView. I am using the DAQ assistance to get my signal that sampling with 1MHz.I want to save the data into waveform file or binary file. Is there any clue to save the data continuously in waveform or binary file?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Sue&lt;/P&gt;</description>
      <pubDate>Thu, 26 Nov 2009 12:05:38 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/Save-dynamic-data-from-DAQ-system-into-waveform-file-binary-file/m-p/1030055#M458784</guid>
      <dc:creator>109865</dc:creator>
      <dc:date>2009-11-26T12:05:38Z</dc:date>
    </item>
    <item>
      <title>Re: Save dynamic data from DAQ system into waveform file/binary file</title>
      <link>https://ni.lithium.com/t5/LabVIEW/Save-dynamic-data-from-DAQ-system-into-waveform-file-binary-file/m-p/1030083#M458799</link>
      <description>&lt;P&gt;Hi Sue &lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;There are multiple ways of doing this, the simplest is just to stay with the express VIs and use the "Write to Measurement File" ExpressVI. What you have to keep in mind is that writing data to file is time consuming. If you try to write your data to file in the same loop at the same time as you read it using the DAQ Assistant it can cause you to miss samples. To avoid this either buffer your data and just write it once to file when the acqusition is done. This however may not be practical depending on how much data you intend to read. The best solution is to work with two loops, one reading the data and one writing it to file. This is called a Producer/Consumer Architecture. There is a template for it if you choose File-&amp;gt; New and then navigate to VI-&amp;gt; From Template -&amp;gt; Frameworks -&amp;gt; Design Patterns -&amp;gt; Producer/Consumer (Data)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hope this helps&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best Regards&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;David&lt;/P&gt;&lt;P&gt;NISW&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;PS. The missing samples problem&amp;nbsp;is not an issue if you are just acquring a finite number of samples. DS.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 26 Nov 2009 12:59:45 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/Save-dynamic-data-from-DAQ-system-into-waveform-file-binary-file/m-p/1030083#M458799</guid>
      <dc:creator>Davidek</dc:creator>
      <dc:date>2009-11-26T12:59:45Z</dc:date>
    </item>
    <item>
      <title>Re: Save dynamic data from DAQ system into waveform file/binary file</title>
      <link>https://ni.lithium.com/t5/LabVIEW/Save-dynamic-data-from-DAQ-system-into-waveform-file-binary-file/m-p/1030183#M458852</link>
      <description>&lt;P&gt;Thanks David. I have try to put the DAQ assistance in&amp;nbsp;a loop and transform&amp;nbsp;to waveform before&amp;nbsp;i write to a file.&amp;nbsp;I put the write waveform to&amp;nbsp;file in separate loop that is outside of the loop of DAQ. However,the file can not be found on the specified file path that i put. Is there any suggestion?I want to do something similar as the link below. &lt;/P&gt;&lt;P&gt;&lt;A href="http://forums.ni.com/ni/board/message?board.id=170&amp;amp;message.id=189059&amp;amp;query.id=240237#M189059" target="_blank"&gt;http://forums.ni.com/ni/board/message?board.id=170&amp;amp;message.id=189059&amp;amp;query.id=240237#M189059&lt;/A&gt;&lt;/P&gt;&lt;P&gt;but i want to a file once at the end. &amp;nbsp;&lt;/P&gt;&lt;P&gt;I did try to put the write waveform to file in a case structure loop but still the same problems. &lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you very much.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Sue&lt;/P&gt;</description>
      <pubDate>Thu, 26 Nov 2009 15:17:53 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/Save-dynamic-data-from-DAQ-system-into-waveform-file-binary-file/m-p/1030183#M458852</guid>
      <dc:creator>109865</dc:creator>
      <dc:date>2009-11-26T15:17:53Z</dc:date>
    </item>
    <item>
      <title>Re: Save dynamic data from DAQ system into waveform file/binary file</title>
      <link>https://ni.lithium.com/t5/LabVIEW/Save-dynamic-data-from-DAQ-system-into-waveform-file-binary-file/m-p/1030194#M458857</link>
      <description>&lt;P&gt;Hi Sue&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Could you post your code so I can have a look at what you are doing?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best Regards&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;David&lt;/P&gt;</description>
      <pubDate>Thu, 26 Nov 2009 15:30:18 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/Save-dynamic-data-from-DAQ-system-into-waveform-file-binary-file/m-p/1030194#M458857</guid>
      <dc:creator>Davidek</dc:creator>
      <dc:date>2009-11-26T15:30:18Z</dc:date>
    </item>
    <item>
      <title>Re: Save dynamic data from DAQ system into waveform file/binary file</title>
      <link>https://ni.lithium.com/t5/LabVIEW/Save-dynamic-data-from-DAQ-system-into-waveform-file-binary-file/m-p/1030479#M458998</link>
      <description>&lt;P&gt;Hi David, I have try&amp;nbsp;with the write waveform into file in the same loop as the DAQ assistance and&amp;nbsp;the programme is works but I&amp;nbsp;think&amp;nbsp;only the first interation is written to the file.When i try to read the file, only the data for first interation is display on the graph so I am not sure about this. I have post the codes here. I try with 3 simulate signals first then I will replace with DAQ assistance if the programme is work.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you.Have a nice day&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Sue&lt;/P&gt;</description>
      <pubDate>Fri, 27 Nov 2009 13:38:23 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/Save-dynamic-data-from-DAQ-system-into-waveform-file-binary-file/m-p/1030479#M458998</guid>
      <dc:creator>109865</dc:creator>
      <dc:date>2009-11-27T13:38:23Z</dc:date>
    </item>
    <item>
      <title>Re: Save dynamic data from DAQ system into waveform file/binary file</title>
      <link>https://ni.lithium.com/t5/LabVIEW/Save-dynamic-data-from-DAQ-system-into-waveform-file-binary-file/m-p/1032022#M459666</link>
      <description>&lt;P&gt;Hi Sue&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I think your problem is that you are overwriting the data, not appending.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here's how I would probably do it if I was using Express VIs and doing a continious acquisition(The DAQ Assistant is configured to acquire 3 channels of data).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;IMG src="http://forums.ni.com/t5/image/serverpage/image-id/7798iDA2A6344F1B118CE/image-size/original?v=mpbl-1&amp;amp;px=-1" border="0" alt="ExpressProducerConsumer.png" title="ExpressProducerConsumer.png" width="668" height="537" align="center" /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is a Producer/Consumer design were you read the data in one loop and write it to file in another. I would recommend writing to a TDMS file. You will also have to play around a bit woth the acqusition settings (number of samples to acquire and timing on the top loop)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best Regards&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;David&lt;/P&gt;</description>
      <pubDate>Tue, 01 Dec 2009 09:11:15 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/Save-dynamic-data-from-DAQ-system-into-waveform-file-binary-file/m-p/1032022#M459666</guid>
      <dc:creator>Davidek</dc:creator>
      <dc:date>2009-12-01T09:11:15Z</dc:date>
    </item>
  </channel>
</rss>

