Introduction to Programming
1
Keysight U2741A Programmer’s Reference Guide
17
Command Separators
A colon ( : ) is used to separate a command keyword from a lower-level keyword.
You must insert a blank space to separate a parameter from a command keyword.
If a command requires more than one parameter, you must separate adjacent
parameters using a comma as shown below:
CONF:VOLT:DC 1, 1e-5
A semicolon ( ; ) is used to separate commands within the same subsystem and
also minimize typing. For example, sending the following command string.
SENS:VOLT:DC:RANG 1; NPLC 10
... is the same as sending the following two commands:
SENS:VOLT:DC:RANG 1
SENS:VOLT:DC:NPLC 10
Use a colon and a semicolon to link commands from different subsystems. For
example, in the following command string, an error is generated if you do not use
both the colon and semicolon:
CONF:VOLT:DC 1;:SENS:VOLT:DC:NPLC 10
Querying Parameter Settings
You can query the current value of most parameters by adding a question mark ( ? )
to the command. For example, the following command sets the DC voltage range
to 1:
SENS:VOLT:DC:RANG 1
You can then query the voltage range setting by sending:
SENS:VOLT:DC:RANG?
Summary of Contents for U2741A
Page 1: ...Keysight U2741A USB Modular 5 5 Digits Digital Multimeter Programmer s Reference Guide ...
Page 8: ...8 Keysight U2741A Programmer s Reference Guide THIS PAGE HAS BEEN INTENTIONALLY LEFT BLANK ...
Page 10: ...10 Keysight U2741A Programmer s Reference Guide THIS PAGE HAS BEEN INTENTIONALLY LEFT BLANK ...
Page 12: ...12 Keysight U2741A Programmer s Reference Guide THIS PAGE HAS BEEN INTENTIONALLY LEFT BLANK ...