Docklight - Examples


Application Notes

Download
..RS422_485.pdf RS422/485 Communication (project settings for RS422/485, monitoring a 2-wire or 4-wire link). PDF document, 69 KB.
..TCP_Monitoring.pdf TCP Monitoring (monitoring a single client/server TCP connection). PDF document, 22 KB.
..DocklightTap.pdf Low latency monitoring with Docklight Tap. PDF document, 827 KB.
..Bluetooth.pdf Docklight and Bluetooth Serial Port. PDF document, 845 KB.

Basic Examples

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


Download
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
LogFileNamesTimestamp.zip Demo scripts for using log files names that include a date stamp and starting a different log file every day / every hour
VBScriptLanguage.zip A collection of scripts with VBScript code examples (functions, methods, objects, properties, statements)
AcknowledgeTimeout.zip Demo for a typical use case: testing the reaction of a device.
EchoMessages.zip Script and project file to simulate a communication loopback.
FlexibleAnswers.zip Demonstrates how to use a flexible response to an incoming sequence, instead of answering with the same sequence all the time.
PacketLengthTest.zip 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.
ParitySwitch_9BitProtocols.zip Demonstrates how to switch the parity settings temporarily within one Send Sequence. This is useful for protocol that require a 9th data bit, e.g. for device addressing on a bus (9 bit protocol, 9 data bits).
SendByteTiming.zip Demonstrates how to add a delay time between individual characters of a Send Sequence.
IeeeFloatDecoding.zip Sample script to decode a IEEE float with single precision (4 bytes). Uses a UDP loopback to transmit and receive data.

Networking

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

Third-Party Devices

Download
BarionetExamples.zip A collection of projects and scripts for the Barix Barionet network-enabled automation interface (TCP, UDP and serial gateway).
IMSTec-LEDcontroller.zip Project file and demo script for controlling two 350mA LEDs in continous mode using the IMSTec LED controller ILC2008.
RussoundControllersExample.zip Instructions and demo project for testing RS232 communications with Russound multiroom audio controllers.
VolpiIntraLED2020Example.zip Project file and demo script for controlling the intensity of the illumination source Volpi IntraLED 2020.


back back to the Docklight main page