Memory the number of counts
Overview
The number of counts maintained even if the power supply is dropped is used.
Specification of this example
Behavior
Count the number of measurements and display.
After save the scene and drop the power supply, display the number which succeeded.
Screenshot
How to try this example
1.When cleck the link of file, open the folder.
File
2.The zip file is stored in the folder. When drug & drops on the screen of FJ, read the scene data and the image data.
3.When remeasure the sample images, display the number which succeeded.
How to implement
Scene data
Unit No.
|
Processing Item
|
0.
|
Camera Image Input
|
1.
|
Macro
|
The Macro Program below segment is to be set in '1.Macro'.
Macro Program
*MEASUREPROC
COUNT&& = COUNT&& + 1 '(1)
Return
*MEASUREDISPG
SetTextStyle 20, TA_TOP, JUDGE_OK, 0, FONTSTYLE_BOLD
DrawTextG "Count = " + Str$(COUNT&&), 10, 10, 0 '(2)
Return
The macro program is in
this link.
Explanation
(1)Count the number of measurements by conserved variable.
(2)Display the number.