<< Click to Display Table of Contents > 

SAMLight Manual > Global Settings > Remote > Script Settings

Script Settings
Previous pageReturn to chapter overviewNext page

Besides the possibility to have an external application that is under the control of the user it is also possible to start such an application from within the scanner application. To do that the following settings are used:

Menutitle: Specify the name which is shown in the Special entry of the Menu bar. This name is used to address the application that has to be started out of SAMLight. After the special menu appears, their options can also be specified to be used with ShortKeys.

Path to Script or Executable: This script or *.exe is executed whenever the related name in the Special entry in the menu bar is selected. The following programs are supported:

Executables (*.exe) that are started and that should access the Client Control Interface of the application

Client Control Scripts (*.ccs) that contain ASCII CCI commands that are interpreted and executed. These scripts may contain comments using # as a delimiter. Further commands can just be located in the next line. There is no character needed to terminate the line. There is also no cci. before the command needed.

Batch File (*.cmd/*.bat)

note

After these scripts are executed within the context of the scanner application there is no need to perform any initialization or opening of a connection. The commands to control the application can be used directly.

 

Client Control Script Example:

Homing with additional Movement

 

 ### Script for axis homing and move ###

 # set motion axis 0

 ScCciSetLongValue(17, 0)

 # home motion axis 0

 ScCciExecCommand(15)

 # move motion axis 0

 ## set motion axis to abs. position 20 mm

 ScCciSetDoubleValue(38, 20.0)

 ## set axis speed to 20 mm/s

 ScCciSetDoubleValue(42, 20.0)

 ## Wait for Motion end

 ScCciSetLongValue(18, 1)

 ## Motion Go

 ScCciExecCommand(16)

 ### End ###

 

This file can be generated via texteditor. This file must be saved with *.ccs.

It can then be linked in the script settings and activated via the special tab or the special toolbar.