public class TestReg extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
TestReg.RsetId
Enumeration for register set identifiers.
|
| Constructor and Description |
|---|
TestReg()
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
connect(int id)
Connects to an RCM.
|
void |
connect(int id,
String ifcName)
Connects to an RCM.
|
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 |
dac(int number,
int chan,
int value)
Sets a DAC value.
|
String |
dataSource()
Shows the data source register.
|
void |
dataSource(int source)
Sets the data source register.
|
void |
disable(TestReg.RsetId regset)
Disables a register set.
|
void |
disconnect()
Disconnects from an RCM.
|
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 values.
|
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 |
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.
|
String |
stripeSelect()
Shows the stripe selection register.
|
void |
stripeSelect(int stripe)
Sets the stripe selection register.
|
String |
temperature()
Shows all the board temperatures.
|
String |
temperature(int first)
Shows a board temperatures.
|
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 an RCM")
public void connect(@Argument(name="id",description="RCM ID")
int id)
throws RcmException
RcmException@Command(name="connect",
description="Connect to an RCM")
public void connect(@Argument(name="id",description="RCM ID")
int id,
@Argument(name="ifcname",description="Network interface name")
String ifcName)
throws RcmException
RcmException@Command(name="disconnect",
description="Disconnect from an RCM")
public void disconnect()
throws RcmException
RcmException@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 RcmException
RcmException@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 RcmException
RcmException@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 RcmException
RcmException@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 RcmException
RcmException@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 RcmException
RcmException@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 RcmException
RcmException@Command(name="enable",
description="Enable a register set")
public void enable(@Argument(name="regset",description="Register set name")
TestReg.RsetId regset)
throws RcmException
RcmException@Command(name="disable",
description="Disable a register set")
public void disable(@Argument(name="regset",description="Register set name")
TestReg.RsetId regset)
throws RcmException
RcmException@Command(name="trigtime",
description="Show a trigger time")
public String trigtime(@Argument(name="regset",description="Register set name")
TestReg.RsetId regset)
throws RcmException
RcmException@Command(name="time",
description="Show the time")
public String time()
throws RcmException
RcmException@Command(name="time",
description="Set the time")
public String setTime(@Argument(name="time",description="The time to set")
String time)
throws RcmException
RcmException@Command(name="timebase",
description="Show the time base")
public String timebase()
throws RcmException
RcmException@Command(name="timebase",
description="Set the time base")
public void timebase(@Argument(name="time",description="The value to set")
long time)
throws RcmException
RcmException@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 RcmException
RcmException@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 RcmException
RcmException@Command(name="loadcommand",
description="Load command into sequencer")
public void loadCommand(@Argument(name="command",description="The command to load")
String command)
throws RcmException
RcmException@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 RcmException,
IOException
RcmExceptionIOException@Command(name="slice",
description="Show the slice count")
public String sliceCount()
throws RcmException
RcmException@Command(name="slice",
description="Set the slice count")
public void sliceCount(@Argument(name="count",description="The value to set")
int count)
throws RcmException
RcmException@Command(name="source",
description="Show the data source")
public String dataSource()
throws RcmException
RcmException@Command(name="source",
description="Set the data source")
public void dataSource(@Argument(name="source",description="The value to set")
int source)
throws RcmException
RcmException@Command(name="stripe",
description="Show the stripe selection")
public String stripeSelect()
throws RcmException
RcmException@Command(name="stripe",
description="Set the stripe selection")
public void stripeSelect(@Argument(name="stripe",description="The value to set")
int stripe)
throws RcmException
RcmException@Command(name="status",
description="Show status block contents")
public String showStatus()
throws RcmException
RcmException@Command(name="temperature",
description="Show all board temperatures")
public String temperature()
throws RcmException
RcmException@Command(name="temperature",
description="Show a board temperature")
public String temperature(@Argument(name="first",description="The temperature to show")
int first)
throws RcmException
RcmException@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 RcmException
RcmException@Command(name="power",
description="Show all board power values")
public String power()
throws RcmException
RcmException@Command(name="power",
description="Show a board power value")
public String power(@Argument(name="first",description="The power value to show")
int first)
throws RcmException
RcmException@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 RcmException
RcmException@Command(name="dac",
description="Set a DAC value")
public void dac(@Argument(name="number",description="The DAC number (0 or 1)")
int number,
@Argument(name="chan",description="The channel number (0 - 7)")
int chan,
@Argument(name="value",description="The value to set")
int value)
throws RcmException
RcmException@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 RcmException
RcmException@Command(name="conttemp",
description="Continuously read temperatures")
public String contTemp()
throws RcmException
RcmException@Command(name="contpower",
description="Continuously read power values")
public String contPower()
throws RcmException
RcmExceptionCopyright © 2014 LSST. All Rights Reserved.