Scripting Functions

The In-Sight Script functions are used to create scripts, which store JavaScript source code inside a cell, allowing custom-designed source code to be a part of a job.

  • Script: Create and edit JavaScript code to run user-written source code (created in the Edit Script dialog).
  • Get: Vision Data Access function that accesses the properties of arrays and/or objects returned by a Script function.
  • Script Function JavaScript Source Code and API Reference: Overview of guidelines to follow when writing JavaScript source code for a Script function. For more information, see Script Function JavaScript Source Code and API Reference.
Note:
  • These functions are only available on the In-Sight vision systems running In-Sight firmware 5.1.0 and later. For a complete list of models and supported firmware versions, see Firmware Versions.
  •  The Script function requires a knowledge of basic programming principles. The information provided in this overview topic is intended for users already familiar with the basic principles of programming. For more in-depth information about the JavaScript programming language, please consult the following (Internet access is required):