
Gocator Line Profile Sensors - User Manual
Gocator Web Interface • Measurement • 230
4.
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 "Invalid" 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. Stamp information, such as time and encoder stamps, are available in the
script, whereas the actual 3D point cloud data is not. (The script engine is not powerful enough to
process the data itself.) Only one script can be created.
Script Measurement
A Script measurement can be used to program a custom measurement using a simplified C-based
syntax. Similar to other measurement tools, a script measurement can produce multiple measurement
values and decisions for the output.
Scripts must be less than 27000 characters long.
The following elements of the C language are supported:
Elements
Supported
Control Operators
if, while, do, for, switch and return.
Data Types
char, int, unsigned int, float, double, long long (64-bit integer).
Arithmetic and Logical
Operator
Standard C arithmetic operators, except ternary operator (i.e., "condition? trueValue:
falseValue"). Explicit casting (e.g., int a = (int) a_float) is not supported.
Function Declarations
Standard C function declarations with argument passed by values. Pointers are not
supported.
Supported Elements
Built-in Functions
Function
Description
int Measurement_Exists(int id)
Determines if a measurement exists by ID.
Parameters:
id – Measurement ID
Returns:
0 – measurement does not exist
1 – measurement exists
int Measurement_Valid(int id)
Determines if a measurement value is valid by its ID.
Parameters:
id - Measurement ID
Returns
0 - Measurement is invalid
Measurement Functions
Summary of Contents for Gocator 2100 Series
Page 197: ...Gocator Line Profile Sensors User Manual Gocator Web Interface Measurement 197 ...
Page 215: ...Gocator Line Profile Sensors User Manual Gocator Web Interface Measurement 215 ...
Page 462: ...Gocator Line Profile Sensors User Manual Specifications Sensors 462 Dimensions Envelope ...
Page 464: ...Gocator Line Profile Sensors User Manual Specifications Sensors 464 Envelope ...
Page 466: ...Gocator Line Profile Sensors User Manual Specifications Sensors 466 Dimensions Envelope ...
Page 468: ...Gocator Line Profile Sensors User Manual Specifications Sensors 468 Dimensions Envelope ...
Page 470: ...Gocator Line Profile Sensors User Manual Specifications Sensors 470 Dimensions ...
Page 471: ...Gocator Line Profile Sensors User Manual Specifications Sensors 471 Envelope ...
Page 473: ...Gocator Line Profile Sensors User Manual Specifications Sensors 473 Dimensions ...
Page 474: ...Gocator Line Profile Sensors User Manual Specifications Sensors 474 Envelope ...
Page 476: ...Gocator Line Profile Sensors User Manual Specifications Sensors 476 Dimensions ...
Page 477: ...Gocator Line Profile Sensors User Manual Specifications Sensors 477 Envelope ...
Page 479: ...Gocator Line Profile Sensors User Manual Specifications Sensors 479 Dimensions ...
Page 480: ...Gocator Line Profile Sensors User Manual Specifications Sensors 480 Envelope ...
Page 484: ...Gocator Line Profile Sensors User Manual Specifications Sensors 484 Dimensions ...
Page 485: ...Gocator Line Profile Sensors User Manual Specifications Sensors 485 Envelope ...
Page 487: ...Gocator Line Profile Sensors User Manual Specifications Sensors 487 Dimensions ...
Page 488: ...Gocator Line Profile Sensors User Manual Specifications Sensors 488 Envelope ...
Page 491: ...Gocator Line Profile Sensors User Manual Specifications Sensors 491 Dimensions ...
Page 492: ...Gocator Line Profile Sensors User Manual Specifications Sensors 492 Envelope ...
Page 506: ...Gocator Line Profile Sensors User Manual Specifications Master Hubs 506 Master 810 Dimensions ...