Camera Property
Applies To
Vision Sequence, Vision Calibration
Description
Specifies which camera to be used for a vision sequence or vision calibration.
Usage
VGet {Sequence | Calibration}.Camera, var
VSet {Sequence | Calibration}.Camera, value
- Sequence
- String variable containing a sequence name.
- Calibration
- Name of a calibration or string variable containing a calibration name.
- var
- Integer variable that will contain the value of the property.
- value
- Integer value or expression for the new value of the property.
Values
Integer value equals to or greater than 1.
Default: 1
Remarks
One camera may be associated with a vision sequence calibration.
For sequences, the camera number must be selected before executing VRun.
For calibrations, the camera number must match the camera number of the calibration target sequence.
Note
Camera numbers which can be changed by VSet have the following restrictions.
- Sequence or calibration with Compact Vision cameras:
Camera numbers which use the different camera channels of the same Compact Vision camera can be set. - Sequence or calibration with PC vision cameras:
Camera numbers which use the different cameras of PC vision can be set.
Example
The following example shows how to use multiple cameras with the same vision sequence. We will set the Camera property prior to executing the vision sequence called FINDMARK.
Function test
# define CAMERA1 1
# define CAMERA2 2
VSet findmark.Camera, CAMERA1
VRun findmark
'Get any info req'd from 1st sequence here (i.e. VGet findmark.xxx.xxx)
VSet findmark.Camera, CAMERA2
VRun findmark
'Get any info req'd from 2nd sequence here (i.e. VGet findmark.xxx.xxx)
Fend
See Also
CameraBrightness Property, CameraContrast Property, Vision sequence