<?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 IMAQ imgPlotDC2 in Machine Vision</title>
    <link>https://ni.lithium.com/t5/Machine-Vision/IMAQ-imgPlotDC2/m-p/2142020#M36498</link>
    <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I'm using function imgPlotDC2 to capture an image from my frame grabber and display it. It works find in my 32-bit application (left picture), but the 64-bit application image is messed up. Any ideas?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks,&lt;/P&gt;
&lt;P&gt;Nate&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;IMG src="https://ip1.i.lithium.com/c8cfa204480aa37e74b16f9bcbb873a889826e50/68747470733a2f2f6e692e6c69746869756d2e636f6d2f74352f696d6167652f736572766572706167652f696d6167652d69642f383532393469384544463838344338453836424438332f696d6167652d73697a652f6f726967696e616c3f763d6d70626c2d312670783d2d31" border="0" alt="32-bit Capture" title="32-bit Capture" align="center" /&gt;&lt;IMG src="https://ip1.i.lithium.com/4b0520b21ef74401256c9ad35b4c1eacef5ba86d/68747470733a2f2f6e692e6c69746869756d2e636f6d2f74352f696d6167652f736572766572706167652f696d6167652d69642f383532393669393143393644333632384131373438452f696d6167652d73697a652f6f726967696e616c3f763d6d70626c2d312670783d2d31" border="0" alt="64-bit Image" title="64-bit Image" align="center" /&gt;&lt;/P&gt;</description>
    <pubDate>Thu, 30 Aug 2012 22:57:59 GMT</pubDate>
    <dc:creator>Nate_W.</dc:creator>
    <dc:date>2012-08-30T22:57:59Z</dc:date>
    <item>
      <title>IMAQ imgPlotDC2</title>
      <link>https://ni.lithium.com/t5/Machine-Vision/IMAQ-imgPlotDC2/m-p/2142020#M36498</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I'm using function imgPlotDC2 to capture an image from my frame grabber and display it. It works find in my 32-bit application (left picture), but the 64-bit application image is messed up. Any ideas?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks,&lt;/P&gt;
&lt;P&gt;Nate&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;IMG src="https://ip1.i.lithium.com/c8cfa204480aa37e74b16f9bcbb873a889826e50/68747470733a2f2f6e692e6c69746869756d2e636f6d2f74352f696d6167652f736572766572706167652f696d6167652d69642f383532393469384544463838344338453836424438332f696d6167652d73697a652f6f726967696e616c3f763d6d70626c2d312670783d2d31" border="0" alt="32-bit Capture" title="32-bit Capture" align="center" /&gt;&lt;IMG src="https://ip1.i.lithium.com/4b0520b21ef74401256c9ad35b4c1eacef5ba86d/68747470733a2f2f6e692e6c69746869756d2e636f6d2f74352f696d6167652f736572766572706167652f696d6167652d69642f383532393669393143393644333632384131373438452f696d6167652d73697a652f6f726967696e616c3f763d6d70626c2d312670783d2d31" border="0" alt="64-bit Image" title="64-bit Image" align="center" /&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 30 Aug 2012 22:57:59 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/Machine-Vision/IMAQ-imgPlotDC2/m-p/2142020#M36498</guid>
      <dc:creator>Nate_W.</dc:creator>
      <dc:date>2012-08-30T22:57:59Z</dc:date>
    </item>
    <item>
      <title>Re: IMAQ imgPlotDC2</title>
      <link>https://ni.lithium.com/t5/Machine-Vision/IMAQ-imgPlotDC2/m-p/2144872#M36527</link>
      <description>&lt;P&gt;"where" are you calling that function? not from LabVIEW I imagine.&lt;/P&gt;
