ImageSource Property

Applies To
Vision Sequence

Description
Sets or returns the current image input source for the sequence.

Usage

VGet  Sequence.ImageSource, var
VSet  Sequence.ImageSource, value
Sequence
Name of a sequence or string variable containing a sequence 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

  • 1 - Camera
    • Vision constant: VISION_IMAGESOURCE_CAMERA
  • 2 - File
    • Vision constant: VISION_IMAGESOURCE_FILE

Default: 1 - Camera

Remarks
ImageSource sets the input source of the image data. When ImageSource is set to “File”, the image data will be acquired from the image file set in the ImageFile property and the sequence will be executed.

If the ImageFile property is set to a valid image file, then the ImageSource property will automatically be set to 2 - File.

See Also
Vision Sequences, ImageFile Property, ImageSize Property