Collecting DMS Data
DMS data, or Defect data, refers to Inspection results that capture categorical or attribute-based outcomes, such as pass/fail checks, defect counts, or ratings of physical features. These types of data differ from SPC data in that they are typically discrete rather than continuous.
This guide builds on GS's Core Concepts and the Getting Started with Inspections guide.
Common Use Cases
This section provides best practices for common use cases of collecting DMS data.
Collecting Pass/Fail (Go/No-Go) Data
When an inspection or test of a Part results in it either being accepted or rejected as a whole, use a Pass/Fail Test. For example,
- Whether a thread gauge fits (Pass) or does not (Fail).
- Whether a valve passes a pressure test.
- Whether a refrigerator cools to a target temperature within 30 minutes.
To collect this type of DMS data, add a Pass/Fail Test to a Sub-Inspection and:
- Select the Defect that should be recorded if the Test fails.
- Set the Label to clearly describe the Test to the operator.
- Set the Sample Size to the number of physical parts that undergo the test simultaneously. This value is usually
1. - Set the NCU Count on Failure to the number of non-conforming units that should be recorded if the Test fails (i.e. the number of units scrapped). This value is typically set to match the Sample Size.
Collecting Multiple Defects
When multiple types or instances of Defects can occur on a single Part, use a Defect List Test. For example,
- An inspector walking around a boat's hull, marking the number of scratches and dents.
- A motherboard is inspected in a lab and has its number of burns counted.
- A sample of individually-packaged brownies is inspected for the count of misprinted or smudged labels.
To collect this type of DMS data, add a Defect List Test to a Sub-Inspection and:
- Select the Defect Category containing the list of available Defects.
- Set the Sample Size to the expected number of units that are inspected simultaneously.
- If the user should not be able to change this value while running the Inspection, uncheck Enable Sample Size.
- Determine how the count of non-conforming units should be set while running the Inspection.
- If the user should be able to manually set the number of NCUs, set NCU Behavior to User Input.
- If the number of NCUs is always equal to the number of Defects, set NCU Behavior to Auto Sum.
- If the number of NCUs will be set through a script, set NCU Behavior to Script Controlled. The NCU count can be set via the
ncuCountproperty of theDefectListTestApi.updateProperties()function.
Collecting Rating Scale Data
When you want to rate qualitative attributes like visual finish, tactile feel, or packaging quality using a consistent scale, use a Rating Test. For example,
- Color consistency is rated on a scale of 1 (Poor) to 5 (Excellent).
- Packaging damage is rated as None, Minor, or Severe.
- An inspector eats a potato chip and rates it as Not Salty, Perfect, or Too Salty.
To collect this type of DMS data, add a Rating Test to a Sub-Inspection and:
- Configure the Test's Options.
- Set the Sample Size to the number of physical parts that undergo the test simultaneously. This value is usually
1. - Set the NCU Count on Failure to the number of non-conforming units that should be recorded if the Test fails. This value is typically set to match the Sample Size.
Dynamic Inspections
In this section, you will create a dynamic, no-code Inspection in which Pass/Fail Tests automatically show or hide based on the selected Part. This approach is useful for shared Inspection layouts across multiple similar Parts.
Setup
Begin by creating three Defects and two Defect Categories.
- Navigate to the Defects list page and click Add.
- Name the Defect Thread Check and click Save.
- Repeat the process to create Paint Check and Toughness Check Defects.
- Navigate to the Defect Categories list page and click Add.
- Create a Standard Bolt Checks category and select only two of the Defects: Paint Check and Toughness Check.
- Create an Additional Bolt Checks category and select only the Thread Check Defect.
Your Defect Categories should now resemble the following images.
Next, create two Parts.
- Navigate to the Parts list page and click Add.
- Name the Part 3" Bolt.
- Select Standard Bolt Checks in the list of Defect Categories.
- Click Save.
- Create another Part named 5" Bolt and select both the Standard Bolt Checks and the Additional Bolt Checks Categories.
Create the Inspection
- Navigate to the Inspection list.
- Press the Add button.

- Fill in the Name field with Dynamic DMS Inspection.
- Press the Save button.

- Add a Part Test.
- Add three Pass/Fail Tests. For each Pass/Fail Test:
- Select the Save and Run action.
Run the Inspection
- Run the Sub-Inspection with the Tests. Initially, only the Part Test appears.
- Select 3" Bolt in the Part Test. Notice that the Paint Check and Toughness Check Tests appear.
- Select values for the Pass/Fail Tests, then click Submit.
- Rerun the Sub-Inspection and select the 5" Bolt. Notice that all three Pass/Fail Tests appear.
- Flip back and forth a few times between the two bolts. Notice that the Pass/Fail Tests change their visibility based on the selected Part.