&lt;P&gt;LabWindows CVI? Else?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;When you install IMAQ drivers on a windows 64bit you can insependently select 32bit (WOW) and 64bit install. And then if you're using LabVIEW to develop your application you have to install the correct version you want LV 32bit or LV64bit (both can be installed on the same computer it works) and LV 32bit will use the 32b IMAQ driver and LV64bit will use the 64bit IMAq driver automatically, but if you're calling function from a different environnement I'm not sure how to specify the one you want.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Sorry, can't help more than that.&lt;/P&gt;</description>
      <pubDate>Tue, 04 Sep 2012 11:20:54 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/Machine-Vision/IMAQ-imgPlotDC2/m-p/2144872#M36527</guid>
      <dc:creator>TiTou</dc:creator>
      <dc:date>2012-09-04T11:20:54Z</dc:date>
    </item>
    <item>
      <title>Re: IMAQ imgPlotDC2</title>
      <link>https://ni.lithium.com/t5/Machine-Vision/IMAQ-imgPlotDC2/m-p/2145242#M36530</link>
      <description>&lt;P&gt;Hi Nate,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;That garbled image somewhat looks like to me like there is some sort of mix-up regarding the bit-depth to display the image with. What bit depth is your camera file setup for? What are the flags you pass to imgPlotDC2?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Can you try running one of the shipping C examples that display images? "snap imgplot.c" seems like it uses&amp;nbsp;imgPlot2(), but that just redirects into&amp;nbsp;&lt;SPAN&gt;imgPlotDC2() internally. If these work in both 32-bit and 64-bit apps then I suspect it is an issue with the flags or other paramaters you are passing to the function.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Eric&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 04 Sep 2012 15:22:24 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/Machine-Vision/IMAQ-imgPlotDC2/m-p/2145242#M36530</guid>
      <dc:creator>BlueCheese</dc:creator>
      <dc:date>2012-09-04T15:22:24Z</dc:date>
    </item>
    <item>
      <title>Re: IMAQ imgPlotDC2</title>
      <link>https://ni.lithium.com/t5/Machine-Vision/IMAQ-imgPlotDC2/m-p/2147208#M36555</link>
      <description>&lt;P&gt;So, I tried the 'LL Grab' example in 'C:\users\Public\Documents\National Instruments\NI-IMAQ\Examples\MSVC\Grab\LL Grab\', and I got the same result. The 32-bit app looks fine but the 64-bit app image is messed up.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;(My application is a C# app that uses P-Invoke and the c:\windows\system32\imaq.dll, I also tried using the Active X 'imaq' component, but I get the same result. I am passing in IMGPLOT_MONO_12 to imgPlotDC2. I installed NI-IMAQ 4.6.4, but I didn't see a 64-bit option in the installation. I currently have 3 NI PCIe-1430 cards (firmware version 4.6.4.49152) in a very high end Falcon computer.)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks in advance for any help you might be able to provide.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Nate&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;IMG src="https://ip1.i.lithium.com/c7e39520d73b4bd2d9fafe3125de29e7ff01faaf/68747470733a2f2f6e692e6c69746869756d2e636f6d2f74352f696d6167652f736572766572706167652f696d6167652d69642f383537323669373233333330303035334341453431362f696d6167652d73697a652f6f726967696e616c3f763d6d70626c2d312670783d2d31" border="0" alt="32-bit LL Grab" title="32-bit LL Grab" align="center" /&gt;&lt;IMG src="https://ip1.i.lithium.com/13dedd6ec6f332cc702140dfa2fbf570b0045282/68747470733a2f2f6e692e6c69746869756d2e636f6d2f74352f696d6167652f736572766572706167652f696d6167652d69642f383537323869363734434431313535453933323730432f696d6167652d73697a652f6f726967696e616c3f763d6d70626c2d312670783d2d31" border="0" alt="64-bit LL Grab" title="64-bit LL Grab" align="center" /&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 05 Sep 2012 18:56:56 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/Machine-Vision/IMAQ-imgPlotDC2/m-p/2147208#M36555</guid>
      <dc:creator>Nate_W.</dc:creator>
      <dc:date>2012-09-05T18:56:56Z</dc:date>
    </item>
    <item>
      <title>Re: IMAQ imgPlotDC2</title>
      <link>https://ni.lithium.com/t5/Machine-Vision/IMAQ-imgPlotDC2/m-p/2148832#M36582</link>
      <description>&lt;P&gt;Hi Nate,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I see that you have used the example program from&amp;nbsp;&lt;SPAN&gt;C:\users\Public\Documents\National Instruments\NI-IMAQ\Examples\MSVC\Grab\LL Grab\. I am wondering if we can get some more information about how you specified 32-bit vs 64-bit applications. There should only be one llgrab.exe in that folder, so I am curious about where you loaded each .exe from. Did you build one of them yourself from the example code?&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I am trying to reproduce the behavior you are seeing, so any extra details you can provide will be very helpful.&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;Regards,&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;Daniel H&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 06 Sep 2012 21:44:20 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/Machine-Vision/IMAQ-imgPlotDC2/m-p/2148832#M36582</guid>
      <dc:creator>Daniel_H1</dc:creator>
      <dc:date>2012-09-06T21:44:20Z</dc:date>
    </item>
    <item>
      <title>Re: IMAQ imgPlotDC2</title>
      <link>https://ni.lithium.com/t5/Machine-Vision/IMAQ-imgPlotDC2/m-p/2148836#M36583</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://ni.lithium.com/t5/user/viewprofilepage/user-id/4267"&gt;@Daniel&lt;/a&gt; H wrote:&lt;BR /&gt;
