public class TestRebPs extends Object
| Modifier and Type | Class and Description |
|---|---|
protected static class |
TestRebPs.OnOff |
| Constructor and Description |
|---|
TestRebPs()
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
configure(int rebNum)
Configures all devices in a REB.
|
void |
configure(int rebNum,
int psNum)
Configures all devices in a power supply.
|
void |
configure(int rebNum,
int psNum,
int devc)
Configures a device.
|
void |
connect(String ipAddr)
Connects to a device.
|
void |
connect(String ipAddr,
int port)
Connects to a device.
|
void |
disconnect()
Disconnects from the device.
|
String |
read(int addr)
Reads a register.
|
String |
read(int addr,
int count)
Reads registers.
|
String |
readChannel(int rebNum)
Shows all channel values for a REB.
|
String |
readChannel(int rebNum,
int psNum)
Shows all channel values for a power supply.
|
String |
readChannel(int rebNum,
int psNum,
int chan)
Shows a channel value.
|
void |
setPower(int rebNum,
int action)
Sets the power value for a REB.
|
void |
setTemperatureRes(int res)
Sets the temperature resolution.
|
String |
showErrors()
Shows the error counters.
|
String |
showFirmware()
Shows the firmware version.
|
String |
showGeogAddr()
Shows the geographical address.
|
String |
showPower()
Shows the overall power state.
|
String |
showPower(int rebNum)
Shows the power value for a REB.
|
String |
showSerial()
Shows the serial number.
|
String |
showTemperature()
Shows the temperature.
|
void |
update(int addr,
int mask,
int value)
Updates a register.
|
void |
write(int addr,
int... value)
Writes registers.
|
void |
writeDac(int rebNum,
int psNum,
double value)
Writes to a power supply DAC.
|
public TestRebPs()
throws org.lsst.ccs.drivers.commons.DriverException
org.lsst.ccs.drivers.commons.DriverException@Command(name="connect",
description="Open connection to device")
public void connect(@Argument(name="ipaddr",description="IP address")
String ipAddr,
@Argument(name="port",description="Port number")
int port)
throws org.lsst.ccs.drivers.commons.DriverException
ipAddr - The IP addressport - The port numberorg.lsst.ccs.drivers.commons.DriverException@Command(name="connect",
description="Open connection to device")
public void connect(@Argument(name="ipaddr",description="IP address")
String ipAddr)
throws org.lsst.ccs.drivers.commons.DriverException
ipAddr - The IP addressorg.lsst.ccs.drivers.commons.DriverException@Command(name="disconnect",
description="Close connection to device")
public void disconnect()
throws org.lsst.ccs.drivers.commons.DriverException
org.lsst.ccs.drivers.commons.DriverException@Command(name="read",
description="Read a register")
public String read(@Argument(name="addr",description="Register address")
int addr)
throws org.lsst.ccs.drivers.commons.DriverException
addr - The register addressorg.lsst.ccs.drivers.commons.DriverException@Command(name="read",
description="Reads registers")
public String read(@Argument(name="addr",description="Register address")
int addr,
@Argument(name="count",description="Register count")
int count)
throws org.lsst.ccs.drivers.commons.DriverException
addr - The first register addresscount - The number of registers to readorg.lsst.ccs.drivers.commons.DriverException@Command(name="write",
description="Write a register")
public void write(@Argument(name="addr",description="Register address")
int addr,
@Argument(name="value",description="Register values")
int... value)
throws org.lsst.ccs.drivers.commons.DriverException
addr - The first register addressvalue - The values to writeorg.lsst.ccs.drivers.commons.DriverException@Command(name="update",
description="Update a register")
public void update(@Argument(name="addr",description="Register address")
int addr,
@Argument(name="mask",description="Mask of bits to change")
int mask,
@Argument(name="value",description="Register value")
int value)
throws org.lsst.ccs.drivers.commons.DriverException
addr - The register addressmask - The mask of bits to changevalue - The value to writeorg.lsst.ccs.drivers.commons.DriverException@Command(name="showserial",
description="Show the serial number")
public String showSerial()
throws org.lsst.ccs.drivers.commons.DriverException
org.lsst.ccs.drivers.commons.DriverException@Command(name="showfirmware",
description="Show the firmware version")
public String showFirmware()
throws org.lsst.ccs.drivers.commons.DriverException
org.lsst.ccs.drivers.commons.DriverException@Command(name="showgeogaddr",
description="Show the geographical address")
public String showGeogAddr()
throws org.lsst.ccs.drivers.commons.DriverException
org.lsst.ccs.drivers.commons.DriverException@Command(name="configure",
description="Configure a device")
public void configure(@Argument(name="rebNum",description="REB number")
int rebNum,
@Argument(name="psNum",description="Power supply number")
int psNum,
@Argument(name="device",description="Device number")
int devc)
throws org.lsst.ccs.drivers.commons.DriverException
rebNum - The REB numberpsNum - The power supply numberdevc - The device numberorg.lsst.ccs.drivers.commons.DriverException@Command(name="configure",
description="Configure all devices in a PS")
public void configure(@Argument(name="rebNum",description="REB number")
int rebNum,
@Argument(name="psNum",description="Power supply number")
int psNum)
throws org.lsst.ccs.drivers.commons.DriverException
rebNum - The REB numberpsNum - The power supply numberorg.lsst.ccs.drivers.commons.DriverException@Command(name="configure",
description="Configure all devices in a REB")
public void configure(@Argument(name="rebNum",description="REB number")
int rebNum)
throws org.lsst.ccs.drivers.commons.DriverException
rebNum - The REB numberorg.lsst.ccs.drivers.commons.DriverException@Command(name="readchannel",
description="Show a channel value")
public String readChannel(@Argument(name="rebNum",description="REB number")
int rebNum,
@Argument(name="psNum",description="Power supply number")
int psNum,
@Argument(name="chan",description="Channel number")
int chan)
throws org.lsst.ccs.drivers.commons.DriverException
rebNum - The REB numberpsNum - The power supply numberchan - The channel numberorg.lsst.ccs.drivers.commons.DriverException@Command(name="readchannel",
description="Show channel values")
public String readChannel(@Argument(name="rebNum",description="REB number")
int rebNum,
@Argument(name="psNum",description="Power supply number")
int psNum)
throws org.lsst.ccs.drivers.commons.DriverException
rebNum - The REB numberpsNum - The power supply numberorg.lsst.ccs.drivers.commons.DriverException@Command(name="readchannel",
description="Show channel values")
public String readChannel(@Argument(name="rebNum",description="REB number")
int rebNum)
throws org.lsst.ccs.drivers.commons.DriverException
rebNum - The REB numberorg.lsst.ccs.drivers.commons.DriverException@Command(name="writedac",
description="Write to a DAC")
public void writeDac(@Argument(name="rebNum",description="REB number")
int rebNum,
@Argument(name="psNum",description="Power supply number")
int psNum,
@Argument(name="value",description="DAC value")
double value)
throws org.lsst.ccs.drivers.commons.DriverException
rebNum - The REB numberpsNum - The power supply numbervalue - The value to writeorg.lsst.ccs.drivers.commons.DriverException@Command(name="settempres",
description="Set the temperature resolution")
public void setTemperatureRes(@Argument(name="resolution",description="Resolution value")
int res)
throws org.lsst.ccs.drivers.commons.DriverException
res - The resolution value (0 - 3)org.lsst.ccs.drivers.commons.DriverException@Command(name="showtemp",
description="Show the temperature")
public String showTemperature()
throws org.lsst.ccs.drivers.commons.DriverException
org.lsst.ccs.drivers.commons.DriverException@Command(name="setpower",
description="Sets the power")
public void setPower(@Argument(name="reb",description="REB number")
int rebNum,
@Argument(name="action",description="Action value")
int action)
throws org.lsst.ccs.drivers.commons.DriverException
rebNum - The reb numberaction - The action to take (0 - 7)org.lsst.ccs.drivers.commons.DriverException@Command(name="showpower",
description="Show the power")
public String showPower(@Argument(name="reb",description="REB number")
int rebNum)
throws org.lsst.ccs.drivers.commons.DriverException
rebNum - The reb numberorg.lsst.ccs.drivers.commons.DriverException@Command(name="showpower",
description="Show the overall power state")
public String showPower()
throws org.lsst.ccs.drivers.commons.DriverException
org.lsst.ccs.drivers.commons.DriverException@Command(name="showerrors",
description="Show the error counters")
public String showErrors()
throws org.lsst.ccs.drivers.commons.DriverException
org.lsst.ccs.drivers.commons.DriverExceptionCopyright © 2017 LSST. All rights reserved.