---
title: "system.mes.spc.analysis.getSPCDataFormatEnum(value)"
id: "system-mes-spc-analysis-getspcdataformatenum-value"
project: "MES User Manual"
url: "https://docs.sepasoft.com/articles/user-manual/system-mes-spc-analysis-getspcdataformatenum-value"
updated: 2026-07-31T14:54:11Z
---

# system\.mes\.spc\.analysis\.getSPCDataFormatEnum\(value\)

**Sepasoft MES Module Suite**

### system.mes.spc.analysis.getSPCDataFormatEnum(value)

Returns SPCDataFormat for the specified ordinal value. The SPC data formats represent the control chart types and is used when specifying the kind SPC results to return.

Syntax

system.mes.spc.analysis.getSPCDataFormatEnum(value)

* Parameters

Integer value - The ordinal value representing the SPCDataFormat.

0 - None
1 - XBarR
2 - XBarS
3 - Individual
4 - Median
5 - U
6 - C
7 - P
8 - NP
9 - Histogram
10 - Pareto
11 - Process Capability
12 - Process Performance
13 - Parts Per Million
14 - Anderson-Darling Test
15 - Box and Whisker
16 - Process Capability and Performance

* Returns

**SPCDataFormat** - A reference to the matching SPCDataFormat object.

* Scope

All

Code Example

```python
for i in range(17):
	print i,'-',system.mes.spc.analysis.getSPCDataFormatEnum(i)
```


**Sepasoft MES Module Suite**