02-06-2009 01:35 PM
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.
02-09-2009 01:03 PM
02-09-2009 03:13 PM
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.
02-09-2009 06:22 PM
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
02-12-2009 09:42 AM
Thanks, Eric.
It is very helpful.