IMAQdxConfigureAcquisition
Format
rval = IMAQdxConfigureAcquisition (IMAQdxSession id, unsigned int continuous, unsigned int bufferCount)
Purpose
Configures a low-level acquisition previously opened with IMAQdxOpenCamera. Specify the acquisition type using the continuous and bufferCount parameters.
Snap | Continuous = 0 | Buffer Count = 1 |
Sequence | Continuous = 0 | Buffer Count > 1 |
Grab | Continuous = 1 | Buffer Count ³ 1 |
Use IMAQdxUnconfigureAcquisition to unconfigure the acquisition.
Parameters
Parameter | Type | Description |
id | IMAQdxSession | A valid Session ID, which you can obtain using IMAQdxOpenCamera. |
continuous | unsigned int | Specifies whether the acquisition is continuous or one-shot. |
bufferCount | unsigned int | For a one-shot acquisition, this parameter specifies the number of images to acquire. For a continuous acquisition, this parameter specifies the number of buffers the driver uses internally. |
Return Value
On success, this function returns IMAQdxErrorSuccess. On failure, this function returns an error code. You can obtain a more detailed error message with IMAQdxGetErrorString or, if you are using Microsoft Visual Basic, IMAQdxGetErrorStringCW.