02-27-2009 10:35 AM
Hello,
I am using C++ and NIImaq library to save raw 2-D image array to PC.
I have a PCI-1428 frame grabber.
Now, I am trying to write a 2-D array from frame grab buffer to PC memory that I allocated using virtualalloc.
Any way to do it?
Thanks,
Travis
Solved! Go to Solution.
03-02-2009 12:21 PM
Hi Travis,
Have you gotten a chance to look at the C++ shipping examples for our frame grabbers?
C:\Documents and Settings\All Users\Documents\National Instruments\NI-IMAQ\Examples
In addition, for specific frame grabbing references you can also use the NI-IMAQ Function Reference Help located in the <root directory>\Program Files\National Instruments\NI-IMAQ\Docs folder.
Is there any specific reason why you want to manually pull the 2D array from the buffer to PC memory?
Cheers,
Jonah P.
Applications Engineer
03-02-2009 12:51 PM
Hi Travis,
After further research, I found that you can use the imgSessionCopyBuffer function (see the NI-IMAQ Function Reference Help for more detailed information) to transfer your data from the Onboard memory to your designated PC buffer.
Also you can find more information about how to set this up in the Ring Acquisition developer zone article linked below (System Memory Versus Onboard Memory section talks about your specific question).
Hope that helps!
Cheers,
03-03-2009 09:40 AM