Text in a text field on the switchboard can dynamically be updated, triggered by events that take place somewhere on the layout. We use a text-variable to accomplish this.
- Create a global variable: Menu Windows > Explorer Window > Variables > right click > New Object > Variable
- Create a text field on the switchboard and add the variable to it: type %V … TC will add [?]. Double click %V[?] and select the variable you want to display from the list.
- In any element that can contain Operations (push button, switch, flagman, sensor, signal, schedule start or –finish) add: Control Flow Operations > Access to Variable > change > select your variable > =(Assignment) > type the text you want to display.
If we’d want to display a train name, we can not use the train names that were given when the trains were created, alas these can not be loaded into a variable. The video shows two options how we can work around this.