Machine Vision

cancel
Showing results for 
Search instead for 
Did you mean: 

Save Image to Disk via CWIMAQ and CWIMAQVision in VB

Hi, I use NI 1428 CameraLink framegrabber and notice
a bug with saving image to disk via CWIMAQ object. It
adds 8 columns black pixels to the end of each image.
Savimg image to disk via CWIMAQVision is fine.

Has anybody experienced the same thing ?

Also, are the CWIMAQ buffers thread safe ?
I use them as a ring buffer, so multiple
threads may access the same image buffer at the
same time. I have used my own mutex to safe guard
each access. But I wonder if the thread safe is
built in.
0 Kudos
Message 1 of 2
(3,111 Views)
I have never experienced the 8 black pixels using CWIMAQ save. However, I would use the CWIMAQVision.Write function anyway - this way you also get the vision information.
Here is a document that discusses multi-threading in IMAQ:
http://digital.ni.com/public.nsf/websearch/07550C5783B42B16862567DF0076EBF3

General Multi-threading info:
http://digital.ni.com/public.nsf/websearch/6eccbaa87476eb22862568950071ccd6

Hope this helps-
Julie S.
0 Kudos
Message 2 of 2
(3,111 Views)