<?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: Compact Flash Storage Question in LabVIEW</title>
    <link>https://ni.lithium.com/t5/LabVIEW/Compact-Flash-Storage-Question/m-p/766592#M351237</link>
    <description>&lt;P&gt;Hi there,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If I was programming this, I would do a daily or weekly file (Brand new from scratch). This would lower the risk of corruption in case of a crash, and make it more easy to get back the data.&amp;nbsp;&lt;/P&gt;&lt;P&gt;For the Closure of the file, I would program a small routine that would close the file every day/hours/minutes and reopen it at the next itteration with the append to file option turned on.(you can do this with a case structure that would be on at regular intervals) This would limit the number of time costly file access, and still close the dfile on a regular basis (allowing an easier recovery) .&lt;/P&gt;&lt;P&gt;The problem if you use a simple write to file function is that it will open write and close a file at every call (this is starving the processor), but if you do it once in a while, it doesn't hurt too much....&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I hope this helps&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Matthieu &lt;/P&gt;</description>
    <pubDate>Mon, 25 Aug 2008 10:58:46 GMT</pubDate>
    <dc:creator>MatthieuD</dc:creator>
    <dc:date>2008-08-25T10:58:46Z</dc:date>
    <item>
      <title>Compact Flash Storage Question</title>
      <link>https://ni.lithium.com/t5/LabVIEW/Compact-Flash-Storage-Question/m-p/765406#M350634</link>
      <description>I have an ebmedded program on a cFP-2120 which is saving data to a compact flash card.&amp;nbsp; If I access the card via FTP I can transfer all the data but when I turn off the datalogger and then pull the card and put it in a computer I see a file of zero size.&amp;nbsp; The embedded program runs a continuous loop so it does not have a file close function (this is a simple test of CF use).&amp;nbsp; Is this a problem caused by the lack of file closure?</description>
      <pubDate>Thu, 21 Aug 2008 19:34:45 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/Compact-Flash-Storage-Question/m-p/765406#M350634</guid>
      <dc:creator>Gizmaa</dc:creator>
      <dc:date>2008-08-21T19:34:45Z</dc:date>
    </item>
    <item>
      <title>Re: Compact Flash Storage Question</title>
      <link>https://ni.lithium.com/t5/LabVIEW/Compact-Flash-Storage-Question/m-p/766102#M350976</link>
      <description>&lt;P&gt;Hi Gizmaa,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It is possible that the problem you are seeing is due to not closing the file that you are writing depending on how data is being written to the flash card. Try including a file close VI in your program and see if that fixes the problem. It is good practice to include a file close VI after the loop with read or write VIs so that multiple files are not continually opened and problems like yours are avoided.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Stephen S.&lt;/P&gt;</description>
      <pubDate>Fri, 22 Aug 2008 18:49:27 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/Compact-Flash-Storage-Question/m-p/766102#M350976</guid>
      <dc:creator>Stephen_S.</dc:creator>
      <dc:date>2008-08-22T18:49:27Z</dc:date>
    </item>
    <item>
      <title>Re: Compact Flash Storage Question</title>
      <link>https://ni.lithium.com/t5/LabVIEW/Compact-Flash-Storage-Question/m-p/766142#M350998</link>
      <description>&lt;P&gt;Is there a write method that is more fault tolerant?&amp;nbsp; If my datalogger goes down for any reason I don't want hours/days of data lots.&lt;/P&gt;</description>
      <pubDate>Fri, 22 Aug 2008 19:47:18 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/Compact-Flash-Storage-Question/m-p/766142#M350998</guid>
      <dc:creator>Gizmaa</dc:creator>
      <dc:date>2008-08-22T19:47:18Z</dc:date>
    </item>
    <item>
      <title>Re: Compact Flash Storage Question</title>
      <link>https://ni.lithium.com/t5/LabVIEW/Compact-Flash-Storage-Question/m-p/766592#M351237</link>
      <description>&lt;P&gt;Hi there,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If I was programming this, I would do a daily or weekly file (Brand new from scratch). This would lower the risk of corruption in case of a crash, and make it more easy to get back the data.&amp;nbsp;&lt;/P&gt;&lt;P&gt;For the Closure of the file, I would program a small routine that would close the file every day/hours/minutes and reopen it at the next itteration with the append to file option turned on.(you can do this with a case structure that would be on at regular intervals) This would limit the number of time costly file access, and still close the dfile on a regular basis (allowing an easier recovery) .&lt;/P&gt;&lt;P&gt;The problem if you use a simple write to file function is that it will open write and close a file at every call (this is starving the processor), but if you do it once in a while, it doesn't hurt too much....&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I hope this helps&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Matthieu &lt;/P&gt;</description>
      <pubDate>Mon, 25 Aug 2008 10:58:46 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/Compact-Flash-Storage-Question/m-p/766592#M351237</guid>
      <dc:creator>MatthieuD</dc:creator>
      <dc:date>2008-08-25T10:58:46Z</dc:date>
    </item>
  </channel>
</rss>

