| Modifier and Type | Class and Description |
|---|---|
static class |
TestReg.CabacField |
static class |
TestReg.DacChan |
static class |
TestReg.DacName |
static class |
TestReg.HdwType
Enumerations.
|
static class |
TestReg.OnOff |
static class |
TestReg.RsetId |
static class |
TestReg.ScanOption |
static class |
TestReg.SlowChan |
| Constructor and Description |
|---|
TestReg()
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
String |
aspicClamp(int strips,
int side)
Shows ASPIC clamp value.
|
void |
aspicClamp(int strips,
int sides,
int clamp)
Sets ASPIC clamp value.
|
String |
aspicGainRc(int strips,
int side)
Shows ASPIC gain & RC.
|
void |
aspicGainRc(int strips,
int sides,
int gain,
int rc)
Sets ASPIC gain & RC.
|
String |
aspicModes(int strips,
int side)
Shows ASPIC modes.
|
void |
aspicModes(int strips,
int sides,
int modes)
Sets ASPIC modes.
|
String |
aspicTemps()
Shows all ASPIC temperatures.
|
String |
aspicTemps(int first)
Shows one ASPIC temperature.
|
String |
aspicTemps(int first,
int count)
Shows ASPIC temperatures.
|
String |
aspicVersion()
Shows the ASPIC version.
|
String |
cabac(int side)
Shows all fields of a CABAC.
|
String |
cabac(int side,
TestReg.CabacField field)
Shows a CABAC field.
|
String |
cabacacPower()
Shows the CABAC power regulator enables.
|
void |
cabacacPower(int enables)
Sets the CABAC power regulator enables.
|
String |
cabacacVersion()
Shows the CABAC version.
|
void |
cabacClear(int strip)
Clears a CABAC strip.
|
void |
cabacCopy(int side)
Copies the input registers of a CABAC to the output.
|
void |
cabacFetch(int strip)
Fetches a CABAC strip.
|
String |
cabacField(int strips,
int side,
TestReg.CabacField field)
Shows a CABAC field.
|
void |
cabacField(int strips,
int sides,
TestReg.CabacField field,
int value)
Writes a CABAC field.
|
void |
cabacLoad(int strip)
Loads a CABAC strip.
|
String |
cabacRead(int side)
Reads the input registers of a CABAC.
|
void |
cabacSet(int side,
int... values)
Sets all fields of a CABAC.
|
void |
cabacSet(int side,
TestReg.CabacField field,
int value)
Sets a CABAC field.
|
void |
cabacWrite(int side,
int... values)
Writes the output registers of a CABAC.
|
void |
connect(int id)
Connects to a REB.
|
void |
connect(int id,
String ifcName)
Connects to a REB.
|
void |
connect(TestReg.HdwType type,
int id,
String ifcName)
Connects to a REB.
|
String |
contPower()
Continuously read the board power values.
|
String |
contRead(int address,
int count)
Continuously read a set of registers.
|
String |
contTemp()
Continuously reads the board temperatures.
|
void |
dacLoad(TestReg.DacName name)
Loads a DAC.
|
void |
dacLoad(TestReg.DacName name,
int strip)
Loads a DAC.
|
void |
dacLoadAll()
Loads all DACs.
|
void |
dacLoadGlobal()
Loads all global DACs.
|
void |
dacLoadStrip()
Loads all strip DACs.
|
void |
dacLoadStrip(int strip)
Loads strip DACs for one strip.
|
void |
dacSet(TestReg.DacChan chan,
int value)
Sets a DAC value.
|
void |
dacSet(TestReg.DacChan chan,
int value,
int strip)
Sets a DAC value.
|
String |
dacVersion()
Shows the DAC version.
|
String |
dataSource()
Shows the data source register.
|
void |
dataSource(int value)
Sets the data source register.
|
String |
dcDcSync()
Shows DC/DC synchronization.
|
void |
dcDcSync(TestReg.OnOff state)
Sets the DC/DC synchronization state.
|
void |
disable(TestReg.RsetId regset)
Disables a register set.
|
void |
disconnect()
Disconnects from a REB.
|
void |
enable(TestReg.RsetId regset)
Enables a register set.
|
void |
loadCommand(String command)
Loads a command into the sequencer.
|
String |
loadFile(String fileName)
Loads a file of commands into the sequencer.
|
void |
loadTest(int totTime,
int ncycle)
Loads a test program into the sequencer.
|
void |
loadTest(int totTime,
int ncycle,
int onTime)
Loads a test program into the sequencer.
|
String |
power()
Shows all the board power values.
|
String |
power(int first)
Shows a board power value.
|
String |
power(int first,
int count)
Shows board power values.
|
String |
read(int address)
Shows register contents.
|
String |
read(int address,
int count)
Shows register contents.
|
String |
readLong(int address)
Shows a pair of registers.
|
String |
scanMode()
Shows the scan mode.
|
String |
setTime(String time)
Sets the time.
|
String |
show()
Shows connection parameters.
|
String |
showStatus()
Shows the contents of the status block.
|
String |
sliceCount()
Shows the slice count register.
|
void |
sliceCount(int count)
Sets the slice count register.
|
void |
sliceCount(TestReg.ScanOption option)
Sets/resets the scan mode.
|
String |
slowAdc(int mux,
int adc)
Shows slow ADC value.
|
String |
slowAdc(TestReg.SlowChan chan)
Shows slow ADC value.
|
String |
snDreb()
Shows DREB serial number.
|
String |
snReb()
Shows REB serial number.
|
void |
step()
Sends a step request to the sequencer.
|
void |
stop()
Sends a stop request to the sequencer.
|
String |
stripeSelect()
Shows the stripe selection register.
|
void |
stripeSelect(int value)
Sets the stripe selection register.
|
String |
temperature()
Shows all the board temperatures.
|
String |
temperature(int first)
Shows a board temperature.
|
String |
temperature(int first,
int count)
Shows board temperatures.
|
String |
time()
Shows the time.
|
String |
timebase()
Shows the time base.
|
void |
timebase(long time)
Sets the time base.
|
String |
trigtime(TestReg.RsetId regset)
Shows a trigger time.
|
void |
update(int address,
int mask,
int value)
Updates a register.
|
void |
write(int address,
int value)
Writes to a register.
|
void |
writeLong(int address,
long value)
Writes a pair of registers.
|
@Command(name="connect",
description="Connect to a REB")
public void connect(@Argument(name="id",description="REB ID")
int id)
throws REBException
id - The REB IDREBException@Command(name="connect",
description="Connect to a REB")
public void connect(@Argument(name="id",description="REB ID")
int id,
@Argument(name="ifcname",description="Network interface name")
String ifcName)
throws REBException
id - The REB IDifcName - The network interface nameREBException@Command(name="connect",
description="Connect to a REB")
public void connect(@Argument(name="type",description="Hardware type")
TestReg.HdwType type,
@Argument(name="id",description="REB ID")
int id,
@Argument(name="ifcname",description="Network interface name")
String ifcName)
throws REBException
type - The hardware type (DAQ0, DAQ1, PCI)id - The REB IDifcName - The network interface nameREBException@Command(name="disconnect",
description="Disconnect from a REB")
public void disconnect()
throws REBException
REBException@Command(name="show",
description="Show connection parameters")
public String show()
@Command(name="read",
description="Show one register")
public String read(@Argument(name="address",description="Register address to read")
int address)
throws REBException
address - The address of the register to readREBException@Command(name="read",
description="Show one or more registers")
public String read(@Argument(name="address",description="First register address to read")
int address,
@Argument(name="count",description="Number of registers to read")
int count)
throws REBException
address - The address of the first register to readcount - The number of registers to readREBException@Command(name="write",
description="Write a register")
public void write(@Argument(name="address",description="Register address to write")
int address,
@Argument(name="value",description="Value to write")
int value)
throws REBException
address - The address of the register to writevalue - The value to writeREBException@Command(name="update",
description="Update a register")
public void update(@Argument(name="address",description="Address of register to update")
int address,
@Argument(name="mask",description="Mask of bits to update")
int mask,
@Argument(name="value",description="New value to write")
int value)
throws REBException
address - The address of the register to updatemask - The mask of bits to updatevalue - The value to write under the maskREBException@Command(name="readlong",
description="Show a pair of registers")
public String readLong(@Argument(name="address",description="Address of first register to read")
int address)
throws REBException
address - The address of the first register to readREBException@Command(name="writelong",
description="Write a pair of registers")
public void writeLong(@Argument(name="address",description="Address of first register to write")
int address,
@Argument(name="value",description="Value to write")
long value)
throws REBException
address - The address of the first register to writevalue - The 8-byte little-endian value to writeREBException@Command(name="enable",
description="Enable a register set")
public void enable(@Argument(name="regset",description="Register set name")
TestReg.RsetId regset)
throws REBException
regset - The register set: STATUS, TIMEBASE, SEQUENCER,
POWERADCS or TEMPADCSREBException@Command(name="disable",
description="Disable a register set")
public void disable(@Argument(name="regset",description="Register set name")
TestReg.RsetId regset)
throws REBException
regset - The register set: STATUS, TIMEBASE, SEQUENCER,
POWERADCS or TEMPADCSREBException@Command(name="trigtime",
description="Show a trigger time")
public String trigtime(@Argument(name="regset",description="Register set name")
TestReg.RsetId regset)
throws REBException
regset - The register set: STATUS, TIMEBASE, SEQUENCER,
POWERADCS or TEMPADCSREBException@Command(name="time",
description="Show the time")
public String time()
throws REBException
REBException@Command(name="time",
description="Set the time")
public String setTime(@Argument(name="time",description="The time to set")
String time)
throws REBException
time - The time to set (yyyy-mm-dd hh:mm:ss)REBException@Command(name="timebase",
description="Show the time base")
public String timebase()
throws REBException
REBException@Command(name="timebase",
description="Set the time base")
public void timebase(@Argument(name="time",description="The value to set")
long time)
throws REBException
time - The time base valueREBException@Command(name="loadtest",
description="Load sequencer with test program")
public void loadTest(@Argument(name="totTime",description="The total time per cycle")
int totTime,
@Argument(name="ncycle",description="The number of cycles")
int ncycle)
throws REBException
totTime - The total time per cycle (in clock [10 ns] units)ncycle - The number of cyclesREBException@Command(name="loadtest",
description="Load sequencer with test program")
public void loadTest(@Argument(name="totTime",description="The total time per cycle")
int totTime,
@Argument(name="ncycle",description="The number of cycles")
int ncycle,
@Argument(name="ontime",description="The time the ADC is on per cycle")
int onTime)
throws REBException
totTime - The total time per cycle (in clock [10 ns] units)ncycle - The number of cyclesonTime - The time the ADC read is to take (in clock units)REBException@Command(name="loadcommand",
description="Load command into sequencer")
public void loadCommand(@Argument(name="command",description="The command to load")
String command)
throws REBException
command - The command to loadREBException@Command(name="loadfile",
description="Load command file into sequencer")
public String loadFile(@Argument(name="filename",description="The name of the file to load")
String fileName)
throws REBException,
IOException
fileName - The name of the command file to loadREBExceptionIOException@Command(name="stop",
description="Send a stop request to the sequencer")
public void stop()
throws REBException
REBException@Command(name="step",
description="Send a step request to the sequencer")
public void step()
throws REBException
REBException@Command(name="slice",
description="Show the slice count")
public String sliceCount()
throws REBException
REBException@Command(name="slice",
description="Set the slice count")
public void sliceCount(@Argument(name="count",description="The value to set")
int count)
throws REBException
count - The value to setREBException@Command(name="source",
description="Show the data source")
public String dataSource()
throws REBException
REBException@Command(name="source",
description="Set the data source")
public void dataSource(@Argument(name="value",description="The value to set")
int value)
throws REBException
value - The value to set: 0 = sensor; 1 = simulatorREBException@Command(name="stripe",
description="Show the stripe selection")
public String stripeSelect()
throws REBException
REBException@Command(name="stripe",
description="Set the stripe selection")
public void stripeSelect(@Argument(name="value",description="The value to set")
int value)
throws REBException
value - The value to set: 0 - 7REBException@Command(name="scan",
description="Show the scan mode")
public String scanMode()
throws REBException
REBException@Command(name="scan",
description="Set/reset the scan mode")
public void sliceCount(@Argument(name="option",description="The scan mode option")
TestReg.ScanOption option)
throws REBException
option - The scan mode option (ON, OFF or RESET)REBException@Command(name="status",
description="Show status block contents")
public String showStatus()
throws REBException
REBException@Command(name="temperature",
description="Show all board temperatures")
public String temperature()
throws REBException
REBException@Command(name="temperature",
description="Show a board temperature")
public String temperature(@Argument(name="first",description="The temperature to show")
int first)
throws REBException
first - The index (0 - 11) of the temperature sensorREBException@Command(name="temperature",
description="Show board temperatures")
public String temperature(@Argument(name="first",description="The first temperature to show")
int first,
@Argument(name="count",description="The number of temperatures to show")
int count)
throws REBException
first - The index (0 - 11) of the first temperature sensorcount - The number of temperatures to showREBException@Command(name="power",
description="Show all board power values")
public String power()
throws REBException
REBException@Command(name="power",
description="Show a board power value")
public String power(@Argument(name="first",description="The power value to show")
int first)
throws REBException
first - The index (0 - 7) of the power value to showREBException@Command(name="power",
description="Show board power values")
public String power(@Argument(name="first",description="The first power value to show")
int first,
@Argument(name="count",description="The number of power values to show")
int count)
throws REBException
first - The index (0 - 7) of the first power value to showcount - The number of values to showREBException@Command(name="dacversion",
description="Show DAC firmware version")
public String dacVersion()
@Command(name="dacset",
description="Set a DAC value")
public void dacSet(@Argument(name="chan",description="The channel name")
TestReg.DacChan chan,
@Argument(name="value",description="The value to set")
int value)
throws REBException
chan - The channel namevalue - The value to setREBException@Command(name="dacset",
description="Set a DAC value")
public void dacSet(@Argument(name="chan",description="The channel name")
TestReg.DacChan chan,
@Argument(name="value",description="The value to set")
int value,
@Argument(name="strip",description="The strip number")
int strip)
throws REBException
chan - The channel namevalue - The value to setstrip - The strip numberREBException@Command(name="dacloadall",
description="Load values into all DACs")
public void dacLoadAll()
throws REBException
REBException@Command(name="dacloadglobal",
description="Load values into all global DACs")
public void dacLoadGlobal()
throws REBException
REBException@Command(name="dacloadstrip",
description="Load values into all strip DACs")
public void dacLoadStrip()
throws REBException
REBException@Command(name="dacloadstrip",
description="Load values into one strip\'s DACs")
public void dacLoadStrip(@Argument(name="strip",description="The strip number")
int strip)
throws REBException
strip - The strip numberREBException@Command(name="dacload",
description="Load values into a DAC")
public void dacLoad(@Argument(name="dac",description="The DAC name")
TestReg.DacName name)
throws REBException
name - The DAC nameREBException@Command(name="dacload",
description="Load values into a DAC")
public void dacLoad(@Argument(name="dac",description="The DAC name")
TestReg.DacName name,
@Argument(name="strip",description="The strip number")
int strip)
throws REBException
name - The DAC namestrip - The strip numberREBException@Command(name="cabacversion",
description="Show CABAC firmware version")
public String cabacacVersion()
@Command(name="cabacpower",
description="Set CABAC power regulator enables")
public void cabacacPower(@Argument(name="enables",description="The regulator enable bits")
int enables)
throws REBException
enables - The mask of regulator enablesREBException@Command(name="cabacpower",
description="Show CABAC power regulator")
public String cabacacPower()
throws REBException
REBException@Command(name="cabacfield",
description="Show a CABAC field")
public String cabacField(@Argument(name="strips",description="The mask of strips")
int strips,
@Argument(name="side",description="The side (0 or 1)")
int side,
@Argument(name="field",description="The field name")
TestReg.CabacField field)
throws REBException
strips - The mask of strips to readside - The side to read: 0 = top; 1 = bottomfield - The field nameREBException@Command(name="cabacfield",
description="Write a CABAC field")
public void cabacField(@Argument(name="strips",description="The mask of strips")
int strips,
@Argument(name="sides",description="The mask of sides")
int sides,
@Argument(name="field",description="The field name")
TestReg.CabacField field,
@Argument(name="value",description="The value to set")
int value)
throws REBException
strips - The mask of strips to writesides - The mask of sides to write: 1 = top; 2 = bottomfield - The field namevalue - The value to setREBException@Command(name="cabacfetch",
description="Fetch CABAC strip")
public void cabacFetch(@Argument(name="strip",description="The strip number (0 - 2)")
int strip)
throws REBException
strip - The CABAC strip number (0 - 2)REBException@Command(name="cabacload",
description="Load CABAC strip")
public void cabacLoad(@Argument(name="strip",description="The strip number (0 - 2)")
int strip)
throws REBException
strip - The CABAC strip number (0 - 2)REBException@Command(name="cabacclear",
description="Clear CABAC strip")
public void cabacClear(@Argument(name="strip",description="The strip number (0 - 2)")
int strip)
throws REBException
strip - The CABAC strip number (0 - 2)REBException@Command(name="cabacread",
description="Show CABAC input registers")
public String cabacRead(@Argument(name="side",description="The side (0 or 1)")
int side)
throws REBException
side - The side: 0 = top; 1 = bottomREBException@Command(name="cabacwrite",
description="Write CABAC output registers")
public void cabacWrite(@Argument(name="side",description="The side (0 or 1)")
int side,
@Argument(name="values",description="The 5 values to set")
int... values)
throws REBException
side - The side: 0 = top; 1 = bottomvalues - The values to writeREBException@Command(name="cabaccopy",
description="Copy CABAC registers")
public void cabacCopy(@Argument(name="side",description="The side (0 or 1)")
int side)
throws REBException
side - The side: 0 = top; 1 = bottomREBException@Command(name="cabac",
description="Show all fields of a CABAC")
public String cabac(@Argument(name="side",description="The side (0 or 1)")
int side)
throws REBException
side - The side: 0 = top; 1 = bottomREBException@Command(name="cabac",
description="Show a CABAC field")
public String cabac(@Argument(name="side",description="The side (0 or 1)")
int side,
@Argument(name="field",description="The field name")
TestReg.CabacField field)
throws REBException
side - The side: 0 = top; 1 = bottomfield - The field nameREBException@Command(name="cabacsetall",
description="Set all CABAC fields")
public void cabacSet(@Argument(name="side",description="The side (0 or 1)")
int side,
@Argument(name="values",description="The 21 values to set")
int... values)
throws REBException
side - The side: 0 = top; 1 = bottomvalues - The 21 values to setREBException@Command(name="cabacset",
description="Set a CABAC field")
public void cabacSet(@Argument(name="side",description="The side (0 or 1)")
int side,
@Argument(name="field",description="The field name")
TestReg.CabacField field,
@Argument(name="value",description="The value to set")
int value)
throws REBException
side - The side: 0 = top; 1 = bottomfield - The field namevalue - The value to setREBException@Command(name="aspicversion",
description="Show ASPIC firmware version")
public String aspicVersion()
@Command(name="aspicgainrc",
description="Show ASPIC gain & RC")
public String aspicGainRc(@Argument(name="strips",description="The mask of strips")
int strips,
@Argument(name="side",description="The side (0 or 1)")
int side)
throws REBException
strips - The mask of strips to readside - The side to read: 0 = top; 1 = bottomREBException@Command(name="aspicgainrc",
description="Set ASPIC gain & RC")
public void aspicGainRc(@Argument(name="strips",description="The mask of strips")
int strips,
@Argument(name="sides",description="The mask of sides")
int sides,
@Argument(name="gain",description="The gain")
int gain,
@Argument(name="rc",description="The RC value")
int rc)
throws REBException
strips - The mask of strips to writesides - The mask of sides to write: 1 = top; 2 = bottomgain - The gainrc - The RC valueREBException@Command(name="aspicclamp",
description="Show ASPIC clamp value")
public String aspicClamp(@Argument(name="strips",description="The mask of strips")
int strips,
@Argument(name="side",description="The side (0 or 1)")
int side)
throws REBException
strips - The mask of strips to readside - The side to read: 0 = top; 1 = bottomREBException@Command(name="aspicclamp",
description="Set ASPIC clamp value")
public void aspicClamp(@Argument(name="strips",description="The mask of strips")
int strips,
@Argument(name="sides",description="The mask of sides")
int sides,
@Argument(name="clamp",description="The clamp value")
int clamp)
throws REBException
strips - The mask of strips to writesides - The mask of sides to write: 1 = top; 2 = bottomclamp - The clamp maskREBException@Command(name="aspicmodes",
description="Show ASPIC modes")
public String aspicModes(@Argument(name="strips",description="The mask of strips")
int strips,
@Argument(name="side",description="The side (0 or 1)")
int side)
throws REBException
strips - The mask of strips to readside - The side to read: 0 = top; 1 = bottomREBException@Command(name="aspicmodes",
description="Set ASPIC modes")
public void aspicModes(@Argument(name="strips",description="The mask of strips")
int strips,
@Argument(name="sides",description="The mask of sides")
int sides,
@Argument(name="modes",description="The modes value")
int modes)
throws REBException
strips - The mask of strips to writesides - The mask of sides to write: 1 = top; 2 = bottommodes - The modes valueREBException@Command(name="aspictemps",
description="Show all ASPIC temperatures")
public String aspicTemps()
throws REBException
REBException@Command(name="aspictemps",
description="Show ASPIC temperature")
public String aspicTemps(@Argument(name="first",description="The ASPIC to read")
int first)
throws REBException
first - The ASPIC to readREBException@Command(name="aspictemps",
description="Show ASPIC temperatures")
public String aspicTemps(@Argument(name="first",description="The first ASPIC to read")
int first,
@Argument(name="count",description="The number of ASPICs")
int count)
throws REBException
first - The first ASPIC to readcount - The number of ASPICs to readREBException@Command(name="slowadc",
description="Show slow ADC value")
public String slowAdc(@Argument(name="channel",description="The channel to read")
TestReg.SlowChan chan)
throws REBException
chan - The channel to readREBException@Command(name="slowadc",
description="Show slow ADC value")
public String slowAdc(@Argument(name="mux",description="The MUX channel number")
int mux,
@Argument(name="adc",description="The ADC channel number")
int adc)
throws REBException
mux - The MUX channel numberadc - The ADC channel numberREBException@Command(name="sndreb",
description="Show DREB serial number")
public String snDreb()
throws REBException
REBException@Command(name="snreb",
description="Show REB serial number")
public String snReb()
throws REBException
REBException@Command(name="dcdcsync",
description="Show DC/DC synchronization")
public String dcDcSync()
throws REBException
REBException@Command(name="dcdcsync",
description="Set DC/DC synchronization state")
public void dcDcSync(@Argument(name="state",description="The state to set")
TestReg.OnOff state)
throws REBException
state - The state to set: ON or OFFREBException@Command(name="contread",
description="Continuously read registers")
public String contRead(@Argument(name="address",description="The first register to read")
int address,
@Argument(name="count",description="The number of registers to read")
int count)
throws REBException
address - The address of the first register to readcount - The number of registers to readREBException@Command(name="conttemp",
description="Continuously read temperatures")
public String contTemp()
throws REBException
REBException@Command(name="contpower",
description="Continuously read power values")
public String contPower()
throws REBException
REBExceptionCopyright © 2016 LSST. All rights reserved.