Acquire images
This example shows how the acquisition is started on the device with the handle xiH, ten images are acquired in a row and the acquisition
is stopped.
xiStartAcquisition(xiH);
#define EXPECTED_IMAGES 10
for (int images=0;images < EXPECTED_IMAGES;+)
{
// getting image from camera
xiGetImage(xiH, 5000, &image);
printf("Image %d (%dx%d) received from camera\n", images,
(int)image.width, (int)image.height);
}
xiStopAcquisition(xiH);
Hardware trigger and exposure active output
In this setup each image is triggered by a Digital Input Trigger. After the image is triggered, it can be transferred using xiGetImage.This
setup ensures a low latency between the trigger signal and image Exposure start.
Figure 80: GPIO schematic
HANDLE xiH;
xiOpenDevice(0, & xiH);
// select trigger source
xiSetParamInt(xiH, XI_PRM_TRG_SOURCE, XI_TRG_EDGE_RISING);
// select input pin 1 mode
xiSetParamInt(xiH, XI_PRM_GPI_SELECTOR, 1);
xiSetParamInt(xiH, XI_PRM_GPI_MODE, XI_GPI_TRIGGER)
// set digital output 1 mode
xiSetParamInt(xiH, XI_PRM_GPO_SELECTOR, 1);
xiSetParamInt(xiH, XI_PRM_GPO_MODE,
XI_GPO_EXPOSURE_ACTIVE);
xiStartAcquisition(handle1);
// Trigger signal should start image exposure within timeout
#define TIMEOUT_IMAGE_WAITING_MS 10000
xiGetImage(handle, TIMEOUT_IMAGE_WAITING_MS, &image);
// process image here…
XIMEA Technical Manual, Version: v240108
86
Содержание xiX-XL
Страница 18: ...Figure 8 Optical path cross section of MX1510 FF XIMEA Technical Manual Version v240108 11...
Страница 28: ...Figure 13 MX610xR SY X4G3 FF with detached sensor sub assembly XIMEA Technical Manual Version v240108 21...
Страница 30: ...Figure 15 MX610xR SY X4G3 FF with detached sensor sub assembly XIMEA Technical Manual Version v240108 23...
Страница 32: ...Figure 17 MX1018xR SY X4G3 FF with detached sensor sub assembly XIMEA Technical Manual Version v240108 25...
Страница 34: ...Figure 19 MX1018xR SY X4G3 FF with detached sensor sub assembly XIMEA Technical Manual Version v240108 27...
Страница 36: ...Figure 21 MX1510xR SY X4G3 FF with detached sensor sub assembly XIMEA Technical Manual Version v240108 29...
Страница 38: ...Figure 23 MX1510xR SY X4G3 FF with detached sensor sub assembly XIMEA Technical Manual Version v240108 31...
Страница 46: ...Digital input Wiring Figure 30 digital input interface wiring XIMEA Technical Manual Version v240108 39...
Страница 111: ...XIMEA GmbH Am Mittelhafen 16 48155 M nster Germany www ximea com Copyright XIMEA GmbH All rights reserved...