Docklight Applications and Examples

Docklight Application Notes

..TapPro_Tap485.pdf Docklight Tap Pro and Docklight Tap 485 (RS232 and RS485/RS422 applications, 2-wire and 4-wire RS485, hardware setup and wiring, software options). PDF document.
..RS422_485.pdf RS422/485 Communication (using Docklight with USB-to-RS485 hardware, project settings for RS422/485. PDF document.
..DocklightTap.pdf Low latency RS232 monitoring with Docklight Tap. PDF document, 522 KB.
..RS232_Adapter.pdf RS232 Communication with Docklight RS232 Adapter (incl. information on non-standard baud rates). PDF document.
..TCP_Monitoring.pdf TCP Monitoring (monitoring a single client/server TCP connection). PDF document.
..Bluetooth.pdf Docklight and Bluetooth Serial Port. PDF document.
..DLL.pdf DLL Automation API. Adding Docklight-style communications (serial COM port, TCP or UDP) to your own application. PDF document.
..ArduinoSerial.pdf Working with Docklight and Arduino, the open-source electronics prototyping platform. PDF document. Arduino and Docklight projects / scripts. ZIP Archive.

Docklight Basic Examples

Please download and install the latest release of Docklight or Docklight Scripting before opening the examples below.
ModemDiagnostics.ptp can be used to perform a modem check. Either build-in or external modem is possible to test.
PingPong.ptp is a simple example for how to define and use Receive Sequences.

Docklight Scripting Examples

Please download and install the latest release of Docklight Scripting before opening the examples below.

Sample Scripts
Download Demo scripts for using log files names that include a date stamp and starting a different log file every day / every hour A collection of scripts with VBScript code examples (functions, methods, objects, properties, statements) Demo for a typical use case: testing the reaction of a device. Script and project file to simulate a communication loopback. How to use a flexible response to an incoming sequence, instead of answering with the same sequence all the time. This sample script can be used when there is a significant pause between two data packets and you need to check for a maximum packet length which may not be exceeded. How to add a delay time between individual characters of a Send Sequence. How to send all Send Sequences defined in a constant loop. Solving a CRC Reverse Engineering puzzle at Stackoverflow - how to find out the CRC algorithm to use when all you know from your protocol is a set of example messages including CRC.

Docklight Networking Examples

Download Demonstrates the use of Docklight Scripting as a TCP server and client. Demonstrates the use of Docklight Scripting as an UDP peer client talking to himself. Demonstrates the use of Docklight Scripting as an UDP peer. Demonstrates how to use Docklight Monitoring Mode for a TCP/IP based connection.

Docklight Examples for Third-Party Devices and Protocols

Download An example project for communicating with a Logitech Rumblepad 2 USB HID game controller, display joystick positions and keypad control events. A Docklight project for controlling a Gardasoft RT series LED controller for machine vision and other applications. A Docklight project for controlling FAULHABER motion controllers, e.g. MCBL 300x RS, MCDC 300x RS, 3564...B CS, 32xx...BX4 CS, 22xx...BX4 CSD Docklight Scripting example projects and automated testing programs for JENNY SCIENCE XENAX / LINAX / ELAX high precision linear drives. Shows different Docklight script approaches for device status polling or waiting for device events. A collection of projects and scripts for the Barix Barionet network-enabled automation interface (TCP, UDP and serial gateway). Project file and demo script for controlling two 350mA LEDs in continous mode using the IMSTec LED controller ILC2008. Instructions and demo project for testing RS232 communications with Russound multiroom audio controllers. Project file and demo script for controlling the intensity of the illumination source Volpi IntraLED 2020. Request basic data logging from Valhalla Scientific Inc. programmable Micro-Ohmmeter
Model 4300C How to switch the parity settings temporarily within one Send Sequence. This is useful for protocols that require a 9th data bit, e.g. for device addressing on a bus (9-bit protocol, address bit). A typical example is the MDB multidrop bus protocol for vending machines.