Dynamic Text Control

The PDTS can use the UIText command in a local task to dynamically alter the displayed text on buttons and text components, making it possible to create responsive custom controls and indicators.

The UIText command requires the following:

  • The latest versions of System Builder, UI Creator, and PDTS firmware.

  • A UI made in UI Creator and loaded to the PDTS.

  • The target Button/Text ID from UI Creator, shown under Properties > Behaviour.

Buttons must have the Properties > Appearance > Text slider enabled to expose their ID.

Local Task Example

Task1()
{
UIText (ButtonId = 200, TextMessage = "New Text Here")
}

Set the following:

  • ButtonId (integer) - This property is used for both buttons and text components.

  • TextMessage - The replacement text for the component.

Some versions of the PDTS firmware (v2.32b15508 and earlier) may terminate a task immediately after executing the UIText command.
If including multiple commands in a task, place these before the UIText command to avoid this.