Running Vision Sequences

Vision Sequence Selection

Before you can run a vision sequence, you need to select the vision sequence that you want to run from the sequence tree. This sequence tree makes it easy to change between vision sequences within a project.

Setting Vision Sequence Properties

After you have selected the vision sequence to run, you may need to set some parameters for the sequence.
Setting vision sequence parameters is done from the Properties list on the Sequence window.
Properties must be properly set up prior to running a vision sequence. For example, if you want to create and run a sequence using an image which will be acquired from Camera 2, then you must be sure and set the Camera property for that sequence to 2.
One of the most common mistakes for new users is to run a vision sequence with the wrong Camera property setting.

KEY POINTS


Important notice on using the multiple cameras:
The Camera property is used to select which camera to use for a particular vision sequence. The cameras will be automatically detected by the system at startup. If you power up a camera while Vision Guide 8.0 is displaying the video for that camera, you may not see video until you reselect the camera from the sequence Camera property.

Vision Sequence Results

Once you run a vision sequence, you will probably want to see the results for the sequence. The vision sequence results can be seen from the Results list located on the Sequence window.

Sequence Flow Chart

The step execution list for the sequence is displayed in the right side of the image display. This flow chart shows all the vision objects defined in the currently selected sequence.
The order in the flow chart corresponds to the execution order of the vision objects.

Running a Vision Sequence

On the left side of the Run Panel located at the bottom of the Vision Guide window, you can see the [Run] button for the sequence. Clicking this button causes the entire sequence to be executed.
After creating and testing the objects you want to use for a particular sequence, you need to test the entire vision sequence by clicking on the [Run] button on the left side in the Run Panel.

Running a Sequence Multiple Times (Cycles)

When using the [Run Sequence] button, pay close attention to the [Cycles] text box which can be used by right-clicking the [Arrow] button at the right side of the [Run] button in the Run Panel.
The number entered in this box specifies how many times to run the vision sequence. This is useful for testing the reliability of a vision sequence before writing any code to make it work with the robot.
By running a vision sequence several times and then using the Statistics feature of Vision Guide, you can see the Mean, Standard Deviation, Range, and Minimum and Maximum values for each vision object in the sequence. This helps give you a good perspective on how well your vision sequence is performing.
The [Cycles] text box changes from white to yellow when the number to execute several cycles is input in the [Cycles] text box. (Any number larger than 1 will cause the [Cycles] text box color to change to yellow.) This warns you that you are about to execute several cycles when you click the [Run Sequence] button.

The Image Display During Vision Sequence Execution

When a vision sequence is executed, the image display will show which vision objects were found and which were not found by a display of color.
The vision objects that were found will display a green outline of the search window and found position.
The vision objects that were not found will display a red outline of the search window. (Since they are not found there will be no found position displayed.)
Note that if the Graphics property for a specific vision object is set to None, no graphics will be displayed for that specific vision object. To ensure that all vision objects have their graphics displayed, click the [Force All Graphics On] button on the Vision Guide toolbar. This will cause all graphics to be displayed regardless of the individual Graphics property settings.

Aborting Vision Sequence Cycles

Clicking the [Abort] button stops the sequence execution immediately.