Machine Vision

cancel
Showing results for 
Search instead for 
Did you mean: 

Any VC++ MFC example code for PCI-1428 frame grabber?

Hello,

 

I am trying to make a user interface to control our camera which has a NI PCI-1428 frame grabber.

I found some examples of simple interface code using VC, but not using MFC.  I am wondering if there is any where I could find some example code.  For example, a simple user interface that uses MFC and IMAQ to capture and display a frame.

 

 If anyone has some example codes and can kindly send a copy to me, I would really appreciate.

 

my email is zhangtravis@gmail.com

 

Thanks a lot.

 

 

0 Kudos
Message 1 of 5
(4,544 Views)
For documentation on programming in text based languages you may refer to the NI-IMAQ Function Reference Help located in the <root directory>\Program Files\National Instruments\NI-IMAQ\Docs folder.
Vince M
Applications Engineer
0 Kudos
Message 2 of 5
(4,524 Views)

Thanks, Vince.

 

I know there are those DOCs explaining the functions, but I am trying to find a starting point for a user interface in C++ and MFC. 

There are examples in VC, but they use Windows API instead of MFC.  

 

 

0 Kudos
Message 3 of 5
(4,513 Views)

You could take a look at the IMAQdx examples installed if you installed IMAQdx examples as well. Since IMAQdx is newer, all the examples are written using MFC. Given that there is a lot of similiarity in the two APIs (for basic image capture) you can probably get some ideas.

 

The biggest difference might be in image display, since IMAQdx directly interfaces with Vision images and the examples use the Vision display control. You might want to look at IMAQ's HLSnap to see how to use imgPlot2() to draw onto your window directly.

 

Eric 

Message 4 of 5
(4,505 Views)

Thanks, Eric.

 

It is very helpful.

0 Kudos
Message 5 of 5
(4,469 Views)