Microsoft, and Microsoft QuickBASIC are trademarks of Microsoft Corporation.
IBM is a registered trademark of International Business Machines Corporation.
CombiScope
PCIIA is a trademark of National Instruments Corporation.
HPGL is a trademark of Hewlett-Packard Company.
is a trademark of Fluke Corporation.
Copyright 1996, 1998 Fluke Corporation
All rights reserved. No part of this manual may be reproduced by any means or in
any form without written permission of the copyright owner.
The SCPI Programming Manual for the CombiScope instruments describes
how to program your CombiScope instrument via the IEEE bus using SCPI
commands.
1.1What this Manual Contains
A complete table of contents is given at the beginning of the manual.
Chapter 1ABOUT THIS MANUAL
Explains what the SCPI programming manual for the CombiScopes
instruments contains.
Chapter 2GETTING STARTED WITH SCPI PROGRAMMING
T ells you how to get started quickly with your CombiScope instrument.
You can execute the program examples per (sub)section or from the
beginning until the end.
Chapter 3USING THE COMBISCOPE INSTRUMENTS
Explains how SCPI works for your CombiScope instrument from
the functional point of view. Section 3.1 is an introduction and
section 3.2 explains the fundamental programming concepts. The
other sections and subsections represent the functional use of your
CombiScope instrument.
Chapter 4COMMAND REFERENCE
Is a complete alphabetical reference of all implemented SCPI
commands. In the beginning a command summary is given to
provide you with a quick reference.
1 - 2ABOUT THIS MANUAL
Appendix AAPPLICATION PROGRAM EXAMPLES
Appendix A describes some application program examples. The
application programs are supplied on floppy.
Appendix BCROSS REFERENCES
Appendix B gives cross references between SCPI commands and
front panel keys, softkey menu options, and instrument functions.
Appendix CMANUAL CONVENTIONS
Appendix C explains which abbreviations and symbols ar e used i n
the manual. It also gives a list of the tables, figures, and documents
referenced.
Appendix DSTANDARDS INFORMATION
Appendix D gives information regarding SCPI and IEEE-488.2
standards.
Appendix ESUMMARY OF SYSTEM SETTINGS
Appendix E lists the system settings per functional group (node),
plus the applicable instrument settings per node.
A full alphabetical index is given at the end of the manual.
GETTING STARTED WITH SCPI PROGRAMMING2 - 1
2GETTING STARTED WITH SCPI
PROGRAMMING
2.1Preparations for SCPI Programming
To program your CombiScope instrument, you need a system setup and a
programming environment. Various program examples (refer to PROGRAM
EXAMPLE:) are given in the following sections. These progra m examples can be
executed one at a time or chained together for a complete tutorial. The program
examples are based on the system and programming environment as described
below.
Note:All PROGRAM EXAMPLE's in this chapter are supplied on floppy under
the file name EXGETSTA.BAS. They are chained together in order of
appearance.
2.1.1System setup
The CombiScope instrument contains a factory-installed IEEE option.
•
A PC is used as controller. In the PC an IEEE-488.2 interface (GPIB) board
•
must be installed to turn the PC into a GPIB controller. The GPIB controller
must be connected to the CombiScope instrument via an IEEE cable.
Note:The program examples throughout this manual have bee n executed
on an IBM-compatible PC with the GPIB interface board and
software of the product PM2201/03 installed. The PM2201 board is
equivalent to the PCIIA board from National Instruments.
2.1.2Programming environment
MS-QuickBASIC is used as the programming language.
•
A number of standard IEEE-488.2 drivers are used to control the CombiScope
•
instrument via the GPIB. These drivers must be included in the application
program. Therefore, the first statement of an application program must be as
follows:
REM $INCLUDE: ’<path>QBDECL.BAS’
Note:The program examples throughout this manual have bee n executed
using the IEEE-488.2 drivers and the device handler GPIB.COM of
the product PM2201/03.
2 - 2GETTING STARTED WITH SCPI PROGRAMMING
The parameters of these drivers are defined by the device handler GPIB.COM
and by the QuickBASIC program code. The following drivers a nd param eters ar e
used in the program examples:
The IEEE-488.2 driver "Send" is used to send a command or query to an
•
instrument.
CALL Send (<board>, <address>, <command>, <eot>)
The IEEE-488.2 driver "SendSetup" is used to prepare one or more devices
•
to receive data bytes. The controller becomes talker and the device b ecomes
listener.
CALL SendSetup (<board>, <addresslist>)
The IEEE-488.2 driver "SendDataBytes" is used to send data bytes from a
•
talking controller to a listening device.
CALL SendDataBytes (<board>, <data>, <eot>)
The IEEE-488.2 driver "Receive" is used to read a response string from an
<addresslist>Array containing GPIB device addresses, terminated by the
•
<command>A command or query string to be sent to the instrument. The
•
<data>One or more data characters to be sent to the listener device.
•
address =0).
address = 8).
constant -1 (FFFF hex.).
"short form" commands are specified in UPPER CASE. The
additional characters in lower case complete the "long form"
commands.
GETTING STARTED WITH SCPI PROGRAMMING2 - 3
Includes GPIB drivers
Clears text from PC screen
Clears the GPIB interface
Sets time out at 10 seconds
<response>A response string sent by the instrument as a response to a
•
<eot>An "end of text" indication:
•
<term>A "terminate" indication:
•
<timeout>A time out indication, e.g., 11 = 1 second, 12 = 3 seconds,
•
PROGRAM EXAMPLE:
’
*****
’Initial program statements:
’
*****
REM $INCLUDE:’c:\pc-gpib\488driv\QBDECL.BAS’ ’
CLS’
CALL SendIFC(0)’
CALL IbTMO(0, 13)’
query .
0 = program message to be continued (no action)
1 = end of program message (sends End-message + EOI
true)
0 = response message to be continued (no detection of EOL
character)
256 = end of response message (stops reading after EOL
character)
13 = 10 seconds.
PROGRAMMING NOTE:
The variable IBCNT% contains the number of response bytes (including NL
after reading a response message using the Receiv e dr iver.
)
2 - 4GETTING STARTED WITH SCPI PROGRAMMING
Resets the instrument
Clears the status data
Requests for identification
Reads the ident string
Prints the ident string
Requests for options
Reads the options string
Prints the options string
Switches to analog mode
Switches back to digital mode
2.2Initializing the CombiScope Instrument
2.2.1How to reset the CombiScope instrument
The instrument itself can be reset by sending the
instrument to a fixed setup optimized for remote operation. The status and error
data of the instrument can be cleared by sending the
RST command. This sets the
*
CLS command.
*
PROGRAM EXAMPLE:
’
*****
’Reset the instrument and clear the status data:
’
The identity of the instrument can be queried by sending the
followed by reading the instrument response message. The options of the
instrument can be queried by sending the
instrument response message.
OPT? query, followed by reading the
*
IDN? query,
*
PROGRAM EXAMPLE:
’
*****
’Read and print the identity and options of the instrument:
’
2.2.3How to switch between digital and analog mode
After power on, a CombiScope instrument can be either in the digital or analog
mode. After a
system allows you to switch between the two modes. This can be done by specifying a predefined name (DIGital, ANALog) or the corresponding number
(1 = digital, 2 = analog).
PROGRAM EXAMPLE:
’
*****
’Initialize and change the operating mode of the CombiScope instrument:
’
RST command the digital mode is selected. The INSTrument sub-
*
GETTING STARTED WITH SCPI PROGRAMMING2 - 5
Requests for error
Reads error message
Displays error message
2.3Error Reporting
Instrument errors are usually caused by programming or setting err ors. They are
reported by the instrument during the execution of each command. To make sure
that a program is running properly, you must query the instrument for possible errors after every functional command. This is done by sending the
SYST em:ERR or? query or the STAT us:QUEue? qu ery to the instrument, followed
by reading the response message. However , through this practice the same "error
reporting" statements must be repeated after sending each SCPI command . This
is not always practical. Therefore, one of the following approaches is advised:
1) Send the SYST em:ERRor? or ST ATus:QUEue? query and read the instrument
response message after every group of commands that functionally belong to
each other.
2) Program an error-reporting routine and call this routine after each command
or group of commands. For an example of an error-reporting routine, refer to
section 3.14.4.1.
3) Program an error-reporting routine and use the "Service Request (SRQ)
Generation" mechanism to interrupt the execution of the program and to
execute the error-reporting routine. Therefore, refer to section 3.14.4.2.
Trace acquisitions are started via the INITiate commands. A single acquisition is
done by sending a single INITiate command . Continuous acquisitions are done by
sending the INITiate:CONTinuous ON command.
The TRACe? query allows you to acquire a trace of signal samples from one of
the following sources:
An input channel, e.g., CH2 (input channel 2).
•
A trace area in a memory register, e.g., M2_3 (Memory register 2, trace 3).
•
The number of trace samples (acquisition length) can be specified using the
TRACe:POINts command. If your instrument has standard memory, you can
specify 512, 2048, 4096, or 8192 trace samples. If your instrument has extended
memory, you can specify 512, 8192, 16384, or 32768 trace samples. A
TRACe:POINts command specifies the acquisition length for all channels and
memory registers.
Example: Send --> TRACe:POINts CH1,8192 ’Selects 8192 sample points
for all traces
The number of trace sample bits can be specified using the FORMat command.
This gives you the possibility to define samples of 8 bits (1 byte) or 16 bits
(2 bytes). A FORMat command specifies the number of sample bits for all
channels and memory registers.
Example: Send --> FORMat INT,16’Formats 16-bits samples
The format of the trace response data is as follows:
# n x . . x f b . . . . . b s <NL>
NewLine code (10 decimal)
checksum byte over all trace bytes
trace sample data bytes (see Note)
trace data format byte (see Note)
number of trace bytes (fbb...bbs)
number of digits of x..x
Note:If f=8 decimal, each trace sample is one byte (8 bits).
If f=16 decimal, each trace sample is two bytes (16 bits), i.e., most significant byte
(msb) + least significant byte (lsb).
trace sample 512
trace sample 1
decimal 16
number of trace bytes (N)
number of digits of N
GETTING STARTED WITH SCPI PROGRAMMING2 - 7
Formats 8-bits sample
Formats 8192 sample points
Trigger-source = channel 1
Trigger-level = 0.1
Single shot initiation
Waits for previous commands
to finish
Queries for channel 1trace
Reads channel 1 trace
The contents of the tracebuf$ string is as follows:
# 4 8194 <8> <byte 1> ... <byte 8192> <sum> <10>
IBCNT% = number of bytes
2.4.1How to acquire a single shot trace
In the program example, a single shot trace acquisition of 8192 8-bit samples is
done with a probe connected to input channel 1. The trace sample byte s are read
from the GPIB as string characters. The number of response bytes and the
number of samples are printed.
The TRIGger:SOURce command is used to specify input channel 1 as a trigger
source. The TRIGger:LEV el command is used to reset the trigg er level to e.g., 0.1
volts.
PREPARATIONS:
Connect a probe to channel 1. After start up of the program you will be asked
•
to trigger the acquisition with the open end of the probe, i.e., touch the probe
or strike the probe on the table.
PROGRAM EXAMPLE:
’
*****
’Acquire a single shot trace:
’
*****
DIM tracebuf AS STRING * 16500
CALL Send(0, 8, "FORMat INTeger,8", 1)’
CALL Send(0, 8, "TRACe:POINts CH1,8192", 1)’
CALL Send(0, 8, "TRIGger:SOURce INTernal1", 1) ’
CALL Send(0, 8, "TRIGger:LEVel 0.1", 1)’
CALL Send(0, 8, "INITiate", 1)’
PRINT "Trigger the CombiScope instrument by touching the probe tip."
PRINT ">>> Press any key when finished."
WHILE INKEY$ = "": WEND
CALL Send(0, 8, "*WAI", 1)’
Note:Refer to section 3.4.3 "Conversion of trace data" about how to convert
this string data.
2 - 8GETTING STARTED WITH SCPI PROGRAMMING
Resets the instrument
Configures channel 2
Switches channel 2 on
Opens file TRACE5.DAT
Single initiation
Queries for channel 2 trace
Notice the
*
WAI; before TRACe?. The
*
WAI command takes care that the TRACe? CH2 command is
executed when the INITiate command is finished.
Reads channel 2 trace
Writes trace header to file
Writes trace buffer to file
Closes file TRACE5.DAT
2.4.2How to acquire repetitive traces
In the program example, 5 trace acquisitions of 512 16-bit samples are done via
a probe connected to channel 2. The trace sample bytes are read from the GPIB
as string characters and written to the file TRACE5.DAT on the hard disk.
PREPARATIONS:
Connect a probe from the Probe Adjust signal to channel 2.
•
PROGRAM EXAMPLE:
’
*****
’Acquire 5 sequential traces and store in file TRACE5.DAT:
’
*****
DIM tracebuf AS STRING * 1050
CALL Send(0, 8, "*RST", 1)’
’
’After *RST a trace acquisition is defined at 512 samples of 16 bits
’(2 bytes).
’
CALL Send(0, 8, "CONFigure:AC (@2)", 1)’
CALL Send(0, 8, "SENSe:FUNCtion ’XTIMe:VOLTage2’", 1)’
OPEN "O",#1,"TRACE5.DAT"’
Note:Refer to section 3.4.3 "Conversion of trace data" about how to convert
this string data.
GETTING STARTED WITH SCPI PROGRAMMING2 - 9
MEASure?
CONFigure
READ?
INITiate
FETCh?
2.5Measuring Signal Characteristics
The measurement instructions allow you to make a complete measurement. This
includes the configuration of the instrument, the initiation of the trigger system,
and the fetching of the acquisition data. The measurement instructions can be
used at different levels, varying in processing time. The highest level is the most
easy to use, but takes more time to complete than the lowest level. The following
levels of measurement instructions can be used:
The highest level:
(easy to use)
The middle level:
(gives more programming flexibility)
The lowest level:
(to acquire more signal characteristics)
The following table shows which measurement tasks are executed by the
measurement instructions:
Configures the instrument:YESYES
Initiates the trigger system:YESYESYES
Fetches the acquired data:YESYESYES
MEASure?
CONFigure
INITiate
+
+
READ?
FETCh?
(equivalent to MEASure?)
(equivalent to READ?)
2 - 10GETTING STARTED WITH SCPI PROGRAMMING
Measures the AC-RMS value
Reads the AC-RMS value
Fetches the Peak-To-Peak value
Reads the PTP value
Fetches the amplitude value
Reads the amplitude value
Configures for AC-RMS
Performs 5 measurements
Initiates AC-RMS reading
Reads the AC-RMS value
Fetches the Peak-T o-Peak value
Reads the PTP value
Fetches the amplitudevalue
Reads the amplitude value
2.5.1How to make a single shot measurement
The MEASure? query allows you to make a single-shot measurement, and the
FETCh? query allows you to fetch more signal characteristics.
PROGRAM EXAMPLE:
’
*****
’Measure and print the AC-RMS, peak to peak, and amplitude of
’the signal on channel 1.
’
The measurement instructions allow you to make repeated measuremen ts. The
CONFigure command allows you to configure the instrument, the READ? query
allows you to make a measurement, and the FETCh? query allo ws you to fetch
more signal characteristics.
PROGRAM EXAMPLE:
’
*****
’Measure and print 5x the AC-RMS, peak to peak, and
’amplitude of the signal on channel 1.
’
*****
response$ = SPACE$(30)
CALL Send (0, 8, "CONFigure:AC (@1)", 1)’
FOR i = 1 TO 5’
This chapter explains how to access the functions of the CombiScope instruments
family in a remote programming environm ent. Fo r tha t purp os e, the Comb iScope
instrument is equipped with an IEEE-488 compatible GPIB interface and
implements a full SCPI compatible command set which provides an extensive
range of remote control facilities.
Traditionally, ther e was no standard for the remote operation of instruments. A
wide range of different command sets existed. Each set had its own te rminology
and trade-offs, based upon the implementations and corresponding limitations of
the instrument. Similar functions in different instruments were controlled by
different commands. And, vice versa, identical commands could easily exist in
another instrument to control a different function. With new technologies and
increasing complexity , other prog ramming concepts were introd uced. This caused
programs with identical functions to look different when written for another
instrument.
The remote control of instruments became a cumbersome process, which
required a high learning curve for each new instrument and each additional
instrument. The time and costs to create and maintain application programs were
unnecessarily high due to the lack of standardization.
With the introduction of the Standard Comm ands for Pr ogra mma ble Instr umen ts,
commonly called SCPI, a lot of progress has been made in this area. The
development time of an application program for SCPI-compatible instruments, like
the CombiScope instrument, is considerably reduced. This is mainly achieved by
the consistent programming environment for instrument control and data usage
across all types of instruments that, regardless of the manufacturer , is provided by
SCPI.
The standardized commands allow the same functions in different types of
instruments to be controlled by the same commands. For example, the que ry
MEASure:FREQuency? acquires the frequency characteristic of the input signal,
regardless of whether the instrument is a frequency counter, an oscilloscope, or
any other measuring instrument.
3 - 2USING THE COMBISCOPE INSTRUMENTS
As the example already shows, the commands are easy to learn and selfexplanatory to both novice and expert users. The learning curve is considerably
decreased for new instruments or instrument functions with which the
programmer is not familiar.
Efficiency is not only gained when creating or debugging new application
programs. The easily understandable programs greatly simplify maintenance and
modification of existing application programs that have been written by other
persons or for other instrument functions.
All major CombiScope instrument functions are controlled by standard SCPI
commands. Although the functionality provided is the same, the way the
oscilloscope is controlled via the remote interface dif fers in some aspects from the
front panel operation. This is because the local fr ont pan el opera tion is d esigned
to allow you to take maximum advantage of the interactive communication
possibilities offered by the display screen. This allows for additional information
and guidance during the process of local operation.
The remote command set is based upon an instrument model that is easy to
understand. This model provides a structured survey of the implemented
instrument functions and serves as a guide towards t he commands that control
these functions. This other view allows for optimal and easy access of the
instrument functions when operated from the remote interface. Additionally, a
measurement instruction set allows for easy programm ing of measur ement tas ks
for a wide variety of signal characteristics.
USING THE COMBISCOPE INSTRUMENTS3 - 3
3.2Fundamental Programming Concepts
The remote operation of your CombiScope instrumen t can be accessed using
different programming concepts. The concept to be cho sen depends upon the
application of the instrument in the remote programming environment. Each of the
four concepts has it own benefits and trade-offs.
1) Using measurement instructions
Advantage:Easy to program. No instrument knowledge required to make
measurements. So, you can start programming quickly and get
measurement results rightaway.
Trade-off:A measurement takes some time to complete, because the
instrument automatically searches for optimal settings.
Example:
2) Single function programming using the instrument model
Advantage:Allows you to program individual functions separately throug h
Trade-off:Requires understanding of the remote operation of the instrument
Example:
MEASure:FREQuency?
single commands. The instrument model gives the relation
between the commands and the functions of the CombiScope
instrument.
functions.
TRACe? CH1
Measures the frequency of the
signal at channel 1.
Returns the acquisition trace of
the signal at channel 1.
3) Programming the complete instrument setup
Advantage:Simple to program. No worry about individual settings. This
method can also be used to save and recall settings, which are
not individually programmable.
4) Programming through front panel simulation
Advantage:Gives the possibility to program settings for which no remote
SAV 3
*
RCL 3
*
commands are available, i.e., to match a front panel setup.
Saves actual instrument settings
to internal memory 3.
Recalls instrument settings from
internal memory 3.
3 - 4USING THE COMBISCOPE INSTRUMENTS
Trade-off:This way of programming is cumbersome and tricky, because
additional information on the front panel display is not always
available remotely.
Example:DISPlay:MENU TRIGgerActivates the TRIGGER softkey
menu.
SYSTem:KEY 4Simulates the pressing of softkey 4.
The effect is that TRIGGER menu
option "noise" is switched on or
off.
3.2.1Measurement instructions
This is a completely new approach in the remote operation of programmable
instruments, which provides a set of task-oriented measurement instructions.
Rather than programming every instrument setting separately with starting the
acquisition and calculating the result, just specify the desired signal characteristic,
and the CombiScope instrument returns the requested re sult. Depending upon
the actual available signal, your CombiScope instrument automatically
determines the optimal settings to acquire and calculate the requested result.
An example of such a command is the MEASure:FREQuency? query, which not
only works on oscilloscopes, but also on different types of SCPI-compatible
instruments, such as counters and multimeters.
With traditional oscilloscopes you had to do the following:
-set up all function s of the oscilloscope separately.
-start the acquisition of the data.
-position the cursor markers.
-calculate the frequency from the acquired data.
-read the calculat ed frequency from the instrument.
A single, simple SCPI query replaces all of the above, namely the
MEASure:FREQuency? query which does the following:
-auto configures the oscilloscope to the best possible setting for the requested
measurement task.
Note:This process is different from the traditional AUTOSET process in
that the autoset function determines the instrument settings based
on the input signal only, whereas, the auto configure algorithm also
takes the desired measurement task into account.
-starts the acquisition process.
-takes care that the measurement is triggered.
-calculates the desired characteristic from the acquired data.
-returns the calculated value.
USING THE COMBISCOPE INSTRUMENTS3 - 5
The measurement instructions are easy to use and do not require any special
knowledge of the instrument. The programming concept reduces simple
measurement tasks with complex instruments to simple instructions, leaving the
setup complexity to the instrument. The measurement instructions are extremely
useful when the application does not require the precise setting of instrume nt
functions. The concept is extendible with separate control of parameters that are
vital to the application.
3.2.2Single function programming using the instrument model
All major instrument functions such as time base, input impedance, etc, are
separately programmable using "single parameter" commands. The easy to
understand command set is comparable with the way instruments are traditiona lly
controlled. This concept gives you full control over all functions and power of a
modern oscilloscope. However , for maximum b enefit of all the advanced fe atures
of your CombiScope instrument, you need some understanding of their remote
operation.
Functions of the CombiScope instrument th at belong together are grouped into
subsystems. There are several subsystems, each representing a particular
function. The instrument model in the following figure gives an overview of the
most important subsystems.
DISPlay
INPutSENSe
TRIGger
Figure 3.1 The Instrument Model for CombiScope instruments
EXPLANATION OF THE INSTRUMENT MODEL:
All functions that deal with signal conditioning are part of the INPut subsystem.
•
In a similar way the SENSe subsystem contains the data acquisition part
•
where the analog signal is converted into a digital value.
The results of the acquisition are stored in a TRACe subsystem memory.
•
Post-processing functions on the acquired data are available in the
•
CALCulate subsystem.
The TRIGger subsystem deals with the control of the acquisition process.
•
The DISPlay subsystem handles the front panel display functions.
•
TRACeCALCulate
ST7155
3 - 6USING THE COMBISCOPE INSTRUMENTS
Functions in a particular subsystem are always controlled by commands that
begin with the name of that subsystem. For example, a command that programs
the input coupling is INPut:COUPling DC.
All programmable settings can be queried easily. The query form is obtained from
the command by simply removing the parameter and adding a question mark. For
example, the command to program the input impedance of your oscilloscope is
INPut:IMPedance 50. This impedance value can be queried by sending
INPut:IMPedance? which returns 50.
3.2.3Instrument setup
This concept allows you to program instrument settings with a single command.
Several instrument setups can be saved, either created by remote programming
or by front panel control. This concept can also be use d to program instrument
functions that cannot be directly accessed using individual pr ogram instructions.
Complete instrument setups can be saved either in the internal memory of the
oscilloscope or externally in the remote controller. A part of the instrument setup
can also be saved externally.
The oscilloscope is equipped with a number of internal memories in which the
complete instrument set up can be saved and from which it can be restored.
→
Send
Send
Instead of using an internal oscilloscope memory, the instrument setup can be
queried using the SYSTem:SET? query. The result of this query is that the
oscilloscope sends a part or the complete setup in a compact block data format.
Sending this data back as a parameter with the SYSTem:SET command
reprograms the oscilloscope to the same settings.
SAV 3Saves the current set up into memory 3.
*
→
RCL 3Recalls the instrument set up that was saved in memory 3.
*
Example for the complete instrument settings:
→ SYSTem:SET?Queries the oscilloscope for the complete
Send
instrument setup.
← <block_data>Reads the <block_data> response, which
Read
contains the requested instrument setup,
from the oscilloscope.
→ SYSTem:SET <block_data>Sends the previously read instrument
Send
setup back to the oscilloscope in the
same <block_data> format.
USING THE COMBISCOPE INSTRUMENTS3 - 7
Example for the instrument cursor settings:
Send
→ SYSTem:SET? 32Queries the oscilloscope for the
instrument settings of node 32, which are
the cursor settings.
← <settings>Reads the cursor settings.
Read
.
.
Send
→ SYSTem:SET <settings>Restores the cursor settings.
3.2.4Front panel simulation
This concept allows you to send commands that simulate the pressing of a front
panel key. This method allows the remote operation to precisely match a front
panel setup. In particular, this method can be used to access instrument functions
that cannot be programmed directly by remote commands.
As described in the beginning of this section, there is a difference between the
front panel operation and the remote control of an instrument. If you use the front
panel simulation commands via the remote interface, be aware that no use can
be made of the additional information that is presented on the screen of the
oscilloscope. As this causes the front panel simulation method to be a tedious
process, it is certainly not recommended as a common programming practice.
For example, the SYSTem:KEY 507 command switches the AVERAGE function
on when it was switched off before. When this function was switched on before,
the AVERAGE function is switched off. The effect of the SYSTem:KEY command
completely depends upon the state of the instrument at the moment the command
is received. In a remote programming environment it is not immediately clear
whether a state is on or off. For that reason the command SENSe:AVERage ON
is much better.
To select functions that cannot b e programmed directly, you might use the front
panel simulation commands. For example, the command SYSTem:KEY 4
switches the "noise suppression" option in the TRIGGER menu of the front panel
ON or OFF.
3 - 8USING THE COMBISCOPE INSTRUMENTS
3.3Measuring Signal Characteristics
As explained in section 3.2.1 "Measurement instructions", the measurement
instruction set is a new approach in the remote operation of programmable
instruments. This instruction set allows you to request a particular characteristic
of the input signal. The CombiScope instrument th en chooses the best possible
settings, executes the requested task, and returns the desired result.
Within the measurement instruction set, different programming levels can be
distinguished. The highest level is the easiest to use, but the trade-off is less
flexibility. Lower levels provide more flexibility by offering more control over the
instrument functionality. This requires more knowledge about the remote
operation of your instrument.
The measurement instructions specify a particular task in terms of the expected
signal and the desired result. The instructions refer to the sig nal characteristics of
the signal being measured. This makes them independent from the
implementation of the instrument functions. For example, when the instruction
MEASure:FREQuency? is executed, it is not important whether t his frequency is
measured by precisely counting the signal period, or if it is calculated from a
sampled waveform. For this reason, the measurement instru ctions provide the
best compatibility among different types of instruments. But, as a trade-off, the
compatibility decreases when more flexibility is needed and lower measurement
instruction levels are used.
3.3.1The MEASure? query
This is the easiest instruction to use and provides the best compatibility. However,
it does not offer access to the full capability of the CombiScope instrument. The
MEASure? query configures the instrument for optimal settings, starts the data
acquisition, and returns the result in one operation. The signal characteristics that
can be acquired in this way are shown in figure 3.2.
Example:
MEASure:AC?
This query measures the RMS voltage of the AC component at the default
input channel 1. After the acquisition, the result is sent to the controller. The
instrument itself selects an optimal setting for this purpose and carries out the
requested measurement as "well" as possible. Moreover, it automatically
starts the measurement.
USING THE COMBISCOPE INSTRUMENTS3 - 9
3.3.2Benefits of using parameters
The generic form of a measurement instruction is as follows:
The :VOL Tage keyword is a default node, which specifies the signal characteristic
to be measured, relates to the voltage component of the signal. The
<measure_function> specifies the desired signal characteristic.
The parameters can be used to provide additional information to the instrument
about the expected signal and the desired result. The oscilloscope uses this
information to determine the best settings for the requested task. As the syntax
shows, the parameters can be left out (defaulted). In that case, the oscilloscope
chooses it own settings based upon the actual available input signal and its own
trade-offs. The result of defaulting parameters is that the measurement needs
more time to complete.
The VOLTage parameters relate to the :VOLTage node in the header. These
parameters specify the expected voltage and the desired resolution:
The expected voltage in the parameter specification is assumed to be the value
at the BNC input of the oscilloscope. When a detectable probe is attached, it is
assumed to be the value at the probe tip.
When the <expected voltage> parameter is defaulted, the oscilloscope performs
an autorange, which needs some additional time. When a particular value was
specified instead, the oscilloscope immediately selects the range next higher to
the specified voltage, omitting the relative time-consuming autoranging.
Notice that when voltage parameters are used, the :VOLtage node must be sent
explicitly in the command header . Or, in other words, when the :VOLTage node is
defaulted, the voltage parameters must also be defaulted.
3 - 10USING THE COMBISCOPE INSTRUMENTS
Examples:
MEASure:AMPLitude?
This query measures the amplitude of a waveform at the default input
channel 1. After the acquisition, the resulting amplitude is returned.
MEASure:VOLTage:AMPLitude? 10, (@2)
This query measures the amplitude of a signal at channel 2 (@2). But, since
it specifies the expected voltage value (10 volts), it will complete the
measurement faster.
In a similar way the measure function parameters provide the oscilloscope with
information about the signal characteristic to be measured. The parameters that
are allowed depend upon the requested signal char acteristic (mea sure function).
The measure function parameters that specify a voltage characteristic, such as
:AC, :AMPLitude, :HIGH, :MINimum, etc, use the voltage parameters for that
purpose. Measure functions, such as fall and rise tim e, frequency and period, use
time units. Their expected value and desired resolution are specified in seconds
or Hertz as separate measure parameters.
Examples:
MEASure:VOLTage:FREQuency? 10E6, (@3)
This query measures the frequency of the signal at input channel 3. The
expected frequency is 10 MHz, whereas, the expected voltage is defaulted.
Notice that this command is equivalent to the MEASure:FREQuency? 10E6,
(@3) command.
MEASure:VOLTage:FREQuency? 5, 10E6, (@3)
This query does the same as the previous example, except that the expected
voltage is 5 volts.
USING THE COMBISCOPE INSTRUMENTS3 - 11
3.3.3Waveform measurements
The following figure shows the terms used for pulse measurements and the key
words that are used as header nodes in the measurement instructions.
TMAXimum
MAXimum
HIGH
LOW
RISE
OVERshoot
REFerence
HIGH
REFerence
MIDDle
REFerence
LOW
RISE TIME
RISE
PREShoot
TMINimum
AMPLitude
FALL
OVERshoot
FALL TIME
PERiod
FALL
PREShoot
NWIDthPWIDth
PTPeak
MINimum
ST7154
Figure 3.2 Pulse characteristics
The reference high and low parameters determine the desired interval for rise
time and fall time measurements. The default low and high references are 10%
and 90% of the pulse amplitude (= HIGH - LOW).
Default REFerence LOW =LOW + 0.1
Default REFerence HIGH =LOW + 0.9
(HIGH - LOW)
*
(HIGH - LOW)
*
In a similar way, the reference middle parameter determines the desired interval
for pulse width (PWIDth, NWIDth) and duty cycle (PDUTycycle, NDUTycycle)
measurements. When defaulted, the reference middle value is assumed to be at
50% of the amplitude.
Default REFerence MIDDle =LOW + 0.5
(HIGH - LOW)
*
Loading...
+ 267 hidden pages
You need points to download manuals.
1 point = 1 manual.
You can buy points or you can get point for every manual you upload.