&lt;P&gt;Hi Nate,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I see that you have used the example program from&amp;nbsp;&lt;SPAN&gt;C:\users\Public\Documents\National Instruments\NI-IMAQ\Examples\MSVC\Grab\LL Grab\. I am wondering if we can get some more information about how you specified 32-bit vs 64-bit applications. There should only be one llgrab.exe in that folder, so I am curious about where you loaded each .exe from. Did you build one of them yourself from the example code?&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I am trying to reproduce the behavior you are seeing, so any extra details you can provide will be very helpful.&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;Regards,&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;Daniel H&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Daniel,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The examples ships with a Visual Studio project file for building the example and there are two configurations already enabled in the solution - 32-bit and 64-bit - so you can build it both ways. The pre-built exe (32-bit) is just installed as a convenience so you can run the example out-of-the-box without compiling anything. If you want to build thr 64-bit solution, just open the included .vcproj file with Visual Studio 2005 or later and select the "x64" configuration prior to building.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Eric&lt;/P&gt;</description>
      <pubDate>Thu, 06 Sep 2012 21:50:05 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/Machine-Vision/IMAQ-imgPlotDC2/m-p/2148836#M36583</guid>
      <dc:creator>BlueCheese</dc:creator>
      <dc:date>2012-09-06T21:50:05Z</dc:date>
    </item>
    <item>
      <title>Re: IMAQ imgPlotDC2</title>
      <link>https://ni.lithium.com/t5/Machine-Vision/IMAQ-imgPlotDC2/m-p/2148890#M36584</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Indeed, I did rebuild the example as an x64 app. However, the display is garbled (the second image of the example shows this). Any ideas?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Nate&lt;/P&gt;</description>
      <pubDate>Thu, 06 Sep 2012 23:19:55 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/Machine-Vision/IMAQ-imgPlotDC2/m-p/2148890#M36584</guid>
      <dc:creator>Nate_W.</dc:creator>
      <dc:date>2012-09-06T23:19:55Z</dc:date>
    </item>
    <item>
      <title>Re: IMAQ imgPlotDC2</title>
      <link>https://ni.lithium.com/t5/Machine-Vision/IMAQ-imgPlotDC2/m-p/2149024#M36585</link>
      <description>Hi Nate,
