<?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: Program halts on build path, path/file not created. in LabVIEW</title>
    <link>https://ni.lithium.com/t5/LabVIEW/Program-halts-on-build-path-path-file-not-created/m-p/2006211#M659727</link>
    <description>&lt;P&gt;I manually created the path and it works fine.&amp;nbsp; Why, if it's creating the file, doesn't it create the path as well?&amp;nbsp; I've done this using other paths and it has worked.&lt;/P&gt;</description>
    <pubDate>Fri, 25 May 2012 16:35:42 GMT</pubDate>
    <dc:creator>rickford66</dc:creator>
    <dc:date>2012-05-25T16:35:42Z</dc:date>
    <item>
      <title>Program halts on build path, path/file not created.</title>
      <link>https://ni.lithium.com/t5/LabVIEW/Program-halts-on-build-path-path-file-not-created/m-p/2006205#M659725</link>
      <description>&lt;P&gt;I have a small vi that reads from a file on the root drive.&amp;nbsp; If the file is not there, it creates it.&amp;nbsp; First off, the vi is halting at build path icon.&amp;nbsp; This icon is flashing for some reason, but no warning is given.&amp;nbsp; It's as if there is a break point there, but I didn't put one there, and I don't see one.&amp;nbsp; Then, when it continues, it fails to create the non-existing path and file.&amp;nbsp; I've attached the vi in question.&amp;nbsp; BTW, this is LV7.0.&amp;nbsp; Thanks.&lt;/P&gt;</description>
      <pubDate>Fri, 25 May 2012 16:28:17 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/Program-halts-on-build-path-path-file-not-created/m-p/2006205#M659725</guid>
      <dc:creator>rickford66</dc:creator>
      <dc:date>2012-05-25T16:28:17Z</dc:date>
    </item>
    <item>
      <title>Re: Program halts on build path, path/file not created.</title>
      <link>https://ni.lithium.com/t5/LabVIEW/Program-halts-on-build-path-path-file-not-created/m-p/2006211#M659727</link>
      <description>&lt;P&gt;I manually created the path and it works fine.&amp;nbsp; Why, if it's creating the file, doesn't it create the path as well?&amp;nbsp; I've done this using other paths and it has worked.&lt;/P&gt;</description>
      <pubDate>Fri, 25 May 2012 16:35:42 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/Program-halts-on-build-path-path-file-not-created/m-p/2006211#M659727</guid>
      <dc:creator>rickford66</dc:creator>
      <dc:date>2012-05-25T16:35:42Z</dc:date>
    </item>
    <item>
      <title>Re: Program halts on build path, path/file not created.</title>
      <link>https://ni.lithium.com/t5/LabVIEW/Program-halts-on-build-path-path-file-not-created/m-p/2006243#M659734</link>
      <description>&lt;P&gt;I even tried programmatically creating the folder with "New Directory" but that gives the same error 7.&amp;nbsp; I have administrative rights on my computer, so it should allow me to create the folder in question.&amp;nbsp; The OS is Windows XP.&lt;/P&gt;</description>
      <pubDate>Fri, 25 May 2012 16:47:00 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/Program-halts-on-build-path-path-file-not-created/m-p/2006243#M659734</guid>
      <dc:creator>rickford66</dc:creator>
      <dc:date>2012-05-25T16:47:00Z</dc:date>
    </item>
    <item>
      <title>Re: Program halts on build path, path/file not created.</title>
      <link>https://ni.lithium.com/t5/LabVIEW/Program-halts-on-build-path-path-file-not-created/m-p/2006267#M659741</link>
      <description>&lt;P&gt;I figured it out.&amp;nbsp; It will only create one directory at a time.&amp;nbsp; I had to convert the directory path into an&amp;nbsp;array and create each directory in sequence.&lt;/P&gt;</description>
      <pubDate>Fri, 25 May 2012 17:14:43 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/Program-halts-on-build-path-path-file-not-created/m-p/2006267#M659741</guid>
      <dc:creator>rickford66</dc:creator>
      <dc:date>2012-05-25T17:14:43Z</dc:date>
    </item>
    <item>
      <title>Re: Program halts on build path, path/file not created.</title>
      <link>https://ni.lithium.com/t5/LabVIEW/Program-halts-on-build-path-path-file-not-created/m-p/2006281#M659744</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://ni.lithium.com/t5/user/viewprofilepage/user-id/51829"&gt;@rickford66&lt;/a&gt; wrote:&lt;BR /&gt;
