Returns a list of all masks in the active database. Each entry in the list contains two fields, delimited by a semi-colon. The first field indicates if the mask is segmented or continuous (Trace). The second field is the mask name.
MaskEditor.RemoveAMaskFromDB Method
VB
Public Sub RemoveAMaskFromDB(ByVal Maskname As String_)
Path: The full path in the local file system to the database you want to access with the MaskEditor API.
Remarks
Sets the path to the active database. This is the path only, and should not include a database name.
MaskEditor.addSegmentedMaskToDB Method
VB
Public Function addSegmentedMasktoDB(ByVal MaskName As String,ByVal MaskDescription As String_) As Boolean
C#
public bool addSegmentedMasktoDB(String MaskName,String MaskDescription)
C++
public bool addSegmentedMasktoDB(String MaskName,String MaskDescription)
Parameters
MaskName: The name of the mask to add. This name will identify the mask in the database and will be used to assign a particular mask to channels for Pass/Fail qualification.
MaskDescription: The full description of the mask. See Remarks below for the format.
Remarks
Maskname should be unique. Giving two masks in a database the same name will cause a conflict and you will not know which is being used.
MaskDescription is a string value the contains the mask segment parameters. The format is:
Where UpperLower: 0 for Upper limit; 1 for lower limit
MaskEditor.addTraceMaskToDB Method
VB
Public Function addTraceMasktoDB(ByVal MaskName As String,ByVal Freq1 As Single,ByVal Freq2 As Single,_ByVal TraceData As String,ByVal UpperLimit As Boolean)As Boolean
MaskName: The name of the mask to add. This name will identify the mask in the database and will be used to assign a particular mask to channels for Pass/Fail qualification.
Freq1: The start frequency for the mask in Hz.
Freq2: The stop frequency of the mask in Hz.
TraceData: The mask trace data. A comma string containing power values in dBm used to qualify traces.
UpperLimit: Boolean value indicates if the mask is to be considered an upper limit (True) or a lower limit (False).
Remarks
Maskname should be unique. Giving two masks in a database the same name will cause a conflict and you will not know which is being used.
TraceData is a comma delimited string of power values in dBm. It is expected to have the same number of points as the trace DisplayPoints it will be used to test.