public class TestKeyenceG5001 extends Object
| Modifier and Type | Field and Description |
|---|---|
protected KeyenceG5001 |
mydev |
| Constructor and Description |
|---|
TestKeyenceG5001() |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
void |
commmode() |
void |
genmode() |
String |
getnsamps() |
void |
measmode(int ikey,
int mode) |
void |
open() |
void |
opennet(String MyNetAddr,
int port) |
void |
openserial(String MyDevId,
int baud) |
String |
read(int ikey) |
void |
setnsamps(int nsamps) |
String |
version() |
protected KeyenceG5001 mydev
@Command(name="open",
description="Open a network connection to the Keyence using default addr")
public void open()
throws org.lsst.ccs.drivers.commons.DriverException
org.lsst.ccs.drivers.commons.DriverException@Command(name="openserial",
description="Open a serial connection to the Keyence")
public void openserial(@Argument(name="devId",description="The device ID of the device to open")
String MyDevId,
@Argument(name="baud",description="baud rate")
int baud)
throws org.lsst.ccs.drivers.commons.DriverException
org.lsst.ccs.drivers.commons.DriverException@Command(name="opennet",
description="Open a network connection to the Keyence")
public void opennet(@Argument(name="netaddr",description="The netaddr of the device to open - 130.199.47.172")
String MyNetAddr,
@Argument(name="port",description="port - 23")
int port)
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="commmode",
description="set to communications mode")
public void commmode()
throws Exception
Exception@Command(name="genmode",
description="set to general mode")
public void genmode()
throws Exception
Exception@Command(name="version",
description="get the version")
public String version()
throws Exception
Exception@Command(name="read",
description="get keyence head measurement")
public String read(@Argument(name="ikey",description="keyence head number")
int ikey)
throws Exception
Exception@Command(name="getnsamps",
description="get keyence head measurement")
public String getnsamps()
throws Exception
Exception@Command(name="setnsamps",
description="get keyence head measurement")
public void setnsamps(@Argument(name="nsamps",description="number of samples")
int nsamps)
throws Exception
ExceptionCopyright © 2018 LSST. All rights reserved.