Machine Vision

cancel
Showing results for 
Search instead for 
Did you mean: 

imgSessionWaitSignal2

Hi Guys,
Anyone knows how to know when acquired buffer is avaible in memory ???
I use cvi 8.0 and IMAQ 3.5

I acquire an triggered image and then i have to process.
I use this kind of instruction...

iTrg=0;
while (!iTrg) imgSessionTriggerRead2 (Sid, IMG_SIGNAL_EXTERNAL,
IMG_TRIG_POLAR_ACTIVEH,&iTrgScheda );

.... to wait trigger signal, then i need to wait acquisition time so i used
....

iBufFull=1;
while (iBufFull) iBufFull = imgSessionWaitSignal2 (Sid,
IMG_SIGNAL_STATUS,
IMG_BUF_COMPLETE, IMG_SIGNAL_STATE_HIGH, 5000);

.... but this line wait for another trigger

All this set of function is to permit me to analize current buffer during
his present under camera.
With old version of IMAQ and cvi 7.1 was right, but NI support told me
prototipe of some IMAQ function are changed.

Any idea how to resolve this problem ????
Thank's a lot
Marco


0 Kudos
Message 1 of 3
(3,404 Views)
Hi Marco,

Perhaps I do not understanding your situation completely; are you triggering the camera or triggering the framegrabber board (free run mode where the board just grabs the next available image)?  When you trigger the board, you do not need to wait for the image buffer to be filled (the time difference should be negligible).  You might want to check out the Triggered Snap example in the NI Example Finder (in CVI, go to Help >> Find Examples), as well as the Extract Buffers example.

Regards,
Irene Chow
National Instruments
Applications Engineering
0 Kudos
Message 2 of 3
(3,394 Views)
Hi
Sorry for late Irene i saw reply only now.
My camera is in trigger mode. I send trigger pulse at camera with external
signal.(when new object reach position)
i'm polling to see when signal arrive then i have to wait until buffer is
full becouse if i don't wait my function run and do same think with same
object.
But all this problem is my fault. i found wrong setup of board. i didn't
choose External HV Lock in Video Lock Mode in Operating Mode panel in MAX on
my video channel.

Thank's for your attenction
Marco

"Irene C" <x@no.email> ha scritto nel messaggio
news:1148073016043-368111@exchange.ni.com...
> Hi Marco,
>
> Perhaps I do not understanding your situation completely; are you
> triggering the camera or triggering the framegrabber board (free run
> mode where the board just grabs the next available image)?&nbsp; When
> you trigger the board, you do not need to wait for the image buffer to
> be filled (the time difference should be negligible).&nbsp; You might
> want to check out the Triggered Snap example in the NI Example Finder
> (in CVI, go to Help &gt;&gt; Find Examples), as well as the Extract
> Buffers example.
>
> Regards,
> Irene Chow
> National Instruments
> Applications Engineering


0 Kudos
Message 3 of 3
(3,382 Views)