public class HP80000 extends Equipment
Modifier and Type | Field and Description |
---|---|
static int |
DATAGEN1GHZ |
static int |
DG1GHZ128K |
static int |
SYSTEM |
static int |
SYSTEMCLOCK |
CONTROLLER_ID_NUMBER
Constructor and Description |
---|
HP80000(java.lang.String name)
Creates a new instance of HP80000
|
Modifier and Type | Method and Description |
---|---|
void |
cont() |
void |
defineGroup(java.lang.String groupName,
java.lang.String slotsAndChannels)
Define a group and assign channels to the group.
|
void |
deleteGroup(java.lang.String groupName)
Delete the group on the instrument.
|
static void |
main(java.lang.String[] args) |
void |
pause() |
void |
printGroupData(int start,
int end,
int numSignals)
Print data for signal in a group.
|
void |
printGroups() |
void |
reset() |
void |
selectGroup(java.lang.String groupName)
Select given group for currently selected instrument
(currently selected instrument must be DATAGEN1GHZ or DG1GHZ128K)
Note that the group "ALL" will select ALL groups.
|
void |
selectInstrument(int inst)
Select an instrument.
|
void |
setClockFrequency(double freq,
java.lang.String units)
Set the internal system clock frequency.
|
void |
setClockSource(boolean internal)
Set the clock source to internal or external.
|
void |
setGroupData(java.lang.String[] binData)
Set the data for the current group.
|
void |
setGroupDelay(int ps)
Set the delay of a signal in the currently selected group.
|
void |
setGroupDelay(int signal,
int ps)
Set the delay of a signal in the currently selected group.
|
void |
setGroupHighVoltageLevel(double voltage)
Set the high voltage level for all signals in the currently selected group
Reset value is +1V.
|
void |
setGroupHighVoltageLevel(int signal,
double voltage)
Set the high voltage level for a signal in the currently selected group
Reset value is +1V.
|
void |
setGroupLowVoltageLevel(double voltage)
Set the low voltage level for all signals in the currently selected group
Reset value is -1V.
|
void |
setGroupLowVoltageLevel(int signal,
double voltage)
Set the low voltage level for a signal in the currently selected group
Reset value is -1V.
|
void |
setGroupPatternCycle(int startLength,
int cycleLength,
int cycleTimes)
Set the pattern cycling for the currently selected group.
|
void |
setGroupSignalPolarity(boolean normal)
Set the signal polarity (normal or inverted) for all signals
in the currently selected Group.
|
void |
setGroupSignalPolarity(int signal,
boolean normal)
Set the signal polarity (normal or inverted) for a signal
in the currently selected Group.
|
void |
setOutputState(boolean on)
Turn on or off the output state
(whether output is enabled) for all signals in the currently selected Group.
|
void |
setOutputState(int signal,
boolean on)
Turn on or off the output state
(whether output is enabled) for the signal in the currently selected Group.
|
void |
setOutputTermination(int state)
Set the output termination for all signals in the currently selected group
The state can be one of the following:
|
void |
setOutputTermination(int signal,
int state)
Set the output termination for the signal in the currently selected group,
or all signals in the group if signal is -1.
|
void |
setSignalFormat(boolean NonReturntoZero)
Set the signal format for the currently selected Group
Note that there is only one signal polarity setting for a module, so other
groups on the same module will also be affected.
|
void |
start() |
void |
stop() |
ask, clear, command, getName, interactive, isDisabled, read, readFloat, readLine, toString, write
isLogInits, isLogOthers, isLogSets, logInit, logOther, logSet, setAllLogging, setLogInits, setLogOthers, setLogSets
public static int SYSTEM
public static int SYSTEMCLOCK
public static int DATAGEN1GHZ
public static int DG1GHZ128K
public HP80000(java.lang.String name)
name
- public void reset()
public void start()
public void stop()
public void pause()
public void cont()
public void selectInstrument(int inst)
inst
- the instrumentpublic void setClockSource(boolean internal)
internal
- true for internal, false for externalpublic void setClockFrequency(double freq, java.lang.String units)
freq
- the frequencyunits
- the units: "M" or "KHz" or "MHz".public void printGroups()
public void defineGroup(java.lang.String groupName, java.lang.String slotsAndChannels)
For example, the following strings all assign channels 0 to 3 on slot 0 and slot 2 to this group:
Individual Logical Channels: 0,1,2,3,8,9,10,11 Logical Channel Ranges: 0:3,8:11 Module slot and channel: 0(0:3),2(0:3)
groupName
- a new group nameslotsAndChannels
- the slots and channelspublic void deleteGroup(java.lang.String groupName)
groupName
- which group to deletepublic void selectGroup(java.lang.String groupName)
groupName
- which grouppublic void setGroupPatternCycle(int startLength, int cycleLength, int cycleTimes)
startLength
- number of start bits at start, generated once, must be 0 or 4 or morecycleLength
- number of repeated bits, must be 0 or multiple of 8cycleTimes
- number of times to loop, 0 to 255, or -1 for infinite loopingpublic void setGroupData(java.lang.String[] binData)
binData
- the binary data sequences for each channel.public void printGroupData(int start, int end, int numSignals)
start
- end
- numSignals
- public void setSignalFormat(boolean NonReturntoZero)
NonReturntoZero
- true to set to non-return-to-zero, false to set return-to-zeropublic void setGroupSignalPolarity(boolean normal)
normal
- true for normal, false for invertedpublic void setGroupSignalPolarity(int signal, boolean normal)
signal
- which signal in the group, or -1 for all signalsnormal
- true for normal, false for invertedpublic void setOutputState(boolean on)
on
- true to enable, false to disablepublic void setOutputState(int signal, boolean on)
signal
- -1 for all signals, or which signal in the currently selected group.on
- true to enable, false to disablepublic void setOutputTermination(int state)
0: 50 ohms terminated to ground (GROUND) 1: 50 ohms terminated to -2V (ECL) 2: 50 ohms terminated to +3V (PECL) 3: open circuit (OPEN)Note that the output state must be switched off to change this setting
state
- which termination to setpublic void setOutputTermination(int signal, int state)
0: 50 ohms terminated to ground (GROUND) 1: 50 ohms terminated to -2V (ECL) 2: 50 ohms terminated to +3V (PECL) 3: open circuit (OPEN)Note that the output state must be switched off to change this setting
signal
- which signal in the group, or -1 for all signals in the groupstate
- which termination to setpublic void setGroupDelay(int ps)
ps
- how many picoseconds to delay the data relative to the clockpublic void setGroupDelay(int signal, int ps)
signal
- which signal in the currently selected group, -1 for all signalsps
- how many picoseconds to delay the data relative to the clockpublic void setGroupHighVoltageLevel(double voltage)
Term Min and Max Magnitude of Voltage Swing Ground 0.5V <= (High - Low) <= 2.5V ECL 0.5V <= (High - Low) <= 2.5V PECL 0.5V <= (High - Low) <= 2.5V OPEN 1.0V <= (High - Low) <= 5.0VAbsolute limits are:
Term Limits Ground -1.5V to 3.0V ECL -1.5V to 1.0V PECL 0V to 4.5V OPEN -2.5V to 4.5VNote that the output state must be switched off to change this setting
voltage
- the voltage for a high valuepublic void setGroupHighVoltageLevel(int signal, double voltage)
Term Min and Max Magnitude of Voltage Swing Ground 0.5V <= (High - Low) <= 2.5V ECL 0.5V <= (High - Low) <= 2.5V PECL 0.5V <= (High - Low) <= 2.5V OPEN 1.0V <= (High - Low) <= 5.0VAbsolute limits are:
Term Limits Ground -1.5V to 3.0V ECL -1.5V to 1.0V PECL 0V to 4.5V OPEN -2.5V to 4.5VNote that the output state must be switched off to change this setting
signal
- which signal in the currently selected group, -1 for all signalsvoltage
- the voltage for a high valuepublic void setGroupLowVoltageLevel(double voltage)
Term Min and Max Magnitude of Voltage Swing Ground 0.5V <= (High - Low) <= 2.5V ECL 0.5V <= (High - Low) <= 2.5V PECL 0.5V <= (High - Low) <= 2.5V OPEN 1.0V <= (High - Low) <= 5.0VAbsolute limits are:
Term Limits Ground -1.5V to 3.0V ECL -1.5V to 1.0V PECL 0V to 4.5V OPEN -2.5V to 4.5VNote that the output state must be switched off to change this setting
voltage
- the voltage for a high valuepublic void setGroupLowVoltageLevel(int signal, double voltage)
Term Min and Max Magnitude of Voltage Swing Ground 0.5V <= (High - Low) <= 2.5V ECL 0.5V <= (High - Low) <= 2.5V PECL 0.5V <= (High - Low) <= 2.5V OPEN 1.0V <= (High - Low) <= 5.0VAbsolute limits are:
Term Limits Ground -1.5V to 3.0V ECL -1.5V to 1.0V PECL 0V to 4.5V OPEN -2.5V to 4.5VNote that the output state must be switched off to change this setting
signal
- which signal in the currently selected group, -1 for all signalsvoltage
- the voltage for a high valuepublic static void main(java.lang.String[] args)