<?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: Understanding Write-to-Text file to fix data appendix issue in LabVIEW</title>
    <link>https://ni.lithium.com/t5/LabVIEW/Understanding-Write-to-Text-file-to-fix-data-appendix-issue/m-p/4478647#M1323402</link>
    <description>&lt;P&gt;Hi nim,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://ni.lithium.com/t5/user/viewprofilepage/user-id/761459"&gt;@nim87&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;Everything about the program seems to work fine, EXCEPT for the fact that the first line of data accidentally gets added to the text header row.&amp;nbsp; So instead of having a clean row of headers that looks like:&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;|| Date || Time|| kv Setpoint || .... || Filament Current || Filament Under Current Status || Fault ||&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;my top row actually looks like:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;|| Date || Time|| kv Setpoint || .... || Filament Current || Filament Under Current Status || Fault5/22/2026 || 57:15.0 || 0 || ...&amp;nbsp; || -0.109 || 0 || 1 ||&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;In CSV files you typically use a linefeed/LF (and/or carriage return/CR) char to end a "row": did you forget to add that LF char to your header line before writing the next line/row?&lt;/P&gt;</description>
    <pubDate>Thu, 04 Jun 2026 06:28:12 GMT</pubDate>
    <dc:creator>GerdW</dc:creator>
    <dc:date>2026-06-04T06:28:12Z</dc:date>
    <item>
      <title>Understanding Write-to-Text file to fix data appendix issue</title>
      <link>https://ni.lithium.com/t5/LabVIEW/Understanding-Write-to-Text-file-to-fix-data-appendix-issue/m-p/4478628#M1323394</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I'm trying to fix an issue with a labview program provided to my company from a 3rd party, specifically with regards to writing data to a .csv file.&lt;/P&gt;
&lt;P&gt;To summarize, this program reads a variety of data from a Power-Supply system thru a single USB-6001 DAQ, and exports said data to a .csv file on command.&amp;nbsp; Everything about the program seems to work fine, EXCEPT for the fact that the first line of data accidentally gets added to the text header row.&amp;nbsp; So instead of having a clean row of headers that looks like:&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;|| Date || Time|| kv Setpoint || .... || Filament Current || Filament Under Current Status || Fault ||&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;my top row actually looks like:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;|| Date || Time|| kv Setpoint || .... || Filament Current || Filament Under Current Status || Fault5/22/2026 || 57:15.0 || 0 || ...&amp;nbsp; || -0.109 || 0 || 1 ||&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Unfortunately, I can't attach the full source code, due to proprietary issues.&amp;nbsp; But if anyone knows a good resource that covers how to Write to a Text file WITHOUT ExpressVIs (as for some reason that's the only thing that pops up when I try searching for the issue) please let me know&lt;/P&gt;</description>
      <pubDate>Wed, 03 Jun 2026 23:02:04 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/Understanding-Write-to-Text-file-to-fix-data-appendix-issue/m-p/4478628#M1323394</guid>
      <dc:creator>nim87</dc:creator>
      <dc:date>2026-06-03T23:02:04Z</dc:date>
    </item>
    <item>
      <title>Re: Understanding Write-to-Text file to fix data appendix issue</title>
      <link>https://ni.lithium.com/t5/LabVIEW/Understanding-Write-to-Text-file-to-fix-data-appendix-issue/m-p/4478647#M1323402</link>
      <description>&lt;P&gt;Hi nim,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://ni.lithium.com/t5/user/viewprofilepage/user-id/761459"&gt;@nim87&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;Everything about the program seems to work fine, EXCEPT for the fact that the first line of data accidentally gets added to the text header row.&amp;nbsp; So instead of having a clean row of headers that looks like:&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;|| Date || Time|| kv Setpoint || .... || Filament Current || Filament Under Current Status || Fault ||&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;my top row actually looks like:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;|| Date || Time|| kv Setpoint || .... || Filament Current || Filament Under Current Status || Fault5/22/2026 || 57:15.0 || 0 || ...&amp;nbsp; || -0.109 || 0 || 1 ||&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;In CSV files you typically use a linefeed/LF (and/or carriage return/CR) char to end a "row": did you forget to add that LF char to your header line before writing the next line/row?&lt;/P&gt;</description>
      <pubDate>Thu, 04 Jun 2026 06:28:12 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/Understanding-Write-to-Text-file-to-fix-data-appendix-issue/m-p/4478647#M1323402</guid>
      <dc:creator>GerdW</dc:creator>
      <dc:date>2026-06-04T06:28:12Z</dc:date>
    </item>
    <item>
      <title>Re: Understanding Write-to-Text file to fix data appendix issue</title>
      <link>https://ni.lithium.com/t5/LabVIEW/Understanding-Write-to-Text-file-to-fix-data-appendix-issue/m-p/4478687#M1323422</link>
      <description>&lt;P&gt;Simple solution. It's better to open the file ref and use the reference, but this should work for you.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Yamaeda_0-1780584879404.png" style="width: 400px;"&gt;&lt;img src="https://ip1.i.lithium.com/eb90937e52e6d9b6303724983fdcf1697f95093a/68747470733a2f2f6e692e6c69746869756d2e636f6d2f74352f696d6167652f736572766572706167652f696d6167652d69642f33353538333069334331364434424239433439333336362f696d6167652d73697a652f6d656469756d3f763d76322670783d343030" role="button" title="Yamaeda_0-1780584879404.png" alt="Yamaeda_0-1780584879404.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Resulting .csv&lt;/P&gt;
