public class KeyenceG5001
extends org.lsst.ccs.drivers.ascii.Ascii
| Modifier and Type | Field and Description |
|---|---|
static int |
DEFAULT_BAUD |
static String |
DEFAULT_DEV |
static double |
timeout |
| Constructor and Description |
|---|
KeyenceG5001()
Constructor * *
**************************************************************************
|
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Closes the connection.
|
void |
commmode() |
void |
genmode() |
int |
getnsamps() |
String |
getVersion()
Gets the KeyenceG5001 controller version
|
void |
laser(boolean laserstate)
Gets the KeyenceG5001 controller version
|
void |
open(String devname,
int port) |
void |
openftdi(String serialname,
int port)
Opens an FTDI connection.
|
void |
opennet(String netaddress,
int port)
Opens a Network connection.
|
void |
openserial(String serialname,
int port)
Opens an FTDI connection.
|
double |
read(int ikey)
Gets the KeyenceG5001 measurement for head ikey [jh-test ts5prod@ts5
bin]$ ./talkAscii.sh -c serial /dev/ttyS1 38400 Connected.
|
double[] |
readAll()
Gets the KeyenceG5001 measurement for head ikey [jh-test ts5prod@ts5
bin]$ ./talkAscii.sh -c serial /dev/ttyS1 38400 Connected.
|
String |
readKeyenceG5001()
Reads a response.
|
String |
readKeyenceG5001(String command)
Reads a response after writing a command.
|
void |
reset()
resets/clears the KeyenceG5001 errors
|
void |
setmeasmode(int mode)
setmeasmode: Sets the measurement mode.
|
void |
setmindispunit(int dspu)
setmindispunit:
(0: 0.01 mm, 1: 0.001 mm, 2: 0.0001 mm, 3: 0.00001 mm,
4: 0.1 um, 5: 0.01 um, 6: 0.001 um)
|
void |
setnsamps(int cycle)
setnsamps: Sets the number of samples to be averaged.
|
void |
writeKeyenceG5001(String command)
Writes a command.
|
public static double timeout
public static final int DEFAULT_BAUD
public static final String DEFAULT_DEV
public KeyenceG5001()
throws org.lsst.ccs.drivers.commons.DriverException
org.lsst.ccs.drivers.commons.DriverExceptionpublic void open(String devname, int port) throws org.lsst.ccs.drivers.commons.DriverException
org.lsst.ccs.drivers.commons.DriverExceptionpublic void openserial(String serialname, int port) throws org.lsst.ccs.drivers.commons.DriverException
org.lsst.ccs.drivers.commons.DriverExceptionpublic void openftdi(String serialname, int port) throws org.lsst.ccs.drivers.commons.DriverException
org.lsst.ccs.drivers.commons.DriverExceptionpublic void opennet(String netaddress, int port) throws org.lsst.ccs.drivers.commons.DriverException
org.lsst.ccs.drivers.commons.DriverExceptionpublic void close()
throws org.lsst.ccs.drivers.commons.DriverException
close in class org.lsst.ccs.drivers.ascii.Asciiorg.lsst.ccs.drivers.commons.DriverException - *************************************************************************public String getVersion() throws org.lsst.ccs.drivers.commons.DriverException
org.lsst.ccs.drivers.commons.DriverException - **************************************************************************public void laser(boolean laserstate)
throws org.lsst.ccs.drivers.commons.DriverException
org.lsst.ccs.drivers.commons.DriverException - **************************************************************************public void reset()
throws org.lsst.ccs.drivers.commons.DriverException
org.lsst.ccs.drivers.commons.DriverException - **************************************************************************public void commmode()
throws org.lsst.ccs.drivers.commons.DriverException
org.lsst.ccs.drivers.commons.DriverExceptionpublic void genmode()
throws org.lsst.ccs.drivers.commons.DriverException
org.lsst.ccs.drivers.commons.DriverExceptionpublic int getnsamps()
throws org.lsst.ccs.drivers.commons.DriverException
org.lsst.ccs.drivers.commons.DriverExceptionpublic void setnsamps(int cycle)
throws org.lsst.ccs.drivers.commons.DriverException
org.lsst.ccs.drivers.commons.DriverExceptionpublic void setmeasmode(int mode)
throws org.lsst.ccs.drivers.commons.DriverException
org.lsst.ccs.drivers.commons.DriverExceptionpublic void setmindispunit(int dspu)
throws org.lsst.ccs.drivers.commons.DriverException
org.lsst.ccs.drivers.commons.DriverExceptionpublic double read(int ikey)
throws org.lsst.ccs.drivers.commons.DriverException
org.lsst.ccs.drivers.commons.DriverException - **************************************************************************public double[] readAll()
throws org.lsst.ccs.drivers.commons.DriverException
org.lsst.ccs.drivers.commons.DriverException - **************************************************************************public void writeKeyenceG5001(String command) throws org.lsst.ccs.drivers.commons.DriverException
The - command to writeorg.lsst.ccs.drivers.commons.DriverException - *
*************************************************************************public String readKeyenceG5001() throws org.lsst.ccs.drivers.commons.DriverException
org.lsst.ccs.drivers.commons.DriverException - *************************************************************************public String readKeyenceG5001(String command) throws org.lsst.ccs.drivers.commons.DriverException
org.lsst.ccs.drivers.commons.DriverTimeoutException - *
*************************************************************************org.lsst.ccs.drivers.commons.DriverExceptionCopyright © 2018 LSST. All rights reserved.