
Section 3: LPTLib command reference
S530/S540 KTE Linear Parametric Test Library (LPTLib) User's Manual
3-52
S530-900-01 Rev. E / September 2017
Example
pgu_mode(PGU2, 1)
Sets PGU2 to the continuous pulse mode.
Also see
(on page 3-50)
pgu_offset
This command sets the peak-to-peak height and DC offset of the pulse.
Usage
istat = int pgu_offset(int
instr_id
, double
amplitude
, double
offset
);
instr_id
The instrument identification code
amplitude
The peak-to-peak amplitude in volts (input); a positive number
offset
The DC offset of the pulse in volts (input); a positive or negative number
Details
This command returns a
0
if executed without error; a negative number indicates an error.
The amplitude and offset combined must be greater than -20 V and less than +20 V.
Example
pgu_offset(PGU1, 10, 5)
Sets the peak-to-peak amplitude and DC offset on PGU1.
Also see
None
pgu_period
This command sets the period of a pulse.
Usage
istat = int pgu_period(int
instr_id
, double
period
);
instr_id
The instrument identification code
period
The pulse period in seconds (input)
Details
This command returns a
0
if executed without error; a negative number indicates an error.
Example
pgu_period(PGU1, 200e-9)
Sets the pulse period of PGU1 to 200 ns.
Also see
(on page 3-54)