<< Click to Display Table of Contents >> Navigation: 3. Script Language > Image/Pixel-Color Operations > ANA. - Imageworks > Pattern-Recognition > Image/Pixel-Color Operations |
MiniRobotLanguage (MRL)
ANA.Get_Data
ANA.Set_Data
Get or Set Internal Values mostly needed for Find-Operation
Intention
Depending on P1 this command is used to get or set Internal Data-Registers.
These are:
0 - Number of IR where the last ANA.Snap-Command has been taken a Snapshot
1 - Windowhandle of the last ANA.Snap
2 - Snapshot- X-Size
3 - Snapshot- Y-Size
4 - CPU-Cores used for Pattern-Find Operations, this will normally return the number of CPU-Cores in the System.
Setting this number to a value, much higher then the really available Cores, may lead to unforeseable
results including can make Windows too hang due to too many open threads.
5 - Last Operation Result (currently only used by some Operations)
6 - Max-Result Number Setting, this number will limit the number of Finds of all FindPattern-Operations.
7 - Single-Result Flag. Set this Flag to "1" to only get a Single Result with the next Find Operation,
this way you can leave MaxResults untouched.
8 - Default Bordersize for Window Snapshot for the ANA.Snap-Command and FinPattern-Commands that have an internal Snapshot-Command.
The values can be:
0 - Clientarea only
1 - Whole Window
2 - Whole Window, No Border
4 - Use Value from Object
9 - Default Value for "PixelHits"
10 - Default value for "Color Tolerance"
11 Default Value for Use "Debugmode" (0/1)
Left picture: This is the Stack before and after the call to ANA.GetResult.
Right Picture: This is the Stack after the first Result - that is the number of Found Elements - has been "Pop'ed".
Here is the Code that shows the usage of ANA.GetResult.
' Reads the Value of MaxResults.
ANA.Get_Data|6|$$RES
MBX.$$RES
ENR.
' Change and Read the Value for MaxResults
ANA.Set_Data|6|39
ANA.Get_Data|6|$$RES
MBX.$$RES
ENR.
Syntax
ANA.Get_Data[|P1][|P2]
Parameter Explanation
P1 - opt. this Parameter is the number (currently 0 - 11) that specifies the value that should be read.
The complete List is above.
P2 - opt. Variable that will get the result value.If omitted the value is placed on TOS.
ANA.Set_Data[|P1][|P2]
Parameter Explanation
P1 - opt. this Parameter is the number (currently 0 - 11) that specifies the value that should be get/set.
The complete List is above.
P2 - opt. Value to be assign to the internal Variable that is specified by P1.
Example
'***********************************
' ANA.Get_Data / Set_Data Sample
'***********************************
ANA.Set_Data|6|39
ANA.Get_Data|6|$$RES
MBX.$$RES
ENR.
Remarks
-
Limitations:
-
See also: