<< Click to Display Table of Contents > 

Client Control Interface Manual > Implementation

Implementation
Previous pageReturn to chapter overviewNext page

In general, CCI can be used with any programming environment of your choice. SAMLight offers three interfaces for remote control which differ in the configuration, communication and return value handling.

Always configure the remote settings in SAMLight (Settings - System - Remote) for the desired interface (local function calls, remote TCP or remote ASCII) first. Then, proceed as follows depending on your chosen interface.

OCX (ActiveX):

oInitialize COM

oInstantiate ActiveX control SCAPS.ScSamlightClientCtrl

oIf TCP, connect via ScOpenTCPConnection

oCall desired functions

COM (CCI Ex):

oInitialize COM

oCreate instance of SCAPS.ScSamlightClientCtrlEx object

oIf TCP, connect via ScOpenTCPConnection

oCall desired functions

ASCII (plain text):

oOpen TCP connection to configured IP and Port

oSend commands in the configured code page, with end character <LF>

oWait for end character <LF> in return data, interpret return string