&lt;P&gt;Date Time Setpoint Filament&lt;BR /&gt;0.581 0.663 0.515 0.058&lt;BR /&gt;0.218 0.862 0.360 0.682&lt;BR /&gt;0.220 0.707 0.804 0.516&lt;BR /&gt;0.223 0.979 0.853 0.278&lt;BR /&gt;0.661 0.040 0.937 0.259&lt;BR /&gt;0.219 0.513 0.043 0.259&lt;BR /&gt;0.758 0.744 0.213 0.555&lt;BR /&gt;0.865 0.510 0.721 0.836&lt;BR /&gt;0.318 0.098 0.203 0.758&lt;BR /&gt;0.300 0.782 0.488 0.610&lt;/P&gt;</description>
      <pubDate>Thu, 04 Jun 2026 14:55:19 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/Understanding-Write-to-Text-file-to-fix-data-appendix-issue/m-p/4478687#M1323422</guid>
      <dc:creator>Yamaeda</dc:creator>
      <dc:date>2026-06-04T14:55:19Z</dc:date>
    </item>
    <item>
      <title>Re: Understanding Write-to-Text file to fix data appendix issue</title>
      <link>https://ni.lithium.com/t5/LabVIEW/Understanding-Write-to-Text-file-to-fix-data-appendix-issue/m-p/4478797#M1323469</link>
      <description>&lt;P&gt;I use the file primitives these days because this method has a couple advantages.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;OL&gt;
&lt;LI&gt;It opens the file once and closes the file once&lt;BR /&gt;
&lt;OL&gt;
&lt;LI&gt;This has a performance advantage over the Express VI and Write to Delimited Spreadsheet because those VIs opens and closes the file on every write&lt;/LI&gt;
&lt;/OL&gt;
&lt;/LI&gt;
&lt;LI&gt;Having the file open prevents users or other program from opening the file while the LabVIEW program is running.&lt;BR /&gt;
&lt;OL&gt;
&lt;LI&gt;Windows will Lock the file access preventing a Sharing Violation that will crash your LabVIEW if someone open the file between writes while using the Express VI or Write to Delimited Spreadsheet&lt;/LI&gt;
&lt;/OL&gt;
&lt;/LI&gt;
&lt;/OL&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="wtfCapture.PNG" style="width: 585px;"&gt;&lt;img src="https://ip1.i.lithium.com/d7b71e75668b6d618d6a004931c4fb2ab7af6869/68747470733a2f2f6e692e6c69746869756d2e636f6d2f74352f696d6167652f736572766572706167652f696d6167652d69642f33353538353669363142354636434143394533434234372f696d6167652d73697a652f6c617267653f763d76322670783d393939" role="button" title="wtfCapture.PNG" alt="wtfCapture.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 05 Jun 2026 14:26:57 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/Understanding-Write-to-Text-file-to-fix-data-appendix-issue/m-p/4478797#M1323469</guid>
      <dc:creator>RTSLVU</dc:creator>
      <dc:date>2026-06-05T14:26:57Z</dc:date>
    </item>
  </channel>
</rss>

