---
title: "SPC:Perspective:GUI:Create Sample Definition"
id: "spc-perspective-gui-create-sample-definition"
project: "Tutorials"
url: "https://docs.sepasoft.com/articles/mes-module-tutorials/spc-perspective-gui-create-sample-definition"
updated: 2026-07-23T18:14:05Z
---

# SPC:Perspective:GUI:Create Sample Definition

## Create Sample Definition | Defining Data Collection Parameters
 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)

Define the Sample: Within the new class, add a new Sample Definition. Name it Dimension Sample A, set its Interval Type to Every Value Change—which is ideal for manual data entry workflows where samples are generated on-demand rather than at fixed time intervals—and enable the Auto Approve property.

* Name: ***Dimension Sample A***
* 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/spc-perspective-gui-create-sample-definition/spc-perspective-gui-create-sample-definition-2025-08-04-6.png)*

### Create Sample Attributes

* With ***Dimension Sample A*** 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: ***LocationX***
    * Datatype: ***Real***
    * ChartType: ***Individual***
    * Sample Size: ***1***
    * MaximumValue: ***100.0***
    * Format: ***#0.00***
    * Unit: ***mm***
* 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.

| Name | Datatype | ChartType | Sample Size | MaximumValue | Format | Unit |
| --- | --- | --- | --- | --- | --- | --- |
| LocationX | Real | Individual | 1 | 100.0 | #0.00 | mm |
| LocationY | Real | Individual | 1 | 100.0 | #0.00 | mm |
| Diameter | Real | Individual | 1 | 100.0 | #0.00 | mm |
You should end up with three Sample Attributes in the list.

![](/resources/Storage/mes-module-tutorials/spc-perspective-gui-create-sample-definition/spc-perspective-gui-create-sample-definition-2025-08-04-8.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 ***Dimension Sample A*** 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.
 * * *
 ### Assign Rules

Finally, link the sample definition to the production model and establish its analytical rules.

* With ***Dimension Sample A*** highlighted, click **Rules** in the **Selected Definition** section.
* Click the checkbox next to ***Individual Nelson Rule 3*** to select it.

![](/resources/Storage/mes-module-tutorials/spc-perspective-gui-create-sample-definition/spc-perspective-gui-create-sample-definition-2025-08-04-10.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 Rules.
 
### Assign Control Limits

* With ***Dimension Sample A*** highlighted, click **Control Limits** in the **Selected Definition** section.
* Click the checkboxes next to ***Individual LCL*** and ***Individual UCL*** to select them.
![](/resources/Storage/mes-module-tutorials/spc-perspective-gui-create-sample-definition/spc-perspective-gui-create-sample-definition-2025-08-04-11.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 Control Limits.

Now that the data structure is fully defined, the next step is to build the user interface for operators to enter this data.
 [Next](/articles/mes-module-tutorials/spc-perspective-gui-configure-manual-sample-collection)