Machine Vision

cancel
Showing results for 
Search instead for 
Did you mean: 

imaq1394SnapImage

Hello,

 

i have a problem with the function .

 

I snap a image with the sequenz

 

 ***

  VIImagePointer = imaqCreateImage (IMAQ_IMAGE_RGB, 0);

  imaq1394SetAttribute (Session_Id_cam0, IMG1394_ATTR_VIDEO_FORMAT, 7);
  imaq1394SetAttribute (Session_Id_cam0, IMG1394_ATTR_VIDEO_MODE, 1);
  imaq1394SetAttribute (Session_Id_cam0, IMG1394_ATTR_SHUTTER, Shutter); 
  imaq1394SnapImage (Session_Id_cam0, VIImagePointer, IMAQ_NO_RECT);

  ***

 

but i the image switch to the format "IMAQ_IMAGE_U8" and is a monocrom.

 Can somebody help me?

 

best regards

 

wolf4124

0 Kudos
Message 1 of 2
(3,028 Views)

Hi wolf4124,

 

when you use MAX (Measurement and Automation Explorer) to configure your aquisition, you have to save the configuration, otherwise it will get lost when restarting the device.

If you want to change the configuration programmatically (which seems to be the case), in most of the cases (depending on the camera you're using) you also have to wire the 12pin Hirose connector, as the configuration is done by the serial interface that's part of this connector.

 

Regards,
Bernd

0 Kudos
Message 2 of 2
(2,998 Views)