public class CCOBUsb extends Object implements CCOBInterface
CCOBInterface.LED| Constructor and Description |
|---|
CCOBUsb()
Constructor.
|
CCOBUsb(int index)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
String |
date()
Gets the date string
|
String |
device()
Gets the device string
|
double |
getAdcPhotoDiode()
Reads the photodiode voltage.
|
CCOBDataRead |
getAdcValues()
Reads the converted ADC values.
|
void |
init()
Initializes the connection to a device
|
void |
ledOn(int led,
int on)
Turns on a board LED.
|
String |
manu()
Gets the manufacturer string
|
String |
misc()
Gets the miscellaneous string
|
boolean |
pollEnd()
Polls for exposure end
|
void |
pulse()
Sets LED pulse mode
|
boolean |
readButton(int button)
Reads the state of a button.
|
void |
selectLed(CCOBInterface.LED led)
Selects the LED
|
void |
setExposureTime(double time)
Sets the exposure tine
|
void |
setLedCurrent(double current)
Sets the LED current
|
void |
shutter()
Sets shutter mode
|
void |
startExposure()
Starts exposure
|
void |
stop()
Stops the CCOB and closes the connection
|
String |
version()
Gets the version string
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitselectLED, setLEDCurrentpublic CCOBUsb()
public CCOBUsb(int index)
index - The index of the device in the list of matching onespublic void init()
throws org.lsst.ccs.drivers.commons.DriverException
init in interface CCOBInterfaceorg.lsst.ccs.drivers.commons.DriverExceptionpublic void stop()
throws org.lsst.ccs.drivers.commons.DriverException
stop in interface CCOBInterfaceorg.lsst.ccs.drivers.commons.DriverExceptionpublic String misc() throws org.lsst.ccs.drivers.commons.DriverException
misc in interface CCOBInterfaceorg.lsst.ccs.drivers.commons.DriverExceptionpublic String manu() throws org.lsst.ccs.drivers.commons.DriverException
manu in interface CCOBInterfaceorg.lsst.ccs.drivers.commons.DriverExceptionpublic String date() throws org.lsst.ccs.drivers.commons.DriverException
date in interface CCOBInterfaceorg.lsst.ccs.drivers.commons.DriverExceptionpublic String version() throws org.lsst.ccs.drivers.commons.DriverException
version in interface CCOBInterfaceorg.lsst.ccs.drivers.commons.DriverExceptionpublic String device() throws org.lsst.ccs.drivers.commons.DriverException
device in interface CCOBInterfaceorg.lsst.ccs.drivers.commons.DriverExceptionpublic void selectLed(CCOBInterface.LED led) throws org.lsst.ccs.drivers.commons.DriverException
selectLed in interface CCOBInterfaceled - The enumerated LEDorg.lsst.ccs.drivers.commons.DriverExceptionpublic void setLedCurrent(double current)
throws org.lsst.ccs.drivers.commons.DriverException
setLedCurrent in interface CCOBInterfacecurrent - The current valueorg.lsst.ccs.drivers.commons.DriverExceptionpublic void setExposureTime(double time)
throws org.lsst.ccs.drivers.commons.DriverException
setExposureTime in interface CCOBInterfacetime - The exposure timeorg.lsst.ccs.drivers.commons.DriverExceptionpublic void pulse()
throws org.lsst.ccs.drivers.commons.DriverException
pulse in interface CCOBInterfaceorg.lsst.ccs.drivers.commons.DriverExceptionpublic void shutter()
throws org.lsst.ccs.drivers.commons.DriverException
shutter in interface CCOBInterfaceorg.lsst.ccs.drivers.commons.DriverExceptionpublic void startExposure()
throws org.lsst.ccs.drivers.commons.DriverException
startExposure in interface CCOBInterfaceorg.lsst.ccs.drivers.commons.DriverExceptionpublic boolean pollEnd()
throws org.lsst.ccs.drivers.commons.DriverException
pollEnd in interface CCOBInterfaceorg.lsst.ccs.drivers.commons.DriverExceptionpublic CCOBDataRead getAdcValues() throws org.lsst.ccs.drivers.commons.DriverException
getAdcValues in interface CCOBInterfaceorg.lsst.ccs.drivers.commons.DriverExceptionpublic double getAdcPhotoDiode()
throws org.lsst.ccs.drivers.commons.DriverException
getAdcPhotoDiode in interface CCOBInterfaceorg.lsst.ccs.drivers.commons.DriverExceptionpublic void ledOn(int led,
int on)
throws org.lsst.ccs.drivers.commons.DriverException
ledOn in interface CCOBInterfaceled - The LED number (1 - 4)on - The on state: non-0 = on, 0 = offorg.lsst.ccs.drivers.commons.DriverExceptionpublic boolean readButton(int button)
throws org.lsst.ccs.drivers.commons.DriverException
readButton in interface CCOBInterfacebutton - The button number (0 - 4)org.lsst.ccs.drivers.commons.DriverExceptionCopyright © 2018 LSST. All rights reserved.