---
title: "SPC:Perspective:Script:Configure Analysis Data"
id: "spc-perspective-script-configure-analysis-data"
project: "Tutorials"
url: "https://docs.sepasoft.com/articles/mes-module-tutorials/spc-perspective-script-configure-analysis-data"
updated: 2026-07-23T18:14:00Z
---

# SPC:Perspective:Script:Configure Analysis Data

## Configure Analysis Data

Create a new view **SPC\_03\_Scripting/Analysis**

The Analysis Page contains three components:

[SPC Controller](/articles/user-manual/spc-controller-perspective)

[Ignition Table](https://www.docs.inductiveautomation.com/docs/8.1/appendix/components/perspective-components/perspective-display-palette/perspective-table)

[MES Object Selector](/smart/project-imported-manual/mes-object-selector-perspective)

![](/resources/Storage/mes-module-tutorials/spc-perspective-script-configure-analysis-data/spc-perspective-script-configure-analysis-data-2025-08-22.png)

### Configure MES Object Selector

* Drag an MES Object Selector from Perspective Components list to the view.
* Set **IncludeMESLocationObjects** to true
* Set **ShowEquipmentPath** to true

### Configure SPC Controller

* Drag an SPC Controller from the Perspective Components list to the view and select it.
* Expand **spcChartSettings** property
    * Set **autoUpdate** property = true
    * Set **autoRefresh** property = true
    * Expand settings
        * Set **attributeName** property = Diameter
        * Set **definitionName** property = Dimension Sample B
        * Set **measurement** property = Measurement 1
        * Set **spcDataFormat** drop-down property = Individual
        * Expand **filters**
            * Bind the **location** property to the MES Object Selector property **selectedMESObject.equipmentPath**
    * Set **startDate** and **endDate** to timestamps within your sample boundary.

![](/resources/Storage/mes-module-tutorials/spc-perspective-script-configure-analysis-data/spc-perspective-script-configure-analysis-data-2025-08-22-1.png)

    Configure Ignition Table
* Drag Ignition Table to the View
* Bind data property to SPC Controller **spcChartSettings.spcData** property.

![](/resources/Storage/mes-module-tutorials/spc-perspective-script-configure-analysis-data/spc-perspective-script-configure-analysis-data-2025-08-22-2.png)

Note the SPC Controller is invisible in preview mode and in the client. The controller can be used to drive tables and charts for dashboards or other views where the configuration should not be visible to the user.