ni.com is currently undergoing scheduled maintenance.

Some services may be unavailable at this time. Please contact us for help or try again later.

Measurement Studio for .NET Languages

cancel
Showing results for 
Search instead for 
Did you mean: 

using library .lib in C#

Hello,
 
I am using the frame wrapper board 1411 for the CCD color camera.
I am trying  to write little application using C#.net to wrap the image data and display on my viewer.
I am confused what I need to do here:
1.  I look at the CWIMAQ control, I can call function to AcquireImage, but how can I get the image data so I can display to  my own viewer?
2.  I look at NI-IMAQ function reference help, I saw functions like ImgSessionStartAcquisition, ImgGrap to start acquisition and get the image to my own viewer.  However,
I don't know which DLL that contains these functions and it does work with C# or not.
 
Can anyone give me little advice here?  Thank you so much
 
Trammy 
 
0 Kudos
Message 1 of 2
(3,885 Views)
Hello Trammy,
 
Take a look at the VB.NET examples installed with IMAQ located at:
 
C:\Program Files\National Instruments\NI-IMAQ\Sample\MSVB.NET
 
Since these examples use ActiveX controls, all the function calls to the ActiveX objects will be the same in C#.
 
Also, I have included an attachment that specifically demonstrates the use of this ActiveX control in C#.
 
Regards,
Jasper S
0 Kudos
Message 2 of 2
(3,862 Views)