&lt;P&gt;
I believe Daniel is trying to reproduce this in-house now (my previous comment was directed at him) so hopefully we will get to the bottom of this shortly.
&lt;/P&gt;&lt;P&gt;
Eric&lt;/P&gt;</description>
      <pubDate>Fri, 07 Sep 2012 04:31:45 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/Machine-Vision/IMAQ-imgPlotDC2/m-p/2149024#M36585</guid>
      <dc:creator>BlueCheese</dc:creator>
      <dc:date>2012-09-07T04:31:45Z</dc:date>
    </item>
    <item>
      <title>Re: IMAQ imgPlotDC2</title>
      <link>https://ni.lithium.com/t5/Machine-Vision/IMAQ-imgPlotDC2/m-p/2149920#M36591</link>
      <description>&lt;P&gt;Hi Nate,&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;I am indeed trying to reproduce the issue here, but everything seems to be working fine. I'm running the llgrab example (both 32-bit and 64-bit) on a Windows 7 64-bit machine, with a PCIe-1430 framegrabber. I have NI-IMAQ 4.6.4 installed. Both llgrab.exe versions produce good images.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;What camera are you using? Are you sure the pixels are 12-bit?&lt;/P&gt;
&lt;P&gt;Did you change anything in the example code before building it into the 64-bit llgrab.exe?&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Have you seen this with each of your PCIe-1430 cards, or just one of them?&lt;/P&gt;
&lt;P&gt;Have you tried this on a different computer?&lt;/P&gt;
&lt;P&gt;Have you seen this behavior with any other cameras?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;One thing you might try is upgrading to IMAQ 4.7. This is included in &lt;A href="http://joule.ni.com/nidu/cds/view/p/id/2975/lang/en" target="_self"&gt;Vision Acquisition Software 2012.08&lt;/A&gt;. If there was any problem during the install of IMAQ 4.6.4, this will overwrite the older driver and add any missing files.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I will be out of office next week, but another engineer will take over while I am gone, so you will continue getting responses here.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Daniel H&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 07 Sep 2012 19:59:58 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/Machine-Vision/IMAQ-imgPlotDC2/m-p/2149920#M36591</guid>
      <dc:creator>Daniel_H1</dc:creator>
      <dc:date>2012-09-07T19:59:58Z</dc:date>
    </item>
    <item>
      <title>Re: IMAQ imgPlotDC2</title>
      <link>https://ni.lithium.com/t5/Machine-Vision/IMAQ-imgPlotDC2/m-p/2150630#M36597</link>
      <description>&lt;P&gt;Daniel,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Are you trying to replicate this with a 12-bit camera or an 8-bit camera?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Eric&lt;/P&gt;</description>
      <pubDate>Mon, 10 Sep 2012 06:47:45 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/Machine-Vision/IMAQ-imgPlotDC2/m-p/2150630#M36597</guid>
      <dc:creator>BlueCheese</dc:creator>
      <dc:date>2012-09-10T06:47:45Z</dc:date>
    </item>
    <item>
      <title>Re: IMAQ imgPlotDC2</title>
      <link>https://ni.lithium.com/t5/Machine-Vision/IMAQ-imgPlotDC2/m-p/2151304#M36601</link>
      <description>&lt;P&gt;Hi Daniel,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Here are some of the cameras I have tried (without success in the 64-bit app):&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;FLIR Tau (640x512) 12-bit&lt;/P&gt;
