public class BiasControl
extends org.lsst.ccs.monitor.Control
implements org.lsst.ccs.config.ConfigurationBulkChangeHandler
| Modifier and Type | Field and Description |
|---|---|
static String |
CS_GATE
Constants.
|
static String |
CS_GATE_P
Constants.
|
static String |
GD
Constants.
|
static String |
GD_P
Constants.
|
static String |
OD
Constants.
|
static String |
OD_P
Constants.
|
static String |
OG
Constants.
|
static String |
OG_P
Constants.
|
static String |
OG_SH
Constants.
|
static String |
RD
Constants.
|
static String |
RD_P
Constants.
|
| Constructor and Description |
|---|
BiasControl()
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
int |
checkBiasStepLimits(double[] slowAdcs,
List<String> tmsgList)
Measure BiasDac offsets to prepare for a jump
|
boolean |
checkConfig()
Checks configuration.
|
protected void |
configure(org.lsst.ccs.monitor.Monitor mon,
org.lsst.ccs.monitor.Device devc)
Configures channel description.
|
int |
getBiasDacsPowerState(double[] slowAdcs,
List<String> tmsgList)
Checks whether Bias voltage values are ON, OFF, DELTA
|
String |
getChanged()
Gets the changed variable value
|
int |
getCsGate()
Gets the Current Source gate DAC value.
|
double |
getCsGateP()
Gets the Current Source gate current.
|
int |
getGd()
Gets the Guard Diode DAC value.
|
double |
getGdP()
Gets the Guard Diode voltage.
|
int |
getHwVersion()
Deprecated.
|
static int |
getHwVersion(org.lsst.ccs.drivers.reb.BoardDacs dac)
Gets the hardware version.
|
int |
getOd()
Gets the Output Drain DAC value.
|
double |
getOdP()
Gets the Output Drain voltage.
|
int |
getOg()
Gets the Output Gate DAC value.
|
double |
getOgP()
Gets the Output Gate voltage.
|
int |
getOgSh()
Gets the Output Gate shift DAC value.
|
int |
getRd()
Gets the Reset Drain DAC value.
|
double |
getRdP()
Gets the Reset Drain voltage.
|
boolean |
isRaw()
Gets the raw state.
|
int |
setBiasDacsCalibration(double[] slowAdcs,
List<String> tmsgList,
boolean action)
Measure and Set BiasDac Calibration to converge measured and configured
voltages
|
void |
setCsGate(int value)
Sets the Current Source gate DAC value.
|
void |
setCsGateP(double value)
Sets the Current Source gate current.
|
void |
setGd(int value)
Sets the Guard Diode DAC value.
|
void |
setGdMax(double value)
Sets the Guard Diode voltage maximum.
|
void |
setGdMin(double value)
Sets the Guard Diode voltage minimum.
|
void |
setGdP(double value)
Sets the Guard Diode voltage.
|
void |
setOd(int value)
Sets the Output Drain DAC value.
|
void |
setOdMax(double value)
Sets the Output Drain voltage maximum.
|
void |
setOdMin(double value)
Sets the Output Drain voltage minimum.
|
void |
setOdP(double value)
Sets the Output Drain voltage.
|
void |
setOg(int value)
Sets the Output Gate DAC value.
|
void |
setOgMax(double value)
Sets the Output Gate voltage maximum.
|
void |
setOgMin(double value)
Sets the Output Gate voltage minimum.
|
void |
setOgP(double value)
Sets the Output Gate voltage.
|
void |
setOgSh(int value)
Sets the Output Gate shift DAC value.
|
void |
setParameterBulk(Map<String,Object> params)
Augments setting of parameters to trigger CCDsPowerState update
Parameters are set by ConfigurationChanger methods
If parameters match the pattern the rebDevice updateCCDsPowerState flag is set
If parameters match the pattern the matching bits in this.changed are set
|
void |
setRd(int value)
Sets the Reset Drain DAC value.
|
void |
setRdMax(double value)
Sets the Reset Drain voltage maximum.
|
void |
setRdMin(double value)
Sets the Reset Drain voltage minimum.
|
void |
setRdP(double value)
Sets the Reset Drain voltage.
|
boolean |
testShorts(List<REBDevice.AdcData> dataList,
List<String> tmsgList)
Tests for biases shorts.
|
void |
validateBulkChange(Map<String,Object> params)
Validates configuration parameter change.
|
checkOnline, checkTimeout, getDescription, getHwChan, getName, getSubsystem, init, testOnlinepublic static final String GD_P
public static final String OD_P
public static final String OG_P
public static final String RD_P
public static final String CS_GATE_P
public static final String GD
public static final String OD
public static final String OG
public static final String OG_SH
public static final String RD
public static final String CS_GATE
protected void configure(org.lsst.ccs.monitor.Monitor mon,
org.lsst.ccs.monitor.Device devc)
configure in class org.lsst.ccs.monitor.Controlmon - The associated monitor objectdevc - The associated device objectpublic boolean checkConfig()
public boolean isRaw()
public static int getHwVersion(org.lsst.ccs.drivers.reb.BoardDacs dac)
dac - The board DAC object@Deprecated public int getHwVersion()
public void validateBulkChange(Map<String,Object> params) throws IllegalArgumentException
validateBulkChange in interface org.lsst.ccs.config.ConfigurationBulkChangeHandlerparams - The map of configuration parameter valuesIllegalArgumentExceptionpublic void setParameterBulk(Map<String,Object> params) throws IllegalArgumentException
setParameterBulk in interface org.lsst.ccs.config.ConfigurationBulkChangeHandlerparams - The map of configuration parameter valuesIllegalArgumentException@Command(type=QUERY,
description="Get the changed variable value")
public String getChanged()
@ConfigurationParameterChanger public void setGdP(double value)
value - @Command(type=QUERY,
description="Get the Guard Diode voltage")
public double getGdP()
@ConfigurationParameterChanger public void setGdMax(double value)
value - @ConfigurationParameterChanger public void setGdMin(double value)
value - @ConfigurationParameterChanger public void setGd(int value)
value - @Command(type=QUERY,
description="Get the Guard Diode DAC value")
public int getGd()
@ConfigurationParameterChanger public void setOdP(double value)
value - @Command(type=QUERY,
description="Get the readout mode Output Drain voltage")
public double getOdP()
@ConfigurationParameterChanger public void setOdMax(double value)
value - @ConfigurationParameterChanger public void setOdMin(double value)
value - @ConfigurationParameterChanger public void setOd(int value)
value - @Command(type=QUERY,
description="Get the readout mode Output Drain DAC value")
public int getOd()
@ConfigurationParameterChanger public void setOgP(double value)
value - @Command(type=QUERY,
description="Get the Output Gate voltage")
public double getOgP()
@ConfigurationParameterChanger public void setOgMax(double value)
value - @ConfigurationParameterChanger public void setOgMin(double value)
value - @ConfigurationParameterChanger public void setOg(int value)
value - @Command(type=QUERY,
description="Get the Output Gate DAC value")
public int getOg()
@ConfigurationParameterChanger public void setOgSh(int value)
value - @Command(type=QUERY,
description="Get the Output Gate shift DAC value")
public int getOgSh()
@ConfigurationParameterChanger public void setRdP(double value)
value - @Command(type=QUERY,
description="Get the Reset Drain voltage")
public double getRdP()
@ConfigurationParameterChanger public void setRdMax(double value)
value - @ConfigurationParameterChanger public void setRdMin(double value)
value - @ConfigurationParameterChanger public void setRd(int value)
value - @Command(type=QUERY,
description="Get the Reset Drain DAC value")
public int getRd()
@ConfigurationParameterChanger public void setCsGateP(double value)
value - @Command(type=QUERY,
description="Get the Current Source gate")
public double getCsGateP()
@ConfigurationParameterChanger public void setCsGate(int value)
value - @Command(type=QUERY,
description="Get the Current Source gate")
public int getCsGate()
public boolean testShorts(List<REBDevice.AdcData> dataList, List<String> tmsgList) throws RaftException
dataList - A list to receive read ADC valuestmsgList - A list of strings to contain messagesRaftException - Note OD not in test: driver doesn't turn on below ~15Vpublic int getBiasDacsPowerState(double[] slowAdcs,
List<String> tmsgList)
slowAdcs[] - array of values measued in REBDevicetmsgList - List to contain test messagesRaftExceptionpublic int setBiasDacsCalibration(double[] slowAdcs,
List<String> tmsgList,
boolean action)
slowAdcs - array of measured voltages for CCD biasestmsgList - List to contain results returned to calleraction - true|false to actually submit config changes returns 0 on
success or a count of errors (voltages with out of range
offsets)public int checkBiasStepLimits(double[] slowAdcs,
List<String> tmsgList)
slowAdcs - array of measured voltages for CCD biasestmsgList - List to contain results returned to callerCopyright © 2021 LSST. All rights reserved.