public class TestN69911 extends Object
| Modifier and Type | Field and Description |
|---|---|
protected NewportLamp |
mydev |
| Constructor and Description |
|---|
TestN69911() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
checkerrorcommand(String err) |
boolean |
checkerrorcomplete(String err) |
void |
close() |
boolean |
getcurrentmode() |
String |
geterror() |
boolean |
getlampon() |
boolean |
getpowermode() |
boolean |
getState() |
String |
getstatus() |
void |
open(org.lsst.ccs.drivers.commons.DriverConstants.ConnType type,
String MyDevId) |
String |
openFtdi(String host,
int baud) |
double |
readamps() |
double |
readcurrentlimit() |
double |
readcurrentpreset() |
String |
readident() |
int |
readpowerlim() |
int |
readpowerpreset() |
double |
readwatts() |
void |
setcurrentlimit(double a) |
void |
setcurrentpreset(double a) |
void |
setpowerlimit(int p) |
void |
setpowerpreset(int p) |
void |
setstate(boolean on) |
protected NewportLamp mydev
@Command(name="open",
description="Open a device for use")
public void open(@Argument(name="connType",description="type of connection FTDI, SERIAL")
org.lsst.ccs.drivers.commons.DriverConstants.ConnType type,
@Argument(name="devId",description="The device ID of the device to open")
String MyDevId)
throws org.lsst.ccs.drivers.commons.DriverException
org.lsst.ccs.drivers.commons.DriverException@Command(name="openftdi",
description="Open FTDI connection to device")
public String openFtdi(@Argument(name="serialname",description="FTDI id")
String host,
@Argument(name="baud",description="baud")
int baud)
throws org.lsst.ccs.drivers.commons.DriverException
org.lsst.ccs.drivers.commons.DriverException@Command(name="close",
description="Close the device")
public void close()
throws Exception
Exception@Command(name="getState",
description="Return On(true) or Off(false)")
public boolean getState()
throws Exception
Exception@Command(name="readamps",
description="Read amps ")
public double readamps()
throws Exception
Exception@Command(name="readwatts",
description="Read watts ")
public double readwatts()
throws Exception
Exception@Command(name="readcurrentpreset",
description="Read Current Preset ")
public double readcurrentpreset()
throws Exception
Exception@Command(name="setcurrentpreset",
description="set Current Preset ")
public void setcurrentpreset(@Argument(name="current",description="current preset value")
double a)
throws Exception
Exception@Command(name="readcurrentlimit",
description="Read Current Limit ")
public double readcurrentlimit()
throws Exception
Exception@Command(name="setcurrentlimit",
description="set Current Limit ")
public void setcurrentlimit(@Argument(name="current",description="current limit value")
double a)
throws Exception
Exception@Command(name="readpowerpreset",
description="Read Power Preset ")
public int readpowerpreset()
throws Exception
Exception@Command(name="setpowerpreset",
description="set Power Preset ")
public void setpowerpreset(@Argument(name="power",description="power preset value")
int p)
throws Exception
Exception@Command(name="readpowerlimit",
description="Read Power Limit ")
public int readpowerlim()
throws Exception
Exception@Command(name="setpowerlimit",
description="set Power Limit ")
public void setpowerlimit(@Argument(name="power",description="power limit value")
int p)
throws Exception
Exception@Command(name="readident",
description="Read ident")
public String readident()
throws Exception
Exception@Command(name="getstatus",
description="Read power state of lamp")
public String getstatus()
throws Exception
Exception@Command(name="getlampon",
description="Returns true if lamp on status bit is high")
public boolean getlampon()
throws Exception
Exception@Command(name="getpowermode",
description="Returns true if power mode status bit is on")
public boolean getpowermode()
throws Exception
Exception@Command(name="getcurrentmode",
description="Returns true if current mode status bit is on")
public boolean getcurrentmode()
throws Exception
Exception@Command(name="geterror",
description="Returns full error byte in HEX")
public String geterror()
throws Exception
Exception@Command(name="checkerrorcommand",
description="Parses error string")
public boolean checkerrorcommand(String err)
throws Exception
Exception@Command(name="checkerrorcomplete",
description="Parses error string")
public boolean checkerrorcomplete(String err)
throws Exception
ExceptionCopyright © 2018 LSST. All rights reserved.