&lt;P&gt;Sofradir Atom (640x480) 14-bit&lt;/P&gt;
&lt;P&gt;NiT MC1001 (640x480) 14-bit&lt;/P&gt;
&lt;P&gt;...and others&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The llbgrab solution and files are unmolested. I have tried Microsoft Visual Studio 2008 9.0.21022.8 RTM and Visual Studio 2010 10.0.30319.1 RTMRel. Same results in both.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;All three of the PCIe-1430 cards have this issue. I haven't tried any other computers, but this is out target computer (it is going on flight test) so it is important to get it working.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks for your help.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Nate&lt;/P&gt;</description>
      <pubDate>Mon, 10 Sep 2012 16:25:45 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/Machine-Vision/IMAQ-imgPlotDC2/m-p/2151304#M36601</guid>
      <dc:creator>Nate_W.</dc:creator>
      <dc:date>2012-09-10T16:25:45Z</dc:date>
    </item>
    <item>
      <title>Re: IMAQ imgPlotDC2</title>
      <link>https://ni.lithium.com/t5/Machine-Vision/IMAQ-imgPlotDC2/m-p/2151710#M36603</link>
      <description>&lt;P&gt;Hi there. I'm taking over the issue from Daniel, and I'm also using the test station he set up.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Have you been able to look at the array behind the image to see if there is a correlation between what kinds of values the data should have and what it does have? It's possible there is some strange bit-shifting going on that we can spot pretty quickly if we can take a look at the arrays and compare the two.&lt;/P&gt;</description>
      <pubDate>Mon, 10 Sep 2012 22:14:51 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/Machine-Vision/IMAQ-imgPlotDC2/m-p/2151710#M36603</guid>
      <dc:creator>Wee-Bey</dc:creator>
      <dc:date>2012-09-10T22:14:51Z</dc:date>
    </item>
    <item>
      <title>Re: IMAQ imgPlotDC2</title>
      <link>https://ni.lithium.com/t5/Machine-Vision/IMAQ-imgPlotDC2/m-p/2151942#M36604</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://ni.lithium.com/t5/user/viewprofilepage/user-id/204558"&gt;@Wee-Bey&lt;/a&gt; wrote:&lt;BR /&gt;&lt;P&gt;Hi there. I'm taking over the issue from Daniel, and I'm also using the test station he set up.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Have you been able to look at the array behind the image to see if there is a correlation between what kinds of values the data should have and what it does have? It's possible there is some strange bit-shifting going on that we can spot pretty quickly if we can take a look at the arrays and compare the two.&lt;/P&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;Ravi,&lt;P&gt;So are you trying to reproduce this with an 8-bit or &amp;gt;8bit camera?&lt;/P&gt;&lt;P&gt;