&lt;P&gt;I figured it out.&amp;nbsp; It will only create one directory at a time.&amp;nbsp; I had to convert the directory path into an&amp;nbsp;array and create each directory in sequence.&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&lt;BR /&gt;When you do that take a good care of the first element in the array, it will be C and not C: so if you autoindex a for loop for the case i=0 you need to add the colon to the indexed string.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Ben64&lt;/P&gt;</description>
      <pubDate>Fri, 25 May 2012 17:34:24 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/Program-halts-on-build-path-path-file-not-created/m-p/2006281#M659744</guid>
      <dc:creator>ben64</dc:creator>
      <dc:date>2012-05-25T17:34:24Z</dc:date>
    </item>
    <item>
      <title>Re: Program halts on build path, path/file not created.</title>
      <link>https://ni.lithium.com/t5/LabVIEW/Program-halts-on-build-path-path-file-not-created/m-p/2006331#M659755</link>
      <description>&lt;P&gt;I just put it back together with the Build Path function and it works.&lt;/P&gt;</description>
      <pubDate>Fri, 25 May 2012 18:20:51 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/Program-halts-on-build-path-path-file-not-created/m-p/2006331#M659755</guid>
      <dc:creator>rickford66</dc:creator>
      <dc:date>2012-05-25T18:20:51Z</dc:date>
    </item>
    <item>
      <title>Re: Program halts on build path, path/file not created.</title>
      <link>https://ni.lithium.com/t5/LabVIEW/Program-halts-on-build-path-path-file-not-created/m-p/2006507#M659784</link>
      <description>&lt;P&gt;I just found out that if you use an empty path constant to the base path input of the Build Path function and C to the name or relative path input it will create the base path C:\.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In your vi you should use the "Check if File or Folder Exist.vi" (from the File IO -&amp;gt; Advanced File Functions palette) to select the TRUE or FALSE case instead of the error output of the open file function.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Ben64&lt;/P&gt;</description>
      <pubDate>Fri, 25 May 2012 20:39:48 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/Program-halts-on-build-path-path-file-not-created/m-p/2006507#M659784</guid>
      <dc:creator>ben64</dc:creator>
      <dc:date>2012-05-25T20:39:48Z</dc:date>
    </item>
    <item>
      <title>Re: Program halts on build path, path/file not created.</title>
      <link>https://ni.lithium.com/t5/LabVIEW/Program-halts-on-build-path-path-file-not-created/m-p/2006517#M659788</link>
      <description>&lt;P&gt;Here's what I have....&lt;/P&gt;</description>
      <pubDate>Fri, 25 May 2012 20:48:48 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/Program-halts-on-build-path-path-file-not-created/m-p/2006517#M659788</guid>
      <dc:creator>rickford66</dc:creator>
      <dc:date>2012-05-25T20:48:48Z</dc:date>
    </item>
    <item>
      <title>Re: Program halts on build path, path/file not created.</title>
      <link>https://ni.lithium.com/t5/LabVIEW/Program-halts-on-build-path-path-file-not-created/m-p/2006559#M659798</link>
      <description>&lt;P&gt;I've done something similar but watch the error cluster wire, usually it is used to direct the dataflow (I just wire the path and error cluster wires throught the True case).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Ben64&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/76435iEF0C1132F4B2A39A/image-size/original?v=mpbl-1&amp;amp;px=-1" border="0" alt="Create Directory.png" title="Create Directory.png" align="center" /&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 25 May 2012 21:01:34 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/Program-halts-on-build-path-path-file-not-created/m-p/2006559#M659798</guid>
      <dc:creator>ben64</dc:creator>
      <dc:date>2012-05-25T21:01:34Z</dc:date>
    </item>
    <item>
      <title>Re: Program halts on build path, path/file not created.</title>
      <link>https://ni.lithium.com/t5/LabVIEW/Program-halts-on-build-path-path-file-not-created/m-p/2006603#M659807</link>
      <description>&lt;P&gt;Not sure if your icons are the same as mine, but my File Info function throws an error if the folder does not exist.&amp;nbsp; Therefore, I don't feed that error through, I just "absorb it" by feeding it to the unbundle cluster.&amp;nbsp; Probably not the best programming technique, but it silences it.&amp;nbsp; Also, the New function will return an error if the directory already exists.&amp;nbsp; The behavior I want is for it to create the folder if it does not exist.&amp;nbsp; If it exists, then do nothing.&lt;/P&gt;</description>
      <pubDate>Fri, 25 May 2012 21:32:28 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/Program-halts-on-build-path-path-file-not-created/m-p/2006603#M659807</guid>
      <dc:creator>rickford66</dc:creator>
      <dc:date>2012-05-25T21:32:28Z</dc:date>
    </item>
    <item>
      <title>Re: Program halts on build path, path/file not created.</title>
      <link>https://ni.lithium.com/t5/LabVIEW/Program-halts-on-build-path-path-file-not-created/m-p/2007187#M659955</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://ni.lithium.com/t5/user/viewprofilepage/user-id/51829"&gt;@rickford66&lt;/a&gt; wrote:&lt;BR /&gt;
&lt;P&gt;Not sure if your icons are the same as mine, but my File Info function throws an error if the folder does not exist.&amp;nbsp; Therefore, I don't feed that error through, I just "absorb it" by feeding it to the unbundle cluster.&amp;nbsp; Probably not the best programming technique, but it silences it.&amp;nbsp; Also, the New function will return an error if the directory already exists.&amp;nbsp; The behavior I want is for it to create the folder if it does not exist.&amp;nbsp; If it exists, then do nothing.&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&lt;BR /&gt;The vi I use is "Check if File or Folder Exist.vi" (from the File IO -&amp;gt; Advanced File Functions palette) and it just return a true or false if the file or folder exist or not. I don't know if this vi exist in LV7.1.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Ben64&lt;/P&gt;</description>
      <pubDate>Sun, 27 May 2012 23:01:33 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/Program-halts-on-build-path-path-file-not-created/m-p/2007187#M659955</guid>
      <dc:creator>ben64</dc:creator>
      <dc:date>2012-05-27T23:01:33Z</dc:date>
    </item>
  </channel>
</rss>

