SpectralMaskSpecification
Display upper and lower spectral mask lines on the Spectrum Analyzer
Description
Masks are overlaid on the spectrum. If the mask is green, the signal is passing the mask limits. If the mask is red, the signal is failing the mask limits.
You can check the status of the spectral mask from the scope toolbar, the command-line, or event listeners:
To modify the spectral mask and see the spectral mask status, in the scope toolbar, select the spectral mask button, . In the Spectral Mask pane that opens, you can modify the masks and see details about what percentage of the time the mask is succeeding, which mask is failing, how many times the mask failed, and which channels are causing the failure.
To get the current status of the spectral masks, call the function
getSpectralMaskStatus
.To perform an action every time the mask fails, use the
MaskTestFailed
event. To trigger a function when the mask fails, create a listener to theMaskTestFailed
event and define a callback function to trigger. For more details about using events, see Events.
Creation
Description
mask = SpectralMaskSpecification()
creates a spectral mask object
mask
.
mask = SpectralMaskSpecification(
sets properties using one or more name-value pairs. Enclose each property name in quotes.
For example, Name,Value
)mask =
SpectralMaskSpecification("EnabledMasks","Lower")
.
Properties
Examples
Version History
Introduced in R2016b