Measurement Studio for .NET Languages

cancel
Showing results for 
Search instead for 
Did you mean: 

AxCWIMAQ1.Images

Is that possible to put an existing bitmap into AxCWIMAQ1.Images then I can convert the bitmap into NI array?

Thanks.
0 Kudos
Message 1 of 4
(3,458 Views)
Yes, there is a great example of the first part  of your question (opening an existing and placing it in a CWIMAQ.Images collection) located in the shipping examles for NI-Vision.  If Vision is installed in the default location on your system it will be located here:

C:\Program Files\National Instruments\Vision\Examples\MSVB\2. Functions\Color Pattern Matching.

Once you have loaded the image, to the collection you can use the CWIMAQImage.ImageToArray method to convert the image to an array.

Hope this helps.
S. Arves S.
National Instruments
Applications Engineer
0 Kudos
Message 2 of 4
(3,447 Views)

I need samples code for c# with  axCWIMAQ1.

Gracias.-

0 Kudos
Message 3 of 4
(3,215 Views)
Hi,

We have shipping examples of axCWIMAQ1 in VB .NET.  Both VB and C# call the same Vision DLLs however, so the function names in the VB examples will be the same in C#. The link below is a good starting place for .NET in Vision.

Do NI-IMAQ and NI Vision Support Microsoft Visual Studio .NET?

If you search for a VB to C# converter online, there are websites that will convert VB code into C#.  You will have to fix the code a bit because every translation is imperfect, but at least it will be a good starting place.

Hope this helps!
Maclean G.
Applications Engineering
National Instruments
0 Kudos
Message 4 of 4
(3,179 Views)