SPLat Logo

# Print(Arg1{, Arg2 ...}) hash function

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

# Print(Arg1{, Arg2 ...}) hash function

Valid for use with hash commands: HMI, HMI_Trace and HMI_Log (on the platforms that support those respective hash commands)

Implemented on the following platforms: HMi430, Android, Windows.

The Print hash function can take almost as many comma-separated Arguments as you like - the limit is set by the size of the communications buffer in most platforms, which is 255 bytes. However, it's sensible to not make the argument list too long.

The arguments can be either quoted text strings or formatting functions.

Handling of non-printable character codes

Non-printable character codes can be sent to the display using the literal formatting function. The result will depend entirely on the platform. For example, SimpleHMI in Android does not respond to carriage return or line feed characters, (nor does it word-wrap). The HMI_Log display in Windows does respond to carriage return and line feed characters.

Example: A very simple clock display on the HMI430. The time is formatted using the byte formatting function with the "2" format specifier..

;Dead simple clock on HMI430  Loop:          RTCReadTime             ;Read RTC to HH, MM and SS registers          #HMI SetCursor(0, 0) Print("Hello, the time is ", b(=hh, 2), ":", b(=mm, 2), ":", b(=ss, 2))                  Pause           10      ;Update every 100mS          GoTo            Loop    ;Repeat forever