When using Automatic Transfer Control mode, the transfer of blocks to the host are controlled the device’s acquisition controls.
In Automatic Transfer Control mode, the TransferOperationMode is read only and set to Continuous. Using Continuous TransferOperationMode is similar to when Transfer Control is not enabled, except the host application can stop data transmission without stopping image acquisition on the device.
The following pseudocode demonstrates enabling Automatic Transfer Control mode on the camera.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 |
// Connect to camera
// Get device node map
// Set desired Pixel Format, Width, Height
// Optional: Read TransferQueueMaxBlockCount to determine the number of blocks
// that can be stored in the on-camera buffer with the current device settings
TransferControlMode = Automatic;
TransferQueueMode = FirstInFirstOut;
AcquisitionStart(); // When in Automatic Transfer Control Mode, the
// AcquisitionStart command automatically executes the TransferStart command
// Acquire images
// Images will be accumulating into the on-camera buffer
// Blocks will be transmitted to the host system automatically until TransferPause or AcquisitionStop is executed
// Retrieve images on host system
|