More About Oscilloscope Commands
37
Keysight P9241/42/43A Oscilloscopes SCPI Programmer's Guide
1197
Valid Command/Query Strings
•
•
•
"Tree Traversal Rules and Multiple Commands"
Program Message Syntax
To program the instrument remotely, you must understand the command format
and structure expected by the instrument. The IEEE 488.2 syntax rules govern how
individual elements such as headers, separators, program data, and terminators
may be grouped together to form complete instructions. Syntax definitions are
also given to show how query responses are formatted. The following figure shows
the main syntactical parts of a typical program statement.
Instructions (both commands and queries) normally appear as a string embedded
in a statement of your host language, such as Visual Basic or C/C++. The only time
a parameter is not meant to be expressed as a string is when the instruction's
syntax definition specifies <block data>, such as <learn string>. There are only a
few instructions that use block data.
Program messages can have long or short form commands (and data in some
cases — see
"Long Form to Short Form Truncation Rules"
on page 1198), and
upper and/or lower case ASCII characters may be used. (Query responses,
however, are always returned in upper case.)
Instructions are composed of two main parts:
• The header, which specifies the command or query to be sent.
• The program data, which provide additional information needed to clarify the
meaning of the instruction.
Instruction Header
The instruction header is one or more mnemonics separated by colons (:) that
represent the operation to be performed by the instrument.
":DISPlay:LABel ON" is a command. Queries are indicated by adding a question
mark (?) to the end of the header, for example, ":DISPlay:LABel?". Many
instructions can be used as either commands or queries, depending on whether or
":DISPLAY:LABEL ON"
1SPHSBN.FTTBHF
*OTUSVDUJPO)FBEFS
4FQBSBUPS
1SPHSBN%BUB
Summary of Contents for P9241
Page 1: ...Keysight P9241 42 43A Oscilloscopes SCPI Programmer s Guide...
Page 6: ...6 Keysight P9241 42 43A Oscilloscopes SCPI Programmer s Guide...
Page 36: ...36 Keysight P9241 42 43A Oscilloscopes SCPI Programmer s Guide 1 What s New...
Page 41: ...Setting Up 2 Keysight P9241 42 43A Oscilloscopes SCPI Programmer s Guide 41...
Page 44: ...44 Keysight P9241 42 43A Oscilloscopes SCPI Programmer s Guide 2 Setting Up...
Page 222: ...222 Keysight P9241 42 43A Oscilloscopes SCPI Programmer s Guide 7 Root Commands...
Page 244: ...244 Keysight P9241 42 43A Oscilloscopes SCPI Programmer s Guide 8 ACQuire Commands...
Page 256: ...256 Keysight P9241 42 43A Oscilloscopes SCPI Programmer s Guide 9 CALibrate Commands...
Page 278: ...278 Keysight P9241 42 43A Oscilloscopes SCPI Programmer s Guide 10 CHANnel n Commands...
Page 328: ...328 Keysight P9241 42 43A Oscilloscopes SCPI Programmer s Guide 15 EXTernal Trigger Commands...
Page 386: ...386 Keysight P9241 42 43A Oscilloscopes SCPI Programmer s Guide 17 FUNCtion m Commands...
Page 390: ...390 Keysight P9241 42 43A Oscilloscopes SCPI Programmer s Guide 18 HCOPY Commands...
Page 416: ...416 Keysight P9241 42 43A Oscilloscopes SCPI Programmer s Guide 20 MARKer Commands...
Page 498: ...498 Keysight P9241 42 43A Oscilloscopes SCPI Programmer s Guide 21 MEASure Commands...
Page 532: ...532 Keysight P9241 42 43A Oscilloscopes SCPI Programmer s Guide 22 MTESt Commands...
Page 572: ...572 Keysight P9241 42 43A Oscilloscopes SCPI Programmer s Guide 24 SAVE Commands...
Page 900: ...900 Keysight P9241 42 43A Oscilloscopes SCPI Programmer s Guide 28 TIMebase Commands...
Page 1080: ...1080 Keysight P9241 42 43A Oscilloscopes SCPI Programmer s Guide 31 WGEN w Commands...
Page 1142: ...1142 Keysight P9241 42 43A Oscilloscopes SCPI Programmer s Guide 34 Error Messages...
Page 1344: ...1344 Keysight P9241 42 43A Oscilloscopes SCPI Programmer s Guide Index...