Measurement • 92
Gocator 2000 Family
Script
A Script measurement can be used to program a custom measurement using a simplified C based
syntax. A script measurement can produce a measurement value and a measurement decision.
To create or edit a Script measurement:
1
Add a new Script measurement or select an existing Script measurement.
2
Edit the script code.
Build up your script by adding one line at a time. The script will be easier to debug if you begin with a few
lines (e.g.
output(1, 1);
) and then build it up over a few iterations. Refer to the example below for script
syntax.
3
Click the Save Button to save the script code.
If there is a mistake in the script syntax, the result will be shown as a “0” with a red border in the Data
Viewer when you run the sensor.
Outputs from multiple measurement tools can be used as inputs to the script. A typical script would take
results from other measurement tools using the value and decision function, and output the result using the
output function. Video and profile cannot be used as inputs to the script. Only one script can be created.
Supported Functions
Script is based on a simplified C-based syntax.
The following are functions are supported:
Syntax
Syntax
Supported
Control Operators
if, while, do, for, switch and return
Data Types
char, int, unsigned int, long long (64-bit integer)
Arithmetic and Logical Operator
Standard C arithmetic operators, except tertiary operator (i.e. “condition?
trueValue: falseValue”)
Function Declarations
Standard C function declarations with argument passed by values. Pointers
are not supported
Содержание Gocator 2000 Family
Страница 1: ...User s Manual Gocator 2000 Family Version 2 2 1 0 Revision A...
Страница 164: ...Specifications 164 Gocator 2000 Family Envelope 61 25 40 5 4 15 82 9 95 7...
Страница 166: ...Specifications 166 Gocator 2000 Family Envelope 33 90 80 2 9 84 3 99 7 10 6...
Страница 168: ...Specifications 168 Gocator 2000 Family Envelope 190 210 33 141 3 155 7 4 11...
Страница 170: ...Specifications 170 Gocator 2000 Family Envelope 33 300 400 214 9 229 2 10 3 3 2...
Страница 172: ...Specifications 172 Gocator 2000 Family Envelope 33 400 500 216 2 230 6 3 9 11...
Страница 174: ...Specifications 174 Gocator 2000 Family Envelope 33 350 800 A 3 7 10 8 215 8 230 3 DETAIL A SCALE 1 2...