public class TestKeyenceG5001
extends org.lsst.ccs.drivers.ascii.TestAscii
| Modifier and Type | Field and Description |
|---|---|
protected KeyenceG5001 |
mydev |
| Constructor and Description |
|---|
TestKeyenceG5001() |
| Modifier and Type | Method and Description |
|---|---|
void |
commmode() |
void |
genmode() |
String |
getmeasmode(int ikey) |
String |
getmindispunit(int ikey) |
String |
getnsamps() |
String |
readdistance() |
String |
readdistance(int ikey) |
String |
readkey(String command) |
void |
setmeasmode(int ikey,
int mode) |
void |
setmindispunit(int ikey,
int units) |
void |
setnsamps(int nsamps) |
void |
writekey(String command) |
protected KeyenceG5001 mydev
@Command(description="Set to communications mode.")
public void commmode()
throws org.lsst.ccs.drivers.commons.DriverException
org.lsst.ccs.drivers.commons.DriverException@Command(description="Set to general mode.")
public void genmode()
throws org.lsst.ccs.drivers.commons.DriverException
org.lsst.ccs.drivers.commons.DriverException@Command(description="Get a Keyence head measurement.") public String readdistance(@Argument(description="keyence head number") int ikey) throws org.lsst.ccs.drivers.commons.DriverException
org.lsst.ccs.drivers.commons.DriverException@Command(description="Get both Keyence head measurements.") public String readdistance() throws org.lsst.ccs.drivers.commons.DriverException
org.lsst.ccs.drivers.commons.DriverException@Command(description="Get the number of samples.") public String getnsamps() throws org.lsst.ccs.drivers.commons.DriverException
org.lsst.ccs.drivers.commons.DriverException@Command(description="Set the number of samples.")
public void setnsamps(@Argument(description="number of samples")
int nsamps)
throws org.lsst.ccs.drivers.commons.DriverException
org.lsst.ccs.drivers.commons.DriverException@Command(description="Get the measurement mode for a given sensor head.") public String getmeasmode(@Argument(description="keyence head number") int ikey) throws org.lsst.ccs.drivers.commons.DriverException
org.lsst.ccs.drivers.commons.DriverException@Command(description="Set measurement mode for a given sensor head.")
public void setmeasmode(@Argument(description="keyence head number")
int ikey,
@Argument(description="measurement mode")
int mode)
throws org.lsst.ccs.drivers.commons.DriverException
org.lsst.ccs.drivers.commons.DriverException@Command(description="Get the minimum display units for a given sensor head.") public String getmindispunit(@Argument(description="keyence head number") int ikey) throws org.lsst.ccs.drivers.commons.DriverException
org.lsst.ccs.drivers.commons.DriverException@Command(description="Set the minimum display units for a given sensor head.")
public void setmindispunit(@Argument(description="keyence head number")
int ikey,
@Argument(description="display units")
int units)
throws org.lsst.ccs.drivers.commons.DriverException
org.lsst.ccs.drivers.commons.DriverException@Command(name="readkey",
description="Read response to Keyence command, stripped of echoed command.")
public String readkey(@Argument(description="command to send")
String command)
throws org.lsst.ccs.drivers.commons.DriverException
org.lsst.ccs.drivers.commons.DriverException@Command(name="writekey",
description="Write Keyence command, read and test response.")
public void writekey(@Argument(description="command to send")
String command)
throws org.lsst.ccs.drivers.commons.DriverException
org.lsst.ccs.drivers.commons.DriverExceptionCopyright © 2018 LSST. All rights reserved.