GevCameraControl
This FB provides the basic functionality to control a GigE Vision camera and access its calibration data.
Syntax
Constructor:
GevCameraControl(
OTCID oidITcVnGevImageProvider
)
Methods
Name |
Description |
---|---|
Delete all images contained in the TcVnGevImageProvider TcCOM module receive queue and reset the corresponding omitted images counter. | |
Close the control channel to the camera. | |
Gets the reference calibration pattern points from the TcVnGevImageProvider TcCOM module (Can be set from the calibration assistant) | |
Gets the camera matrix from the TcVnGevImageProvider TcCOM module (requires intrinsic calibration parameters, e.g. set by the calibration assistant) | |
Gets the current available image (first in receive queue). | |
Gets the current available image (first in receive queue) with undistortion applied. Incompatible with pixel formats that contain an encoding, e.g. a Bayer pattern. Requires intrinsic calibration parameters in the TcVnGevImageProvider TcCOM module, e.g. set by the calibration assistant. | |
Gets the current available image (first in receive queue) and its corresponding GVSP info. | |
Gets the current available image (first in receive queue) with its corresponding GVSP info and undistortion applied. Incompatible with pixel formats that contain an encoding, e.g. a Bayer pattern. Requires intrinsic calibration parameters in the TcVnGevImageProvider TcCOM module, e.g. set by the calibration assistant. | |
Gets the current available image (first in receive queue) and corresponding timestamps. | |
Gets the distortion coefficients from the TcVnGevImageProvider TcCOM module (requires intrinsic calibration parameters, e.g. set by the calibration assistant) | |
Gets the last received image from the queue. | |
Gets the number of omitted images since the last call of ClearImageQueue(). If the image receive queue in the TcVnGevImageProvider TcCOM module is full and a new image arrives, the first one in the queue will be deleted and the omitted counter is increased. | |
Gets the rotation matrix from the TcVnGevImageProvider TcCOM module (requires extrinsic calibration parameters, e.g. set by the calibration assistant) | |
Gets the current state of the internal camera control state machine. | |
Gets the translation vector from the TcVnGevImageProvider TcCOM module (requires extrinsic calibration parameters, e.g. set by the calibration assistant) | |
Initialize the camera to the intended state (includes sending the 'InitCameraCommands' defined in the GevImageAcquisition TcCOM module to the camera). | |
Open a control channel to the camera. | |
Reset the camera controller to initial state (might require multiple calls depending on current state, until S_OK is returned) | |
Reset the camera features to initial state (sends the 'InitCameraCommands' defined in the GevImageAcquisition TcCOM module to the camera). | |
Sets the camera matrix to the TcVnGevImageProvider TcCOM module | |
Sets the distortion coefficients to the TcVnGevImageProvider TcCOM module | |
Sets the rotation matrix to the TcVnGevImageProvider TcCOM module | |
Sets the translation vector to the TcVnGevImageProvider TcCOM module | |
Send the 'StartAcquisitionCommands' defined in the TcVnGevImageProvider TcCOM module to the camera. | |
Send the 'StopAcquisitionCommands' defined in the TcVnGevImageProvider TcCOM module to the camera. | |
Send the 'SoftwareTriggerCommands' defined in the TcVnGevImageProvider TcCOM module to the camera. |
Required License
TC3 Vision Base
System Requirements
Development environment | Target platform | PLC libraries to include |
---|---|---|
TwinCAT V3.1.4024.54 or later | PC or CX (x64) with PL50, e.g. Intel 4-core Atom CPU | Tc3_Vision |
- ClearImageQueue
- CloseCamera
- GetCalibPatternRef
- GetCameraMatrix
- GetCurrentImage
- GetCurrentImageUndistorted
- GetCurrentImageWithGvspInfo
- GetCurrentImageWithGvspInfoUndistorted
- GetCurrentImageWithTimestamps
- GetDistortionCoefficients
- GetLastImageFromQueue
- GetOmittedImagesNum
- GetRotationMatrix
- GetState
- GetTranslationVector
- InitializeCamera
- OpenCamera
- Reset
- ResetCameraFeatures
- SetCameraMatrix
- SetDistortionCoefficients
- SetRotationMatrix
- SetTranslationVector
- StartAcquisition
- StopAcquisition
- TriggerImage