---
title: "SPC:Perspective:Tag:Configure Sample Definition"
id: "configure-sample-def"
project: "Tutorials"
url: "https://docs.sepasoft.com/articles/mes-module-tutorials/configure-sample-def"
updated: 2026-07-23T18:14:02Z
---

# SPC:Perspective:Tag:Configure Sample Definition

## Create Sample Definition
 Let's create a **Sample Definition** with three **Sample Attributes**, using the **SPC Sample Definition Manager** window we created on the previous page. We'll utilize it in an upcoming section, to collect some sample data values.
 * * *
 ### Create a Sample Definition Class

* Launch a client to the Sample Definition page previously created, click ![](/resources/Storage/mes-module-tutorials/spc-perspective-gui-create-sample-definition/spc-perspective-gui-create-sample-definition-2025-08-04.png)in the toolbar of the SPC Sample Definition Manager component.
* Click Add Sample Definition Class --&gt; Set As Standalone Class

![](/resources/Storage/mes-module-tutorials/spc-perspective-gui-create-sample-definition/spc-perspective-gui-create-sample-definition-2025-08-04-1.png)

* Name it ***SPC Tutorial Samples*** and click **Save ![](/resources/Storage/mes-module-tutorials/spc-perspective-gui-create-sample-definition/spc-perspective-gui-create-sample-definition-2025-08-04-2.png)**. The new Sample Definition Class will be at the top of your hierarchy tree, as shown.

![](/resources/Storage/mes-module-tutorials/spc-perspective-gui-create-sample-definition/spc-perspective-gui-create-sample-definition-2025-08-04-3.png)

### Create a Sample Definition

* With the new Sample Definition Class highlighted, click **![](/resources/Storage/mes-module-tutorials/spc-perspective-gui-create-sample-definition/spc-perspective-gui-create-sample-definition-2025-08-04.png)**and **Add Sample Definition --&gt; Make Selected Definition Class The Parent**

![](/resources/Storage/mes-module-tutorials/spc-perspective-gui-create-sample-definition/spc-perspective-gui-create-sample-definition-2025-08-04-4.png)

* Enter the following properties:
    * Name: ***pH Sensor***
    * Interval Type: ***Every Value Change***
    * Auto Approve: ***true***
* Click **Save ![](/resources/Storage/mes-module-tutorials/spc-perspective-gui-create-sample-definition/spc-perspective-gui-create-sample-definition-2025-08-04-5.png)**. The new Sample Definition will be a child element to ***SPC Tutorial Samples.***

![](/resources/Storage/mes-module-tutorials/configure-sample-def/configure-sample-def-2025-08-14-1.png)

### Create Sample Attribute

* With ***pH Sensor*** highlighted, click **Sample** **Attributes**in the **Selected Definition**section.
* Click **Add ![](/resources/Storage/mes-module-tutorials/spc-perspective-gui-create-sample-definition/spc-perspective-gui-create-sample-definition-2025-08-04-7.png)**to create a new **Attribute**.
* Enter the following properties: 
    * Name: ***ph***
    * Datatype: ***Real***
    * ChartType: ***Individual***
    * Sample Size: ***1***
    * MinimumValue: **0**
    * MaximumValue: ***14.0***
    * Format: ***#0.00***

* Click **Save ![](/resources/Storage/mes-module-tutorials/spc-perspective-gui-create-sample-definition/spc-perspective-gui-create-sample-definition-2025-08-04-5.png)**. The new Attribute will be visible in the list.
* Repeat steps 2-3 above to create the remaining two attributes, ***LocationY*** and ***Diameter*** with the same properties. You should end up with three Sample Attributes in the list.
![](/resources/Storage/mes-module-tutorials/configure-sample-def/configure-sample-def-2025-08-14-2.png)
* Click **Save ![](/resources/Storage/mes-module-tutorials/spc-perspective-gui-create-sample-definition/spc-perspective-gui-create-sample-definition-2025-08-04-5.png)**to save and exit editing Attributes.
 * * *
 ### Assign Location

* With ***ph*** highlighted, select **Location** in the **Selected Definitions** section.
* Click to place a checkmark to the left of ***Test Location*** under **Line 1**. This assigns the Location to to Sample.
* Enter the following properties under **Location Settings**on the right: 
    * Interval Type: ***Every Value Change** (should already be set)*
    * Auto Approve: ***t******rue*** (should already be true)

![](/resources/Storage/mes-module-tutorials/spc-perspective-gui-create-sample-definition/spc-perspective-gui-create-sample-definition-2025-08-04-9.png)

* Click **Save ![](/resources/Storage/mes-module-tutorials/spc-perspective-gui-create-sample-definition/spc-perspective-gui-create-sample-definition-2025-08-04-5.png)**to save and exit editing Locations.
 [Next](/articles/mes-module-tutorials/spc-perspective-tag-configure-custom-spec-limits)