SPLat Logo

Tutorial: Debugging SPLatWare using serial data

NOTICE: Our web site is being updated, but is currently experiencing extreme slowness due to host issues. Please contact us directly.
NOTICE: SPLat Controls has moved. We are now at 1/85 Brunel Rd, Seaford, 3198. map
SPLat will be shut down for the Christmas Holiday season from Friday 20 December 2024 through Tuesday 7 January 2025. We will check emails periodically and will continue to process orders but at a slower pace. Santa hat

Tutorial: Debugging SPLatWare using serial data

With the advent of a user programmable serial protocol capability, and with the inclusion of a serial terminal function, a very powerful technique has become practicable for debugging SPLat programs. This tutorial will show you some useful techniques using these resources.

Note: Since this tutorial was written we have developed SimpleHMI, an alternative way of interacting with a running SPLat program via the serial port. For certain uses SimpleHMI can offer a better capability.

The serial terminal (this tutorial) is the right choice if you are developing serial communications to fit a 3rd party device such as a motion control board or a weigh-scale, which has its own predetermined message formats (protocol).

As a powerful tool for general program debugging SimpleHMI offers a different set of features. SimpleHMI is also easier to program because it uses hash commands.

This is mainly about debugging techniques. That said, it will equip you for any challenge that involves generating arbitrary serial data out of a SPLat controller.

Target audience

This tutorial is designed to inspire and inform SPLat users who have never had any experience of squirting debug data out of a spare port. If the previous sentence make perfect sense to you, you probably needn't continue. Just study the communications instructions, read up on the terminal function in SPLat/PC, and you are good to go. (That said, you may find a few new ideas in here).

If you have never used any debug tools beyond what SPLat/PC has offered in the past (prior to November 2011), then this could be a very good thing to study.

You probably also need to be developing well-structured programs of some complexity to make this (serial port debugging) worth the effort.

Outcomes (what you will get out of this tutorial)

Prerequisites (what you should know before you start):

Hardware and software requirements

________________________________________________

Related topics

SimpleHMI Serial communication