Machine Vision

cancel
Showing results for 
Search instead for 
Did you mean: 

Error with CWIMAQVision.ReadImage() in C#

Solved!
Go to solution

Tried it programatically... still throws exception:

 

 CWIMAQVisionClass vision = new CWIMAQVisionClass(); 

CWIMAQViewerClass viewer = new CWIMAQViewerClass();

vision.ReadImage(viewer.Image, redLEDFileName, viewer.Palette);

0 Kudos
Message 11 of 13
(1,566 Views)
0 Kudos
Message 12 of 13
(1,547 Views)

rcldesign -

 

With the .NET interop API that you're using, you have to have a form with a CWIMAQVision control dropped on it to call Vision methods.

 

The new native .NET API in Vision Development Module 2009 removes this limitation, and is generally much easier to use.  You can download an evaluation version here.

 

Greg Stoll

National Instruments

Greg Stoll
LabVIEW R&D
0 Kudos
Message 13 of 13
(1,532 Views)