Machine Vision

cancel
Showing results for 
Search instead for 
Did you mean: 

direct memory reading from labview

Here is my problem:
I use a scientific camera which is not interfaced with any DAQ card, but with a PCI card.
I have VIs and dll to acquire and setup the camera.
Then I can only:
-save the acquired image to disk and empty the RAM buffer where image is put
-display it and empty the RAM buffer where image is put

-get a pointer to memory adress where my pixels datas are begun to be stored (within the RAM I suppose)

What I would like is to know to use this pointer adress in order to read memory content and convert it into a 1D array useable in LABVIEW.

I precise that I don't have any knowledge in C routines programming, or dll's use(only I know how to call them from a VI...)

I also precise that I begin to become crazy abo
ut doing that...

Thanks for anybody who can help me...

Jean-Philippe
0 Kudos
Message 1 of 2
(3,166 Views)
Jean-Phillippe -
In LabVIEW you can call a dll using the Call Library Function Node, located in the Functions>>Advanced palette. You will have to call the functions from your dll in the order that the PCI card you have specifies in its help manual. The dll should have all the functionality that you are looking for (getting the pointer to the pixel data and converting it to a 1D array). For more information on using dll's as external code in LabVIEW, take a look at Chapter 3 in this manual:
http://digital.ni.com/manuals.nsf/webAdvsearch/8D930295FFBF9F7686256D2C00624728?OpenDocument&vid=niwc&node=132100_US

Julie S.

PS - Did you know that NI also sells framegrabbers? This would greatly simplify your programming experience.
http://sine.ni.com/apps/we/nioc.vp?cid=1
292〈=US
0 Kudos
Message 2 of 2
(3,166 Views)