public class CCOBCommands extends Object implements CCOBInterface
CCOBInterface.LED| Constructor and Description |
|---|
CCOBCommands(CCOBInterface driver) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
String |
date()
The date of compilation of the firmware
|
String |
device()
Identify the device type
|
double |
getAdcPhotoDiode()
Return photodiode ADC values
|
CCOBDataRead |
getAdcValues()
Return housekeeping ADC values.
|
double |
getBoardTemperature() |
double |
getLed1Temperature() |
double |
getLed2Temperature() |
double |
getLedCurrent() |
double |
getLedRefVoltage() |
double |
getLedVoltage() |
double |
getSphereTemperature() |
void |
init()
Initializes the interface, should be called before anything else
|
void |
ledOn(int led,
int on)
Turn one of the 4 onboard LED on or off
|
String |
manu()
Manufacturer/developer info from the firmware
|
String |
misc()
Additional firmware details
|
boolean |
pollEnd()
Check to see if the exposure has finished
|
void |
pulse()
Set the mode to pulsed, timed by setExposureTime
|
boolean |
readButton(int Button)
Reads the state of one of the 5 buttons
|
void |
selectLed(CCOBInterface.LED led)
Select which LED will be turned on (by startExposure, pulseLED etc)
|
void |
setDriver(CCOBInterface driver) |
void |
setExposureTime(double time)
Duration for use in pulsed mode
|
void |
setLedCurrent(double current)
Sets the current (for all LEDs)
|
void |
shutter()
Set the mode to shutter (unlimited time, remember to stop it)
|
void |
startExposure()
Turn on the LED based on exposure time and LED current
|
void |
stop()
Closes the interface, should be called at end or before you restart a cycle
|
String |
version()
The version of the firmware
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitselectLED, setLEDCurrentpublic CCOBCommands(CCOBInterface driver)
public void setDriver(CCOBInterface driver)
@Command(description="Close connection")
public void close()
throws IOException,
org.lsst.ccs.drivers.commons.DriverException
IOExceptionorg.lsst.ccs.drivers.commons.DriverException@Command(description="Open connection and initialize CCOB")
public void init()
throws org.lsst.ccs.drivers.commons.DriverException
CCOBInterfaceinit in interface CCOBInterfaceorg.lsst.ccs.drivers.commons.DriverException - If the
initialization fails@Command(description="Stop CCOB and close connection")
public void stop()
throws org.lsst.ccs.drivers.commons.DriverException
CCOBInterfacestop in interface CCOBInterfaceorg.lsst.ccs.drivers.commons.DriverException@Command(description="Get version string") public String version() throws org.lsst.ccs.drivers.commons.DriverException
CCOBInterfaceversion in interface CCOBInterfaceorg.lsst.ccs.drivers.commons.DriverException@Command(description="Get date string") public String date() throws org.lsst.ccs.drivers.commons.DriverException
CCOBInterfacedate in interface CCOBInterfaceorg.lsst.ccs.drivers.commons.DriverException@Command(description="Get miscellaneous string") public String misc() throws org.lsst.ccs.drivers.commons.DriverException
CCOBInterfacemisc in interface CCOBInterfaceorg.lsst.ccs.drivers.commons.DriverException@Command(description="Get manufacturer string") public String manu() throws org.lsst.ccs.drivers.commons.DriverException
CCOBInterfacemanu in interface CCOBInterfaceorg.lsst.ccs.drivers.commons.DriverException@Command(description="Get device string") public String device() throws org.lsst.ccs.drivers.commons.DriverException
CCOBInterfacedevice in interface CCOBInterfaceorg.lsst.ccs.drivers.commons.DriverException@Command(description="Select the LED")
public void selectLed(@Argument(name="led",description="LED name")
CCOBInterface.LED led)
throws org.lsst.ccs.drivers.commons.DriverException
CCOBInterfaceselectLed in interface CCOBInterfaceorg.lsst.ccs.drivers.commons.DriverException@Command(description="Set the LED current")
public void setLedCurrent(@Argument(description="LED current (amps)")
double current)
throws org.lsst.ccs.drivers.commons.DriverException
CCOBInterfacesetLedCurrent in interface CCOBInterfacecurrent - Current, in range 0-0.273 (Amps)org.lsst.ccs.drivers.commons.DriverException@Command(description="Set the exposure time")
public void setExposureTime(@Argument(description="Exposure time (secs)")
double time)
throws org.lsst.ccs.drivers.commons.DriverException
CCOBInterfacesetExposureTime in interface CCOBInterfacetime - Exposure time (undefined units) (0-65535)org.lsst.ccs.drivers.commons.DriverException@Command(description="Set pulse mode")
public void pulse()
throws org.lsst.ccs.drivers.commons.DriverException
CCOBInterfacepulse in interface CCOBInterfaceorg.lsst.ccs.drivers.commons.DriverException@Command(description="Set shutter mode")
public void shutter()
throws org.lsst.ccs.drivers.commons.DriverException
CCOBInterfaceshutter in interface CCOBInterfaceorg.lsst.ccs.drivers.commons.DriverException@Command(description="Start exposure")
public void startExposure()
throws org.lsst.ccs.drivers.commons.DriverException
CCOBInterfacestartExposure in interface CCOBInterfaceorg.lsst.ccs.drivers.commons.DriverException@Command(description="Poll for end of exposure")
public boolean pollEnd()
throws org.lsst.ccs.drivers.commons.DriverException
CCOBInterfacepollEnd in interface CCOBInterfaceorg.lsst.ccs.drivers.commons.DriverException@Command(description="Read ADC values") public CCOBDataRead getAdcValues() throws org.lsst.ccs.drivers.commons.DriverException
CCOBInterfacegetAdcValues in interface CCOBInterfaceorg.lsst.ccs.drivers.commons.DriverException@Command(description="Read photodiode voltage")
public double getAdcPhotoDiode()
throws org.lsst.ccs.drivers.commons.DriverException
CCOBInterfacegetAdcPhotoDiode in interface CCOBInterfaceorg.lsst.ccs.drivers.commons.DriverException@Command(description="Read LED current")
public double getLedCurrent()
throws org.lsst.ccs.drivers.commons.DriverException
org.lsst.ccs.drivers.commons.DriverException@Command(description="Read LED voltage")
public double getLedVoltage()
throws org.lsst.ccs.drivers.commons.DriverException
org.lsst.ccs.drivers.commons.DriverException@Command(description="Read LED reference voltage")
public double getLedRefVoltage()
throws org.lsst.ccs.drivers.commons.DriverException
org.lsst.ccs.drivers.commons.DriverException@Command(description="Read sphere temperature")
public double getSphereTemperature()
throws org.lsst.ccs.drivers.commons.DriverException
org.lsst.ccs.drivers.commons.DriverException@Command(description="Read board temperature")
public double getBoardTemperature()
throws org.lsst.ccs.drivers.commons.DriverException
org.lsst.ccs.drivers.commons.DriverException@Command(description="Read LED temperature 1")
public double getLed1Temperature()
throws org.lsst.ccs.drivers.commons.DriverException
org.lsst.ccs.drivers.commons.DriverException@Command(description="Read LED temperature 2")
public double getLed2Temperature()
throws org.lsst.ccs.drivers.commons.DriverException
org.lsst.ccs.drivers.commons.DriverException@Command(description="Set board LED state")
public void ledOn(@Argument(description="LED number (1 - 4)")
int led,
@Argument(description="LED state (1 = on, 0 = off)")
int on)
throws org.lsst.ccs.drivers.commons.DriverException
CCOBInterfaceledOn in interface CCOBInterfaceled - LED numberon - On stateorg.lsst.ccs.drivers.commons.DriverException@Command(description="Get button state")
public boolean readButton(@Argument(description="Button number (0 - 4)")
int Button)
throws org.lsst.ccs.drivers.commons.DriverException
CCOBInterfacereadButton in interface CCOBInterfaceButton - Button numberorg.lsst.ccs.drivers.commons.DriverExceptionCopyright © 2018 LSST. All rights reserved.