Table of Contents

Connecting a Data Source to a Graphic

This page explains the basic process for connecting a data source to a graphic in MIStudio.

Overview

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.

Example Connection

Main Logic Editor showing a SineServer connected to a Box graphic

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

Before connecting a data source, the graphic should already exist in the application.

To open the graphic in the Logic Editor:

Adding a Data Source

Data sources are selected from the palette at the top of the Main Logic Editor.

To add a data source:

Creating the Connection

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.

Common Connection Targets

The correct connection target depends on the graphic and the behavior you want.

Common targets may include:

Value Behavior

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.

Exposed Properties

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

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.

Getting Started Flow

Previous: Editing Graphic Properties

Next: Back to MIStudio Getting Started