
Chapter 21 Vision Control (Option)
21-85
Related Terms
WINDMAKE, VISWORKPLN, VISGETNUM, VISSTATUS, SHDEFMODEL
Example
VISSCREEN 1,0,1 'Instantaneously draws on drawing screen 0.
VISCLS 0 '
VISPLNOUT 0 '
WINDMAKE R,1,512,480,0,2 'Sets window 1 to rectangle.
CAMIN 1 'Obtains a camera image from the storage memory.
VISWORKPLN 0 'Designates an object to storage memory 0.
SHMODEL 1,0,0,1,80 '
Searches for model 1 and the part whose correspondence
'degree is 80% on the screen.
I1 = VISSTATUS(0) '
VISLOC 10,10 '
VISDEFCHAR 1,1,3 '
VISPRINT I1 '
IF I1 = 0 THEN '
VISPRINT VISGETNUM(0,1),VISGETNUM(0,2)
'
VISCROSS VISPOSX(0),VISPOSY(0)
'
END IF '
Comentarios a estos manuales