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
in the toolbar of the SPC Sample Definition Manager component. - Click Add Sample Definition Class --> Set As Standalone Class

- Name it SPC Tutorial Samples and click Save
. The new Sample Definition Class will be at the top of your hierarchy tree, as shown.

Create a Sample Definition
- With the new Sample Definition Class highlighted, click
and Add Sample Definition --> Make Selected Definition Class The Parent

- Enter the following properties:
- Name: pH Sensor
- Interval Type: Every Value Change
- Auto Approve: true
- Click Save
. The new Sample Definition will be a child element to SPC Tutorial Samples.

Create Sample Attribute
- With pH Sensor highlighted, click Sample Attributes in the Selected Definition section.
- Click Add
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
. 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.

- Click Save
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: true (should already be true)

- Click Save
to save and exit editing Locations.