IMAQdxReadRegister
Format
rval = IMAQdxReadRegister (IMAQdxSession id, unsigned int offset, unsigned int *value);
Purpose
Accesses registers on the camera and reads a 32-bit value from the camera. Data is byte-swapped for little endian alignment after transfer.
Parameters
Parameter | Type | Description |
id | IMAQdxSession | A valid Session ID, which you can obtain using IMAQdxOpenCamera. |
offset | unsigned int | The register location to access. Refer to the camera documentation for more information about camera-specific register ranges. Use attribute IMAQdxAttributeBaseAddress to obtain the base address for the camera. |
value | unsigned int (passed by reference) | Specifies the value to read from the memory offset. |
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.