public class HeaterPS extends Srp
Srp.BoardType| Modifier and Type | Field and Description |
|---|---|
static int |
MAX_SWITCH_PERIOD
Constants and data.
|
static int |
MIN_SWITCH_PERIOD
Constants and data.
|
static int |
NUM_HEATERS
Constants and data.
|
boardType, DEFAULT_PORT| Constructor and Description |
|---|
HeaterPS()
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
double |
getDutyCycle(int chan)
Gets the output duty cycle for a channel.
|
double |
getHeaterOhms(int chan)
Gets the load resistance for a channel.
|
String |
getMainFwVersion()
Gets the main PS firmware version.
|
int |
getMainIoStatus()
Gets the I/O status of the main PS.
|
String |
getMainManuDate()
Gets the main PS manufacturing date.
|
String |
getMainManuLocn()
Gets the main PS manufacturing location.
|
int |
getMainModel()
Gets the main PS model type.
|
String |
getMainPartNo()
Gets the main PS part number.
|
String |
getMainPrVersion()
Gets the main PS product version.
|
String |
getMainSerialNo()
Gets the main PS serial number.
|
boolean |
getOutput(int chan)
Gets the output state for a channel.
|
double |
getSourceVoltage()
Gets the source voltage.
|
int |
getSwitchPeriod()
Gets the common switching period.
|
double |
getVoltage(int chan)
Gets the set output voltage for a channel.
|
double |
readBoardTemperature()
Reads the board temperature
|
double |
readCurrent(int chan)
Reads a channel's current
|
double |
readMainCurrent()
Reads the main PS current.
|
int |
readMainStatus()
Reads the main PS status.
|
double |
readMainTemperature()
Reads the main PS baseplate temperature.
|
double |
readMainVoltage()
Reads the main PS voltage.
|
double |
readVoltage(int chan)
Reads a channel's voltage.
|
void |
setDutyCycle(int chan,
double duty)
Sets the output duty cycle for a channel.
|
void |
setMainPowerOn(boolean on)
Turns the main PS on or off.
|
void |
setOutput(int chan,
boolean on)
Sets the output state for a channel.
|
void |
setSwitchPeriod(int period)
Sets the common switching period.
|
void |
setVoltage(int chan,
double volts)
Sets the output voltage for a channel.
|
clearSimRegMap, close, getBoardType, getBuildStamp, getIpAddress, getNumSeqErr, getNumTimeout, getSimRegMap, isSimulated, open, open, open, open, putSimRegMap, readReg, readRegs, setDebug, setSrpVersion, setValidBoardTypes, simInitialize, simReadRegs, simWriteRegs, updateReg, writeReg, writeRegspublic static final int NUM_HEATERS
public static final int MIN_SWITCH_PERIOD
public static final int MAX_SWITCH_PERIOD
public void setSwitchPeriod(int period)
throws org.lsst.ccs.drivers.commons.DriverException
period - The switching period, in 5 ns unitsorg.lsst.ccs.drivers.commons.DriverExceptionpublic int getSwitchPeriod()
public double getSourceVoltage()
public double getHeaterOhms(int chan)
throws org.lsst.ccs.drivers.commons.DriverException
chan - The channel numberorg.lsst.ccs.drivers.commons.DriverExceptionpublic void setDutyCycle(int chan,
double duty)
throws org.lsst.ccs.drivers.commons.DriverException
chan - The channel numberduty - The duty cycle (0 - 1.0)org.lsst.ccs.drivers.commons.DriverExceptionpublic double getDutyCycle(int chan)
throws org.lsst.ccs.drivers.commons.DriverException
chan - The channel numberorg.lsst.ccs.drivers.commons.DriverExceptionpublic void setVoltage(int chan,
double volts)
throws org.lsst.ccs.drivers.commons.DriverException
chan - The channel numbervolts - The voltageorg.lsst.ccs.drivers.commons.DriverExceptionpublic double getVoltage(int chan)
throws org.lsst.ccs.drivers.commons.DriverException
chan - The channel numberorg.lsst.ccs.drivers.commons.DriverExceptionpublic void setOutput(int chan,
boolean on)
throws org.lsst.ccs.drivers.commons.DriverException
chan - The channel numberon - Whether channel output is set onorg.lsst.ccs.drivers.commons.DriverExceptionpublic boolean getOutput(int chan)
throws org.lsst.ccs.drivers.commons.DriverException
chan - The channel numberorg.lsst.ccs.drivers.commons.DriverExceptionpublic double readVoltage(int chan)
throws org.lsst.ccs.drivers.commons.DriverException
chan - The channel numberorg.lsst.ccs.drivers.commons.DriverException - if the channel number is invalidpublic double readCurrent(int chan)
throws org.lsst.ccs.drivers.commons.DriverException
chan - The channel numberorg.lsst.ccs.drivers.commons.DriverException - if the channel number is invalidpublic double readBoardTemperature()
throws org.lsst.ccs.drivers.commons.DriverException
org.lsst.ccs.drivers.commons.DriverExceptionpublic int getMainModel()
throws org.lsst.ccs.drivers.commons.DriverException
org.lsst.ccs.drivers.commons.DriverExceptionpublic String getMainSerialNo() throws org.lsst.ccs.drivers.commons.DriverException
org.lsst.ccs.drivers.commons.DriverExceptionpublic String getMainFwVersion() throws org.lsst.ccs.drivers.commons.DriverException
org.lsst.ccs.drivers.commons.DriverExceptionpublic String getMainPrVersion() throws org.lsst.ccs.drivers.commons.DriverException
org.lsst.ccs.drivers.commons.DriverExceptionpublic String getMainPartNo() throws org.lsst.ccs.drivers.commons.DriverException
org.lsst.ccs.drivers.commons.DriverExceptionpublic String getMainManuDate() throws org.lsst.ccs.drivers.commons.DriverException
org.lsst.ccs.drivers.commons.DriverExceptionpublic String getMainManuLocn() throws org.lsst.ccs.drivers.commons.DriverException
org.lsst.ccs.drivers.commons.DriverExceptionpublic int readMainStatus()
throws org.lsst.ccs.drivers.commons.DriverException
org.lsst.ccs.drivers.commons.DriverExceptionpublic double readMainVoltage()
throws org.lsst.ccs.drivers.commons.DriverException
org.lsst.ccs.drivers.commons.DriverExceptionpublic double readMainCurrent()
throws org.lsst.ccs.drivers.commons.DriverException
org.lsst.ccs.drivers.commons.DriverExceptionpublic double readMainTemperature()
throws org.lsst.ccs.drivers.commons.DriverException
org.lsst.ccs.drivers.commons.DriverExceptionpublic void setMainPowerOn(boolean on)
throws org.lsst.ccs.drivers.commons.DriverException
on - Whether to turn onorg.lsst.ccs.drivers.commons.DriverExceptionpublic int getMainIoStatus()
throws org.lsst.ccs.drivers.commons.DriverException
org.lsst.ccs.drivers.commons.DriverExceptionCopyright © 2018 LSST. All rights reserved.