
public class KeyenceG5001DeviceSim extends KeyenceG5001Device
failedToInitialize, isconnected, kstate, lastRead| Constructor and Description |
|---|
KeyenceG5001DeviceSim() |
| Modifier and Type | Method and Description |
|---|---|
void |
commmode()
Sets communications mode.
|
void |
genmode()
Sets general mode.
|
int |
getcycles()
Returns the sampling cycle setting being used for the displacement measurements
|
int |
getmeasmode(int ikey)
Gets the sensing mode
|
protected void |
initialize()
Initializes the device.
|
String |
keyenceChat(String command)
Generic write operation followed by a read.
|
void |
laser(boolean laserstate)
Turns laser on/off
|
double[] |
readAll()
Reads the distances from the Keyence heads
|
void |
setcycles(int cycles)
Sets the sampling cycle mode to be used for the displacement measurements
|
void |
setmeasmode(int ikey,
int mode)
Sets the sensing mode
|
void |
setmindispunit(int dspu)
Sets the minimum display unit
|
checkChannel, close, getError, getLastRead, getState, initDevice, read, readChannel, setStateaddLine, checkHardware, checkHwLine, checkLine, checkOnline, checkTimeout, configure, disable, dropChannel, enable, getDeviceMonitorUpdateTasks, getFullName, getGroupForChannel, getMonitorUpdateTasksForChannels, getName, getOutputLines, getPath, init, initChannel, initChannel, initSensors, isHwLineSet, isLineSet, isOnline, isTimeout, readChannel, readChannelGroup, readChannelGroup, readChannelNow, setDisabled, setHwLine, setLine, setLineWarm, setOnline, setOutputLines, testOnlineclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetLast_readprotected void initialize()
initialize in class KeyenceG5001Device@Command(name="getcycles", description="get sampling cycle setting") public int getcycles()
getcycles in interface KeyenceDevicegetcycles in class KeyenceG5001Device@Command(name="setcycles", description="set number of cycles") public void setcycles(@Argument(name="cycles",description="sampling cycle mode") int cycles)
setcycles in interface KeyenceDevicesetcycles in class KeyenceG5001Device@Command(name="getmeasmode", description="get mode") public int getmeasmode(@Argument(name="ikey",description="keyence head number") int ikey)
getmeasmode in interface KeyenceDevicegetmeasmode in class KeyenceG5001Device@Command(name="setmeasmode", description="set mode") public void setmeasmode(@Argument(name="ikey",description="keyence head number") int ikey, @Argument(name="mode",description="mode number") int mode)
setmeasmode in interface KeyenceDevicesetmeasmode in class KeyenceG5001Devicemode - 0: Normal,
1: Translucent object,
2: Transparent object,
3: Transparent object 2,
4: Semi opaque@Command(name="setmindispunit", description="set mode") public void setmindispunit(@Argument(name="dspu",description="(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)") int dspu)
setmindispunit in interface KeyenceDevicesetmindispunit in class KeyenceG5001Devicedspu - @Command(name="readAll", description="get keyence head measurement") public double[] readAll()
readAll in interface KeyenceDevicereadAll in class KeyenceG5001Device@Command(description="communications mode") public void commmode()
commmode in interface KeyenceDevicecommmode in class KeyenceG5001Device@Command(description="general mode") public void genmode()
genmode in interface KeyenceDevicegenmode in class KeyenceG5001Device@Command(description="sets lasers on/off") public void laser(@Argument(name="laserstate",description="false for laser off / true for on") boolean laserstate)
laser in interface KeyenceDevicelaser in class KeyenceG5001Devicelaserstate - @Command(description="generic write") public String keyenceChat(@Argument(name="command",description="The raw Keyence command") String command)
keyenceChat in class KeyenceG5001Devicecommand - Copyright © 2021 LSST. All rights reserved.