User and Programming Manual - Rev N
11 Programming
Examples
11.1 Introduction
This chapter contains examples on how to program the AC source. Simple examples show
you how to program:
•
Output functions such as voltage and frequency
•
Measurement functions
The examples in this chapter use generic SCPI commands. See Section 9 for information
about encoding the commands as language strings. Where appropriate, optional commands
are shown for clarity in the examples.
11.2 Bus Throughput and Timing Considerations
The 2001RP has a limit on how fast it can process commands sent over the bus. When
developing an application program that controls the 2001RP AC source, this must be
considered. Specifically, if non-query commands (commands that don’t wait for a response
such as output setup commands) are sent at too high a rate, the AC source may not be able
to process them. In that case, a –100 Command Error will be reported.
This condition may exist on both RS232 and GPIB interface modes and is more prone when
faster controllers are used to run the application software. To prevent this condition, it will be
necessary to space out successive commands using a 20 msec delay. Alternatively,
commands could be sent to other instruments in the same system to accomplish the same
result.
Example:
VOLT 100
delay(0.020)
FREQ 60
Alternatively, a query command can be inserted in which case no additional delays are
needed.
VOLT 100
SYST:ERR?
FREQ 60
2001RP April
2007
109
Содержание 2001RP
Страница 4: ...User and Programming Manual Rev N Electrical Safety Symbols Used in This Manual 2001RP April 2007 iii...
Страница 33: ...User and Programming Manual Rev N Figure 3 7 Test Setup 2001RP 24 April 2007 2001RP...
Страница 47: ......
Страница 48: ...User and Programming Manual Rev N Figure 5 1 AC Power System Block Diagram 2001RP April 2007 39...
Страница 60: ...User and Programming Manual Rev N Figure 6 3 Internal Adjustments 2001RP April 2007 51...
Страница 65: ...User and Programming Manual Rev N Figure 7 1 Assembly Location 56 April 2007 2001RP...
Страница 68: ...User and Programming Manual Rev N Figure 7 2 Replaceable Fuse Locations 2001RP April 2007 59...
Страница 70: ...User and Programming Manual Rev N Figure 8 1 Rear Panel View 2001RP April 2007 61...
Страница 90: ......