VISSTATUS (Function)


Monitors the process result of each instruction.


VISSTATUS (<Parameter>)


<Parameter>
Designates the data to obtain (0 to 2).
0: Execution result status
1: Auxiliary data
2: Processing time
An obtained value is represented as a single precision real type constant (F type).
  • The obtained data varies depending on the instructions previously executed. Refer to the explanation of each instruction.
  • All processing times for instructions become objects. You can obtain the processing times of previously executed instructions.
  • 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)
I2 = VISSTATUS(1)
F1 = VISSTATUS(2)
VISLOC 10,9
VISPRINT "Execution result =";I1;"Labeling number =";I2, "Execution time (second)=";F1
IF I1 = 0 THEN
IF I2 <> 0 THEN
FOR I1 = 0 TO I2 -1
VISCROSS VISGETNUM(I1,1), VISGETNUM(I1,2)
NEXT I1
END IF
END IF
VISCAMOUT 1


Top