
Chapter 21 Vision Control (Option)
21-75
Example
VISSCREEN 0,1, 'Instantaneously draws on storage memory 1.
VISCLS 128 'Clears the screen.
VISSCREEN 1,0,1 'Instantaneously draws on drawing screen 0.
VISCLS 0 '
WINDMAKE R,1,512,480,0,2 'Sets window 1 to rectangle.
CAMIN 1 'Obtains a camera image for the storage memory.
BLOB 1,0,0,0,128 'Executes labeling.
I1 = VISSTATUS(0) '
IF I1 = 0 THEN '
I1 = VISSTATUS(1) '
IF I1<>0 THEN '
BLOBCOPY 0,1,100,100 'Copies label 0 to storage memory 1.
END IF '
END IF '
VISPLNOUT 0 '
DELAY 2000 '
VISPLNOUT 1 '
DELAY 2000 '
VISCAMOU VISCAMOUT 1 '
Commentaires sur ces manuels