This page explains the basic process for connecting a data source to a graphic in MIStudio.
MIStudio graphics can be connected to data sources so the graphic updates when a value changes.
A data source may provide live equipment data, simulated data, database values, calculated values, or other runtime values. When connected to a graphic, the value can update the graphic's display, fill level, label, color, visibility, or other supported behavior.
Main Logic Editor showing the Data Sources tab and a SineServer connected to the valueInput of a Box graphic.
In this example, a SineServer data source is connected to the valueInput of a Box graphic. The SineServer output sends a changing numeric value to the Box, allowing the graphic to update from the data source.
Before connecting a data source, the graphic should already exist in the application.
To open the graphic in the Logic Editor:
Data sources are selected from the palette at the top of the Main Logic Editor.
To add a data source:
After the graphic and data source are both visible in the Logic Editor, create a connection between them.
Once the connection is made, the graphic can update from the changing data source value.
The correct connection target depends on the graphic and the behavior you want.
Common targets may include:
Different graphics respond to values in different ways.
For example:
Check the individual graphic page for details about how that graphic responds to input values.
Some graphic properties can be exposed so they can be connected to data sources.
Exposed properties are useful when a value should control a specific property, such as visibility, color, text, fill behavior, or another configurable setting.
See Exposed Properties for more information.
After connecting a data source, confirm that the connection is attached to the correct input and save the project.
If the graphic does not update as expected, check that the data source is producing a value and that the connection is attached to the correct graphic input or exposed property.
Previous: Editing Graphic Properties