VISGETNUM (Function)


Obtains an image process result from the storage memory.


VISGETNUM(<Parameter 1>, <Parameter 2>)


<Parameter 1>
Designates the number of the process result to obtain (0 to 511).
<Parameter 2>
Designates the type of the process result to obtain (0 to 9).
  • The result contents stored change depending on an image process instruction executed in advance. Refer to the image process instructions.
  • The result is kept until the next image process instruction is executed; therefore, you can obtain the result as whenever you want.
  • The value becomes unknown if you designate an unknown storage with the image process instruction in advance.
  • For this instruction, a µVision board (option) is required.



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 from the storage memory.
VISPLNOUT 0
VISWORKPLN 0
'Designates an object to storage memory 0.
BLOB 1,0,0,0,128
'Executes labeling.
I1 = VISSTATUS(0)
IF I1 = 0 THEN
I2 = VISSTATUS(1)
IF I2 <> 0 THEN
FOR I1 = 0 TO 15
VISDEFCHAR 1,1,0
VISLOC 10,10+I1
VISPRINT "X=";VISGETNUM(I1,1), VISGETNUM(I1,2)
NEXT I1
END IF
END IF


Top