This page introduces common test data sources in MIStudio.
Test data sources provide sample values that can be used while building and testing an MIStudio application.
They are useful when live equipment data, database data, or external system data is not available yet.
Test data sources can help confirm that graphics, controls, charts, and exposed properties update correctly while the application is running.
Test data sources are configured and connected in the MIStudio Logic Editor.
Test data sources are available in the Main Logic Editor.
To use a test data source:
For an overview of the Logic Editor, see MIStudio Logic Editor.
| Data Source | Value Type | Common Use |
|---|---|---|
| SineServer | Numeric | Testing meters, fill levels, charts, and numeric displays with a smoothly changing value. |
| RandomBoolean | Boolean | Testing on/off states, visibility, indicators, and true/false behavior. |
| RandomStringServer | String | Testing labels, text fields, text areas, and graphics that support text display. |
| ArrayDataSource | Array | Testing graphics or charts that expect a list of values. |
| TwoDimensionalDataSource | Two-dimensional data | Testing charts, tables, or displays that expect rows and columns of values. |
Choose a test data source based on the type of value the graphic or property expects.
For example:
Not every data source works with every graphic.
A graphic or property may expect a specific type of value. If the connected data source does not match the expected value type, the graphic may not update as expected.
For example, a numeric graphic should usually receive numeric data. A text graphic should usually receive string data. A chart may require array or two-dimensional data depending on the chart type.
A simple workflow for testing a graphic with a data source is:
A Box graphic can be connected to a SineServer data source through valueInput.
As the SineServer value changes, the Box can update based on the incoming numeric value.
For a step-by-step example, see Connecting a Data Source to a Graphic.
Previous: Data Sources Overview
Next: MIStudio Logic Editor