public class Agilent34970AChannel extends java.lang.Object implements VoltageReadable
Modifier and Type | Field and Description |
---|---|
static int |
FUNCTION_CURRENT |
static int |
FUNCTION_UNDEFINED
Value when the function must be configured before a measurement can be
made.
|
static int |
FUNCTION_VOLTAGE |
java.lang.String |
name
Name of signal connected to the channel
|
Constructor and Description |
---|
Agilent34970AChannel(java.lang.String channelName,
java.lang.String dvmName,
int channel)
Creates an object to read voltages on a single channel of an Agilent
34970A data acquisition unit, using the device-independent
VoltageReadable interface.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getVoltageNPLC() |
java.lang.String |
getVoltageRange() |
java.lang.String |
getVoltageResolution() |
static void |
main(java.lang.String[] args)
Unit tests, prints current as function of voltage for channel 1.
|
float |
readVoltage()
Measure voltage on this channel using the measurement parameters
specified by the methods
setVoltageRange(java.lang.String) ,
setVoltageResolution(java.lang.String) , and setVoltageNPLC(java.lang.String) . |
void |
setVoltageNPLC(java.lang.String voltageNPLC)
Set the number of power line cycles to integrate the voltage measurement
over.
|
void |
setVoltageRange(java.lang.String voltageRange) |
void |
setVoltageResolution(java.lang.String voltageResolution) |
public final java.lang.String name
public static final int FUNCTION_UNDEFINED
public static final int FUNCTION_VOLTAGE
public static final int FUNCTION_CURRENT
public Agilent34970AChannel(java.lang.String channelName, java.lang.String dvmName, int channel)
channelName
- name of signal on this channel of the Agilent 34970AdvmName
- gpibconf
identifier for the Agilent 34970Achannel
- Channel number of the Agilent 34970A to measure onpublic void setVoltageRange(java.lang.String voltageRange)
voltageRange
- The voltageRange to set.public java.lang.String getVoltageRange()
public void setVoltageResolution(java.lang.String voltageResolution)
voltageResolution
- The voltageResolution to set.public java.lang.String getVoltageResolution()
public void setVoltageNPLC(java.lang.String voltageNPLC)
voltageNPLC
- The voltageNPLC to set.public java.lang.String getVoltageNPLC()
public float readVoltage()
setVoltageRange(java.lang.String)
,
setVoltageResolution(java.lang.String)
, and setVoltageNPLC(java.lang.String)
. For fast
but possibly inaccurate measurements, choose setVoltageRange(java.lang.String)
("DEF"),setVoltageResolution(java.lang.String)
("MAX"),
and setVoltageNPLC(java.lang.String)
(0.02).readVoltage
in interface VoltageReadable
public static void main(java.lang.String[] args)
args
- Ignored