---
title: "SPC:Perspective:Script:Generate SPC Analysis in Script"
id: "spc-perspective-script-generate-spc-analysis-in-script"
project: "Tutorials"
url: "https://docs.sepasoft.com/articles/mes-module-tutorials/spc-perspective-script-generate-spc-analysis-in-script"
updated: 2026-07-23T18:14:00Z
---

# SPC:Perspective:Script:Generate SPC Analysis in Script

## Generate SPC Analysis in Script

* If necessary, change the date range (or use components for a dynamic reporting screen) to span the time where samples were collected.
* Click the **Retrieve SPC Data** button. The script will retrieve sample data and push to the Ignition table for viewing.

![](/resources/Storage/mes-module-tutorials/spc-perspective-script-generate-spc-analysis-in-script/spc-perspective-script-generate-spc-analysis-in-script-2025-08-22.png)

[Next](/articles/mes-module-tutorials/spc-perspective-script-review-script-driven)