Eric&lt;/P&gt;</description>
      <pubDate>Tue, 11 Sep 2012 05:50:30 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/Machine-Vision/IMAQ-imgPlotDC2/m-p/2151942#M36604</guid>
      <dc:creator>BlueCheese</dc:creator>
      <dc:date>2012-09-11T05:50:30Z</dc:date>
    </item>
    <item>
      <title>Re: IMAQ imgPlotDC2</title>
      <link>https://ni.lithium.com/t5/Machine-Vision/IMAQ-imgPlotDC2/m-p/2153086#M36610</link>
      <description>&lt;P&gt;Hi Ravi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The data itself looks reasonable, although I only have ImageJ to view it (and ImageJ doesn't seem to have good support to 12-bit images). So it looks like the function that displays the data may be the culprit.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Nate&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;IMG src="https://ip1.i.lithium.com/48268f572127367bf72753e29afc59057e33601e/68747470733a2f2f6e692e6c69746869756d2e636f6d2f74352f696d6167652f736572766572706167652f696d6167652d69642f383632313069434342304639313644343741444135352f696d6167652d73697a652f6f726967696e616c3f763d6d70626c2d312670783d2d31" border="0" alt="IMAGEJ.JPG" title="IMAGEJ.JPG" align="center" /&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 11 Sep 2012 20:23:36 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/Machine-Vision/IMAQ-imgPlotDC2/m-p/2153086#M36610</guid>
      <dc:creator>Nate_W.</dc:creator>
      <dc:date>2012-09-11T20:23:36Z</dc:date>
    </item>
    <item>
      <title>Re: IMAQ imgPlotDC2</title>
      <link>https://ni.lithium.com/t5/Machine-Vision/IMAQ-imgPlotDC2/m-p/2153146#M36611</link>
      <description>&lt;P&gt;I did some more poking around in ImageJ and Datahammer 7yuv. It looks like the 64-bit application is rendering the image as 8 bits per pixel even though the IMGPLOT_MONO_12 plot flag is being passed to imgPlotDC2. The 32-bit application is properly rendering the 12-bit image. Below is a picture of how ImageJ renders the raw data as 8bpp, which is similar to what I'm seeing in the NI demo app.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;IMG src="https://ip1.i.lithium.com/d07070ecffa037d6d56fbeea46ab0807500ff5d8/68747470733a2f2f6e692e6c69746869756d2e636f6d2f74352f696d6167652f736572766572706167652f696d6167652d69642f383632313669364338453133353041333331373437302f696d6167652d73697a652f6f726967696e616c3f763d6d70626c2d312670783d2d31" border="0" alt="8-bits-per-pixel-ImageJ.JPG" title="8-bits-per-pixel-ImageJ.JPG" align="center" /&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 11 Sep 2012 21:10:02 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/Machine-Vision/IMAQ-imgPlotDC2/m-p/2153146#M36611</guid>
      <dc:creator>Nate_W.</dc:creator>
      <dc:date>2012-09-11T21:10:02Z</dc:date>
    </item>
    <item>
      <title>Re: IMAQ imgPlotDC2</title>
      <link>https://ni.lithium.com/t5/Machine-Vision/IMAQ-imgPlotDC2/m-p/2154140#M36621</link>
      <description>&lt;P&gt;Eric, so it turns out this was previously tested with an 8-bit camera, so I'm reassembling the system with a 12-bit camera.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Nate, while I try to recreate the issue, to confirm your suspicions (which seem right), does downsampling this to 8 bits actually result in a reasonable-looking image if you pass it in? You could likely quickly try by removing the bottom four bits and passing them in that way.&lt;/P&gt;
&lt;P&gt;Sorry about the delay on this. I'll let you know when I'm able to get it up and running and recreate it.&lt;/P&gt;</description>
      <pubDate>Wed, 12 Sep 2012 15:37:05 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/Machine-Vision/IMAQ-imgPlotDC2/m-p/2154140#M36621</guid>
      <dc:creator>Wee-Bey</dc:creator>
      <dc:date>2012-09-12T15:37:05Z</dc:date>
    </item>
    <item>
      <title>Re: IMAQ imgPlotDC2</title>
      <link>https://ni.lithium.com/t5/Machine-Vision/IMAQ-imgPlotDC2/m-p/2157308#M36637</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;DIV style="color: #333333; font-family: Arial; font-size: 13px; background-image: none; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: #ffffff; line-height: 15px; font-weight: normal; outline-width: 0px; outline-style: initial; outline-color: initial; -webkit-tap-highlight-color: rgba(26, 26, 26, 0.296875); -webkit-composition-fill-color: rgba(175, 192, 227, 0.230469); -webkit-composition-frame-color: rgba(77, 128, 180, 0.230469); -webkit-text-size-adjust: auto; background-repeat: no-repeat no-repeat; padding: 0px; margin: 5px;"&gt;
&lt;P style="padding: 0px; margin: 0px;"&gt;One other interesting data point would be to manually overwrite the acquired image with some known pattern (like just copy the x value into the pixel, creating vertical stripes in the image). That would separate the acquisition from the display and tell us where the problem was.&lt;/P&gt;
&lt;P style="padding: 0px; margin: 0px;"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P style="padding: 0px; margin: 0px;"&gt;Is that something you can try?&lt;/P&gt;
&lt;P style="padding: 0px; margin: 0px;"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P style="padding: 0px; margin: 0px;"&gt;-Daniel&lt;/P&gt;
&lt;/DIV&gt;</description>
      <pubDate>Fri, 14 Sep 2012 16:09:01 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/Machine-Vision/IMAQ-imgPlotDC2/m-p/2157308#M36637</guid>
      <dc:creator>Daniel_W</dc:creator>
      <dc:date>2012-09-14T16:09:01Z</dc:date>
    </item>
    <item>
      <title>Re: IMAQ imgPlotDC2</title>
      <link>https://ni.lithium.com/t5/Machine-Vision/IMAQ-imgPlotDC2/m-p/2159108#M36650</link>
      <description>&lt;P&gt;Hi Nate,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have confirmed that there is a bug in the IMAQ driver code that does not properly handle &amp;gt;8bit image depths in&amp;nbsp;&lt;SPAN&gt;imgPlotDC2() when in a 64-bit application. This has been filed as CAR #&lt;/SPAN&gt;371092 if you need to refer to this in any future NI support correspondence. I can't give any sort of timeline for when this will be fixed yet.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In the meantime, I can suggest a few possible workarounds:&lt;/P&gt;
&lt;P&gt;- You could copy/map the &amp;gt;8-bit data to 8bit before display. This is effectively what the underlying code is doing anyway since generally display technology is only 8-bit. Doing it yourself would likely add a bit of overhead but might not be a problem depending on the characteristics of your application&lt;/P&gt;
&lt;P&gt;- I might be able to provide a snippet of (untested) Win32 code that let you implement the display yourself. It might not have quite the same functionality of the internal NI code (I believe ours has all sorts of dynamic depth scaling options for mapping it to 8-bit displays) but I'm not sure how much of that is exposed in&amp;nbsp;&lt;SPAN&gt;imgPlotDC2() anyway.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Eric&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 17 Sep 2012 17:03:11 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/Machine-Vision/IMAQ-imgPlotDC2/m-p/2159108#M36650</guid>
      <dc:creator>BlueCheese</dc:creator>
      <dc:date>2012-09-17T17:03:11Z</dc:date>
    </item>
    <item>
      <title>Re: IMAQ imgPlotDC2</title>
      <link>https://ni.lithium.com/t5/Machine-Vision/IMAQ-imgPlotDC2/m-p/2159160#M36651</link>
      <description>&lt;P&gt;A third workaround (since you are using C#) might be to try using Microsoft's native .NET framework functions to do the drawing. The System.Drawing.Imaging and BitmapData classes/namespaces seem like a good place to start (&lt;A href="http://msdn.microsoft.com/en-us/library/system.drawing.imaging.bitmapdata(v=vs.71).aspx" target="_blank"&gt;http://msdn.microsoft.com/en-us/library/system.drawing.imaging.bitmapdata(v=vs.71).aspx&lt;/A&gt;). I imagine you could fairly easilly constuct an appropriate bitmap object pointing into the image data array and get it to display the image data directly.&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;Eric&lt;/P&gt;</description>
      <pubDate>Mon, 17 Sep 2012 17:53:45 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/Machine-Vision/IMAQ-imgPlotDC2/m-p/2159160#M36651</guid>
      <dc:creator>BlueCheese</dc:creator>
      <dc:date>2012-09-17T17:53:45Z</dc:date>
    </item>
    <item>
      <title>Re: IMAQ imgPlotDC2</title>
      <link>https://ni.lithium.com/t5/Machine-Vision/IMAQ-imgPlotDC2/m-p/2159242#M36652</link>
      <description>&lt;P&gt;Hi Eric,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Indeed, The .NET solution to draw raw bitmap data is very straightforward. I implemented the following source, but I'm getting an InvalidArgument exception in the call to DrawImage. I'm uncertain if there is some GDI+ issue with 16bpp data. I will try and post this to a .NET GDI+ forum to see if anyone has an explanation.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;private void panImage_Paint(object sender, PaintEventArgs e)&lt;BR /&gt; {&lt;/P&gt;
&lt;P&gt;.....&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp;// Get the current session info from the device&lt;BR /&gt;&amp;nbsp; &amp;nbsp;ImaqWrapper.getSessionInfo(m_iInterfaceNumber, out iImageWidth, out iImageHeight, out iBitsPerPixel);&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp;// Get image data from the IMAQ interface.&lt;BR /&gt;&amp;nbsp; &amp;nbsp;if ((sReturn = ImaqWrapper.grabImageData(out ptrSource, m_iInterfaceNumber, out iBufferSize)) == "")&lt;BR /&gt;&amp;nbsp; &amp;nbsp;{&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; ...&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; Bitmap b = new Bitmap(iImageWidth, iImageHeight, 2 * iImageWidth, PixelFormat.Format16bppGrayScale, ptrSource);&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; e.Graphics.DrawImage(b, e.ClipRectangle.X, e.ClipRectangle.Y);&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; b.Dispose();&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp;}&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Nate&lt;/P&gt;</description>
      <pubDate>Mon, 17 Sep 2012 19:13:28 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/Machine-Vision/IMAQ-imgPlotDC2/m-p/2159242#M36652</guid>
      <dc:creator>Nate_W.</dc:creator>
      <dc:date>2012-09-17T19:13:28Z</dc:date>
    </item>
  </channel>
</rss>

