View Single Post
  #1   Spotlight this post!  
Unread 21-01-2012, 22:19
Bryscus's Avatar
Bryscus Bryscus is offline
EE, CpE
AKA: Bryce B.
FRC #0180 (SPAM)
Team Role: Engineer
 
Join Date: Jan 2009
Rookie Year: 1999
Location: Jupiter, FL
Posts: 173
Bryscus has much to be proud ofBryscus has much to be proud ofBryscus has much to be proud ofBryscus has much to be proud ofBryscus has much to be proud ofBryscus has much to be proud ofBryscus has much to be proud ofBryscus has much to be proud ofBryscus has much to be proud of
Saving Image from Axis Camera to cRIO

Guys,

I've tried using some of the imaq commands from the nivision.h library, but whenever I run the code, I don't see any images stored anywhere.

I've tried:

int imaqWritePNGFile(const Image* image, const char* fileName, unsigned int compressionSpeed, const RGBValue* colorTable);

int imaqWriteVisionFile(const Image* image, const char* fileName, const RGBValue* colorTable);

int imaqWriteBMPFile(const Image* image, const char* fileName, int compress, const RGBValue* colorTable);

And some others even.

For example: imaqWriteVisionFile(imaqImage, "filename", NULL);

I need this to see the progression during image processing.

Does anyone have any suggestions for a file path or if the fileName is expecting an extension? The code compiles and runs in most instances but just doesn't leave an image anywhere.

- Bryce

EDIT: Apparently it returns a non zero value on success and zero otherwise. I'll have to try this on Monday.
__________________
The opulence of the front office decor varies inversely with the fundamental solvency of the firm.

Last edited by Bryscus : 21-01-2012 at 23:48.
Reply With Quote