# :MEASure:MTESt:MHRegion{N}?

Margin Region Violation Commands

- :MEASure:MTESt:MHRegion{N}?
- :MEASure:MTESt:MHRegion{N}:LOCation?
- :MEASure:MTESt:MHRegion{N}:STATus?
- :MEASure:MTESt:MHRegion:STATus:DETails?
- :MEASure:MTESt:MHRegion{N}:STATus:REASon?

## Query Syntax

    :MEASure:MTESt{N}:MHRegion{1:16}?

{N} identifies a specific mask and must be a value from 1 to 16. For example, `:MTESt2` selects mask 2.

## Description

Returns the number of margin violations for a mask Region reported in the Masks Tests results table during eye mask testing. Include the region's identification number, as displayed on the mask, in the command. For example, to query the violations for Region 2, use this query:

    :MEASure:MTESt{N}:MHRegion2?

If positive mask margins are applied, this count does include any point within the standard mask area. If negative mask margins are applied, this count only includes points within the margin but not outside the margin area into the standard mask area.

If the selected region is defined by the mask, this command returns an integer (number of violations) and the `:STATus?` child query returns `CORR`. If the region is not defined by the mask, this command returns "9.91E+37 (NaN)", the `:STATus?` child query returns `INV`, and the `:STATus:REASon?` child query returns the string "Invalid Region".

To query the total number of violations for all mask margin regions, use the `:MEASure:MTESt:MHITs?` command.