WWW.NNC.IR
Macro Reference
497
8
Appendices
Vision System FH/FZ5 Series
User’s Manual (Z340)
DrawSearchFigure
Draw the search figure on the image window.
Format
DrawSearchFigure <figure()>, <referenceX>, <referenceY>, <measureX>, <measureY>,
<measureAngle>, <imageNo>, <unitNo>
Parameter
Return value
None.
Description
On the measurement image whose specified image number is in the <imageNo> parameter, draw a figure
specified in the <figure()> parameter at the specified position with the <referenceX>, <referenceY>,
<measureX>, and <measureY> parameter at an angle specified in the <measureAngle>.
With the use of this macro function, drawing of a figure composed of registered model figures and detected
points gotten mainly from search processing units and shape search III processing units. This macro function
cannot draw images properly if the referenced measurement results from processing units where the model
registration or detection point specification is not implemented are specified in the function arguments.
In the <referenceX> parameter and the <referenceY> parameter, normally specify detection points X and Y of
the referenced search processing unit.
In the <measureX> parameter, the <measureY> parameter, and the <measureAngle> parameter, normally
specify the measurement coordinates X and Y and the measurement angle of a referenced search
Parameter
name
Data type Description
<figure()> Integer array 1D array that stores the drawn figure data (Reference: XFigure Data List (p.364))
<referenceX>
Double
precision real
number data
type
Detection point X coordinate used for the drawn figure position specification
<referenceY>
Double
precision real
number data
type
Detection point Y coordinate used for the drawn figure position specification
<measureX>
Double
precision real
number data
type
Measurement X coordinate used for the drawn figure position specification
<measureY>
Double
precision real
number data
type
Measurement Y coordinate used for the drawn figure position specification
<measureAngle>
Double
precision real
number data
type
Measured angle used for the drawn figure angle specification
<imageNo> Integer type Measurement image number to draw on (always 0)
<unitNo> Integer type
Processing unit number to display the processing unit (0 to (the number of registered
processing units in the current scene minus one))