<?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 ImageToArray function sometimes reports valid input as &amp;quot;not an image&amp;quot; in LabVIEW</title>
    <link>https://ni.lithium.com/t5/LabVIEW/ImageToArray-function-sometimes-reports-valid-input-as-quot-not/m-p/633650#M293133</link>
    <description>ImageToArray function sometimes reports valid input as "not an image"
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;image is displayed, then immediately piped into the ImageToArray function. most of the time, there is no error. occasionally, ImageToArray will report a "not an image" error and halt program execution &lt;EM&gt;Even though the image displays properly and contains valid values!&lt;/EM&gt; &lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;What the heck?&lt;/DIV&gt;</description>
    <pubDate>Fri, 04 Jan 2008 23:45:26 GMT</pubDate>
    <dc:creator>Root_Canal</dc:creator>
    <dc:date>2008-01-04T23:45:26Z</dc:date>
    <item>
      <title>ImageToArray function sometimes reports valid input as "not an image"</title>
      <link>https://ni.lithium.com/t5/LabVIEW/ImageToArray-function-sometimes-reports-valid-input-as-quot-not/m-p/633650#M293133</link>
      <description>ImageToArray function sometimes reports valid input as "not an image"
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;image is displayed, then immediately piped into the ImageToArray function. most of the time, there is no error. occasionally, ImageToArray will report a "not an image" error and halt program execution &lt;EM&gt;Even though the image displays properly and contains valid values!&lt;/EM&gt; &lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;What the heck?&lt;/DIV&gt;</description>
      <pubDate>Fri, 04 Jan 2008 23:45:26 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/ImageToArray-function-sometimes-reports-valid-input-as-quot-not/m-p/633650#M293133</guid>
      <dc:creator>Root_Canal</dc:creator>
      <dc:date>2008-01-04T23:45:26Z</dc:date>
    </item>
    <item>
      <title>Re: ImageToArray function sometimes reports valid input as "not an image"</title>
      <link>https://ni.lithium.com/t5/LabVIEW/ImageToArray-function-sometimes-reports-valid-input-as-quot-not/m-p/633733#M293180</link>
      <description>I don't use IMAQ, but it sounds to me like you might have a race conditions. I know that an IMAQ image wire is actually a pointer, so I'm guessing that the image is not there when the VI runs but is there when the indicator needs to be updated. Can you post an image of your code or the actual VI itself?&lt;BR /&gt;&lt;DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Sat, 05 Jan 2008 17:13:59 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/ImageToArray-function-sometimes-reports-valid-input-as-quot-not/m-p/633733#M293180</guid>
      <dc:creator>tst</dc:creator>
      <dc:date>2008-01-05T17:13:59Z</dc:date>
    </item>
    <item>
      <title>Re: ImageToArray function sometimes reports valid input as "not an image"</title>
      <link>https://ni.lithium.com/t5/LabVIEW/ImageToArray-function-sometimes-reports-valid-input-as-quot-not/m-p/634145#M293360</link>
      <description>&lt;DIV&gt;&lt;/DIV&gt;
&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;tst is right, race conditions can certainly cause such errors, especially the ones that you see only sporadically. Is there a chance that you are destroying the image buffer in parallel? Make sure that you dont have an IMAQ Dispose VI that might be reached before the Image to Array VI.&lt;/P&gt;
&lt;P&gt;Jaidev&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 07 Jan 2008 16:50:21 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/ImageToArray-function-sometimes-reports-valid-input-as-quot-not/m-p/634145#M293360</guid>
      <dc:creator>Jaidev</dc:creator>
      <dc:date>2008-01-07T16:50:21Z</dc:date>
    </item>
    <item>
      <title>Re: ImageToArray function sometimes reports valid input as "not an image"</title>
      <link>https://ni.lithium.com/t5/LabVIEW/ImageToArray-function-sometimes-reports-valid-input-as-quot-not/m-p/634916#M293657</link>
      <description>image is not being deleted out of turn, here is a picture of the vi:

