Machine Vision

cancel
Showing results for 
Search instead for 
Did you mean: 

imaqWriteFile

I still cannot figure how to use this function. Your help is very much
appreciated. I am working on LabWindows CVI with IMAQ Vision, not
LabView. My rough codes are as follows. Without Write function, it
works, I am able to see the image on screen. With the Write Function,
I get the following errors:
Found 'pointer to char' expected a function
Type error in argument 2 to 'imaqWriteFile'; found 'void' expected
'pointer to const char'
Insufficient number of arguments to 'imaqWriteFile'

Codes Flow:
imaqReadFile (image, "image.bmp", NULL, NULL);
imaqDisplayImage(image, 0, TRUE);
imaqWriteFile(image, "image1.bmp" NULL);
0 Kudos
Message 1 of 2
(3,128 Views)
Hello,

It looks like you have the right idea for the imaqWriteFile call, but it looks like you're missing a comma - try using the following line instead:

imaqWriteFile(image, "image1.bmp", NULL);

If this is not the problem, please reply and we can try some other ideas.

Thanks!

Greg Stoll
IMAQ R&D
National Instruments
Greg Stoll
LabVIEW R&D
0 Kudos
Message 2 of 2
(3,128 Views)