public class HP548xxA extends Equipment
Modifier and Type | Field and Description |
---|---|
static float |
DELAY_FOR_SAMPLES
Number of seconds to accumulate statistics in accumulateFrequencies().
|
static int |
MIN_NSAMP
Minimum number of samples required for each channel during
accumulateFrequencies().
|
static int |
NUM_CHAN
Number of oscilloscope channels
|
static int |
RESULTS_PER_CHANNEL
Number of statistics reported by accumulateFrequencies() for each channel
|
static int |
STAT_DEV |
static int |
STAT_LAST |
static int |
STAT_MAX |
static int |
STAT_MEAN |
static int |
STAT_MIN |
static int |
STAT_NSAMP |
CONTROLLER_ID_NUMBER
Constructor and Description |
---|
HP548xxA(java.lang.String name)
Creates a new instance of HP54855A
|
Modifier and Type | Method and Description |
---|---|
float[][] |
accumulateFrequencies(int nchan)
Accumulates frequency statistics on oscilloscope channels
ichan = 1..nchan until at least MIN_NSAMP
frequency samples are recorded for each channel. |
void |
frequencyVsVoltage(java.lang.String nameStart,
PowerChannel supply,
float startV,
float endV,
float stepV,
int nchan)
Creates files
(name)(n).dat containing the frequencies
measured on scope channels n=1..nchan-1 as functions of the voltage
provided on the specified PowerChannel . |
float |
getFrequency(int channel)
Performs a single measurement of frequency using first full cycle on
screen for the waveform on channel
channel (=1..3). |
ask, clear, command, getName, interactive, isDisabled, main, read, readFloat, readLine, toString, write
isLogInits, isLogOthers, isLogSets, logInit, logOther, logSet, setAllLogging, setLogInits, setLogOthers, setLogSets
public static final int STAT_LAST
public static final int STAT_MIN
public static final int STAT_MAX
public static final int STAT_MEAN
public static final int STAT_DEV
public static final int STAT_NSAMP
public static final int MIN_NSAMP
public static final int NUM_CHAN
public static final int RESULTS_PER_CHANNEL
public static final float DELAY_FOR_SAMPLES
public HP548xxA(java.lang.String name)
public float getFrequency(int channel)
channel
(=1..3). For
greater accuracy, use accumulateFrequencies().accumulateFrequencies(int)
public float[][] accumulateFrequencies(int nchan)
ichan = 1..nchan
until at least MIN_NSAMP
frequency samples are recorded for each channel. The statistics are
defined by the constants STAT_LAST
, etc. Channel
ichan = 0
contains cumulative/average statistics for all
nchan
channels.public void frequencyVsVoltage(java.lang.String nameStart, PowerChannel supply, float startV, float endV, float stepV, int nchan)
(name)(n).dat
containing the frequencies
measured on scope channels n=1..nchan-1 as functions of the voltage
provided on the specified PowerChannel
. Another file
(name)all.dat
provides all nchan
results at
once for convenience. Voltage is returned to the original value at end of
the sweep.nameStart
- Start of file namesupply
- Voltage controlstartV
- Starting voltage, in VoltsendV
- Ending voltage, in VoltsstepV
- Voltage step, in Voltsnchan
- Number of scope channels to measure frequency on