[URL=http://allyoucanupload.webshots.com/v/2000660280820369453][IMG]http://aycu10.webshots.com/image/37929/2000660280820369453_th.jpg[/IMG][/URL]

the data should arrive at the "before" output and the IMAQ array to image function at the 'same' time. the image can always be displayed properly. it contains valid values, but every once in a while "array to image" tells me it's not an image!

If we assume this is a race condition, how do I solve the problem?</description>
      <pubDate>Tue, 08 Jan 2008 20:12:10 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/ImageToArray-function-sometimes-reports-valid-input-as-quot-not/m-p/634916#M293657</guid>
      <dc:creator>Root_Canal</dc:creator>
      <dc:date>2008-01-08T20:12:10Z</dc:date>
    </item>
    <item>
      <title>Re: ImageToArray function sometimes reports valid input as "not an image"</title>
      <link>https://ni.lithium.com/t5/LabVIEW/ImageToArray-function-sometimes-reports-valid-input-as-quot-not/m-p/634932#M293663</link>
      <description>Your image wasn't accessible. You can just attach it to your post.&lt;BR /&gt;&lt;DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Tue, 08 Jan 2008 20:33:22 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/ImageToArray-function-sometimes-reports-valid-input-as-quot-not/m-p/634932#M293663</guid>
      <dc:creator>tst</dc:creator>
      <dc:date>2008-01-08T20:33:22Z</dc:date>
    </item>
    <item>
      <title>Re: ImageToArray function sometimes reports valid input as "not an image"</title>
      <link>https://ni.lithium.com/t5/LabVIEW/ImageToArray-function-sometimes-reports-valid-input-as-quot-not/m-p/634955#M293671</link>
      <description>&lt;DIV&gt;&lt;IMG src="https://ip1.i.lithium.com/76619edf2fe4dfc1cd3ddf7849dc97c802c9e924/687474703a2f2f6179637531302e77656273686f74732e636f6d2f696d6167652f33373932392f323030303636303238303832303336393435335f72732e6a7067" /&gt;&lt;/DIV&gt;</description>
      <pubDate>Tue, 08 Jan 2008 20:56:53 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/ImageToArray-function-sometimes-reports-valid-input-as-quot-not/m-p/634955#M293671</guid>
      <dc:creator>Root_Canal</dc:creator>
      <dc:date>2008-01-08T20:56:53Z</dc:date>
    </item>
    <item>
      <title>Re: ImageToArray function sometimes reports valid input as "not an image"</title>
      <link>https://ni.lithium.com/t5/LabVIEW/ImageToArray-function-sometimes-reports-valid-input-as-quot-not/m-p/634962#M293675</link>
      <description>There is nothing in that image that gurantees that the Image to Array VI will run before the close VI. It may look to you like it requires a lot more code, so you would expect that it would run first, but apparently, the VI which releases the reference runs before the Image to Array VI. Again, you should note the image wire does not hold the image itself - it is a pointer to the image, so destroying the image means you can't access it anymore.&lt;BR /&gt;&lt;BR /&gt;If the Image to Array VI has error I/O, use that to force it to execute before the close VI. If it does not, you can use a flat sequence structure.&lt;BR /&gt;&lt;DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Tue, 08 Jan 2008 21:06:36 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/ImageToArray-function-sometimes-reports-valid-input-as-quot-not/m-p/634962#M293675</guid>
      <dc:creator>tst</dc:creator>
      <dc:date>2008-01-08T21:06:36Z</dc:date>
    </item>
    <item>
      <title>Re: ImageToArray function sometimes reports valid input as "not an image"</title>
      <link>https://ni.lithium.com/t5/LabVIEW/ImageToArray-function-sometimes-reports-valid-input-as-quot-not/m-p/634965#M293676</link>
      <description>&lt;DIV&gt;thanks.&lt;/DIV&gt;</description>
      <pubDate>Tue, 08 Jan 2008 21:10:22 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/ImageToArray-function-sometimes-reports-valid-input-as-quot-not/m-p/634965#M293676</guid>
      <dc:creator>Root_Canal</dc:creator>
      <dc:date>2008-01-08T21:10:22Z</dc:date>
    </item>
  </channel>
</rss>

