320 Agilent InfiniiVision 5000 Series Oscilloscopes Programmer's Guide
5 Commands by Subsystem
Introduction to
:MTESt
Commands
Mask testing automatically compares the current displayed waveform with
the boundaries of a set of polygons that you define. Any waveform or
sample that falls within the boundaries of one or more polygons is
recorded as a failure.
Reporting the Setup
Use :MTESt? to query setup information for the MTESt subsystem.
Return Format
The following is a sample response from the :MTESt? query. In this case,
the query was issued following a *RST command.
:MTES:SOUR CHAN1;ENAB 0;LOCK 1;:MTES:AMAS:SOUR CHAN1;UNIT DIV;XDEL
+2.50000000E-001;YDEL +2.50000000E-001;:MTES:SCAL:BIND 0;X1
+200.000E-06;XDEL +400.000E-06;Y1 -3.00000E+00;Y2
+3.00000E+00;:MTES:RMOD FOR;RMOD:TIME +1E+00;WAV 1000;SIGM
+6.0E+00;:MTES:RMOD:FACT:STOP 0;PRIN 0;SAVE 0
Example Code
' Mask testing commands example.
' -------------------------------------------------------------------
Option Explicit
Public myMgr As VisaComLib.ResourceManager
Public myScope As VisaComLib.FormattedIO488
Public varQueryResult As Variant
Public strQueryResult As String
Private Declare Sub Sleep Lib "kernel32" (ByVal dwMilliseconds As Long)
Sub Main()
On Error GoTo VisaComError
' Create the VISA COM I/O resource.
Set myMgr = New VisaComLib.ResourceManager
Set myScope = New VisaComLib.FormattedIO488
Set myScope.IO = myMgr.Open("TCPIP0::130.29.70.228::inst0::INSTR")
myScope.IO.Clear ' Clear the interface.
:MTESt:SOURce
<source> (see
page 349)
:MTESt:SOURce? (see
page 349)
<source> ::= {CHANnel<n> | NONE}
<n> ::= {1 | 2 | 3 | 4} for 4ch
models
<n> ::= {1 | 2} for 2ch models
n/a :MTESt:TITLe? (see
page 350)
<title> ::= a string of up to 128
ASCII characters
Table 54 :MTESt Commands Summary (continued)
Command Query Options and Query Returns