# Binding a global variable to a widget

You can bind a global variable to a widget to control or display the global variable via the visualisation.

1. Create a global variable with appropriate data type.

1. Start editing the real-time application.
2. In the menu bar, click Visualisation.
3. On the drawing area, select the widget you want to bind to a global variable.
4. In the Properties, click DATA.
5. In the list box Data binding, select the global variable you want to bind to the widget.

1. The global variable is bound to the widget.

Creating a global variable