Script

A Script measurement can be used to program a custom measurement using a simplified C-based syntax. A script measurement can produce multiple measurement values and decisions for the output.

For more information on script tool syntax, see Scripts.

To create or edit a Script measurement:

1. Add a new Script tool or select an existing Script measurement.
2. Edit the script code.
3. Add script outputs using the Add button.

For each script output that is added, an index will be added to the Output drop-down and a unique ID will be generated.

To remove a script output, click on the button next to it.

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.