Ideal Eyes Systems
youtube

Script Functions for OptimEyes

Easily add custom functionality to OptimEyes using Script Functions


(VisualEyes Scripting Tool)

Script Functions are similar to Standard Tools and Custom Tools, except that they have no Graphical User Interface (GUI.) Instead, they are controlled via VisualEyes Scripting using the Script Function item . Like Custom Tools, they have access to the entire OptimEyes API, all the Tool APIs, 3rd party APIs, and all VisualEyes Scripting variables.

Built-In Script Functions

OptimEyes ships with over 20 Script Functions assist you in automating processes such as:

  • Launching applications.
  • Reading from and writing to INI files (enabling configuration of your scripts via text files rather than requiring them to be edited every time you want to switch between options.)
  • Calibrating images on-the-fly (for dynamic circumstances that can't be easily handled using the Calibration Tool.)
  • Finding best-fit lines.
  • Enabling users of your scripts to select a folder to operate from.
  • Getting rotation angles and locations of specific points from ROIs.
  • Finding the points where ROIs intersect each other.
  • Getting the positions of user mouse clicks.
  • Generating points, lines, or coordinates by projecting from a point at a specified angle.
  • ...and more.

Custom Script Functions

Ever spend good money on an application just to find out that it only does most of what you need? Script Functions ensure that won't happen with OptimEyes.

Need to hook up hardware from different vendors? Talk to a database? Run a complex state machine? No problem, just create a Script Function.

Script Functions are created in C++ using Microsoft Visual Studio. They are easier to write than custom tools, as they have no GUI. We provide you with all the example code and documentation necessary to get your Script Function up and running quickly.

Script Functions enable much greater customization than other applications on the market. Rather than just controlling the existing Tools with a limited macro language, you can write your own C++ code that becomes as much a part of the application as the standard Tools.

Script Functions in Action

= + + (Visual Studio SDKs) + (Digital IO Vender SDK)

When a large manufacturing company needed a better way to control a nut sorting process, they contacted our predecessor, Western Vision Software, for a solution. Western Vision first used the individual standard tools to figure out how to do what was needed. They first combined the image processing part of the control process into a script to determine which nuts where good and which were bad. However, they still needed to use the results of the image processing to control a Digital IO board to eject the bad nuts. So, they combined all the functionality of the individual tools, the Visual Studio SDK, and the Digital IO SDK, into a standalone easy to use Script Function. This single Script Function now performs all the needed high-speed Digital IO, sub-millisecond timing, and queuing to help sort good nuts from bad.