public class MetrologySubSys extends Object implements org.lsst.ccs.framework.HasLifecycle, org.lsst.ccs.monitor.Monitor.AlarmHandler, org.lsst.ccs.messaging.StatusMessageListener
| Modifier and Type | Field and Description |
|---|---|
static String |
BROADCAST_TASK |
| Constructor and Description |
|---|
MetrologySubSys() |
| Modifier and Type | Method and Description |
|---|---|
void |
abortMotion()
Plot the scan data
|
void |
build()
Initializes the aerotech subsystem.
|
void |
doreps(String filename,
int nreps,
double period)
Perform repetitions - repeated measurements at the same positions
|
int |
getDisp_mode()
Gets displacement summing mode
|
MetrologyFullState |
getFullState()
Gets the full state of the aerotech module.
|
int |
getState()
Gets the operating state word.
|
void |
noStepScan(String filename)
Perform smooth scan
|
void |
noStepScan(String filename,
double startx,
double stopx,
double dx,
double starty,
double stopy,
double dy,
double z)
Perform scan
|
void |
noStepScan(String filename,
double startx,
double stopx,
double dx,
double starty,
double stopy,
double dy,
double z,
double speed)
Perform scan
|
void |
onStatusMessage(org.lsst.ccs.bus.messages.StatusMessage msg)
Handles received status messages
|
protected void |
periodicBroadcast()
Performs periodic trending data broadcast.
|
void |
plotscan()
Plot the scan data
|
void |
plotscan(double rotx,
double roty,
double rotz) |
void |
postInit() |
void |
postStart() |
String |
printFullState()
Prints the full state of aerotech
|
boolean |
processAlarm(int event,
int parm,
String cause,
String alarmName)
Handles alarm events.
|
void |
publishState()
Publishes the state of the aerotech This is intended to be called
whenever any element of the state is changed.
|
void |
resetTrip() |
void |
saveConfiguration()
Saves the configuration data.
|
void |
scan()
Perform scan
|
void |
scan(String filename,
double startx,
double stopx,
double dx,
double starty,
double stopy,
double dy,
double z)
Perform scan
|
void |
scan(String filename,
double startx,
double stopx,
double dx,
double starty,
double stopy,
double dy,
double z,
double speed)
Perform scan
|
void |
scanfl(String filename)
Perform scan to a specified file
|
void |
scanPL(String filename)
Perform PointList scan
|
void |
scanPL(String filename,
double speed)
Perform PointList scan
|
protected Object |
sendSyncMetrologyCommand(String name,
Object... params) |
void |
setCfgState(int cstate) |
void |
setCfgStateByName(String selectedstate) |
void |
setDisp_mode(int disp_mode)
Sets displacement summing mode
|
void |
setState(int state)
Sets the Metrology Subsystem state word.
|
void |
soundAlarm() |
void |
soundBleep() |
void |
start() |
void |
startSubSys()
startSubSys:
|
void |
stopSubSys()
stopSubSys: put TS sub system into the ready state
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitpublic static final String BROADCAST_TASK
@Command(type=QUERY,
description="scan a region")
public void scan()
throws org.lsst.ccs.drivers.commons.DriverException,
InterruptedException
org.lsst.ccs.drivers.commons.DriverExceptionInterruptedException@Command(type=QUERY,
description="scan a region to the specified file")
public void scanfl(@Argument(name="filename",description="filename for storing measurement (.csv)")
String filename)
throws org.lsst.ccs.drivers.commons.DriverException,
InterruptedException
filename - org.lsst.ccs.drivers.commons.DriverExceptionInterruptedException@Command(type=QUERY,
description="scan a region")
public void scan(@Argument(name="filename",description="filename for storing measurement (.csv)")
String filename,
@Argument(name="startx",description="x start position")
double startx,
@Argument(name="stopx",description="x stop position")
double stopx,
@Argument(name="dx",description="x step size")
double dx,
@Argument(name="starty",description="y start position")
double starty,
@Argument(name="stopy",description="y stop position")
double stopy,
@Argument(name="dy",description="y step size")
double dy,
@Argument(name="z",description="z position")
double z)
throws org.lsst.ccs.drivers.commons.DriverException,
InterruptedException
filename - startx - stopx - starty - stopy - dx - dy - z - org.lsst.ccs.drivers.commons.DriverExceptionInterruptedException@Command(type=QUERY,
description="scan a region")
public void scan(@Argument(name="filename",description="filename for storing measurement (.csv)")
String filename,
@Argument(name="startx",description="x start position")
double startx,
@Argument(name="stopx",description="x stop position")
double stopx,
@Argument(name="dx",description="x step size")
double dx,
@Argument(name="starty",description="y start position")
double starty,
@Argument(name="stopy",description="y stop position")
double stopy,
@Argument(name="dy",description="y step size")
double dy,
@Argument(name="z",description="z position")
double z,
@Argument(name="speed",description="speed")
double speed)
throws org.lsst.ccs.drivers.commons.DriverException,
InterruptedException
filename - startx - stopx - starty - stopy - dx - dy - z - speed - org.lsst.ccs.drivers.commons.DriverExceptionInterruptedException@Command(type=QUERY,
description="scan a region")
public void scanPL(@Argument(name="filename",description="filename for storing measurement (.csv)")
String filename)
throws org.lsst.ccs.drivers.commons.DriverException,
InterruptedException
filename - org.lsst.ccs.drivers.commons.DriverExceptionInterruptedException@Command(type=QUERY,
description="scan a region")
public void scanPL(@Argument(name="filename",description="filename for storing measurement (.csv)")
String filename,
@Argument(name="speed",description="speed")
double speed)
throws org.lsst.ccs.drivers.commons.DriverException,
InterruptedException
filename - speed - org.lsst.ccs.drivers.commons.DriverExceptionInterruptedException@Command(type=QUERY,
description="scan a region")
public void noStepScan(@Argument(name="filename",description="filename for storing measurement (.csv)")
String filename)
throws org.lsst.ccs.drivers.commons.DriverException,
InterruptedException
filename - org.lsst.ccs.drivers.commons.DriverExceptionInterruptedException@Command(type=QUERY,
description="scan a region")
public void noStepScan(@Argument(name="filename",description="filename for storing measurement (.csv)")
String filename,
@Argument(name="startx",description="x start position")
double startx,
@Argument(name="stopx",description="x stop position")
double stopx,
@Argument(name="dx",description="x step size")
double dx,
@Argument(name="starty",description="y start position")
double starty,
@Argument(name="stopy",description="y stop position")
double stopy,
@Argument(name="dy",description="y step size")
double dy,
@Argument(name="z",description="z position")
double z)
throws org.lsst.ccs.drivers.commons.DriverException,
InterruptedException
filename - startx - stopx - starty - stopy - dx - dy - z - org.lsst.ccs.drivers.commons.DriverExceptionInterruptedException@Command(type=QUERY,
description="scan a region")
public void noStepScan(@Argument(name="filename",description="filename for storing measurement (.csv)")
String filename,
@Argument(name="startx",description="x start position")
double startx,
@Argument(name="stopx",description="x stop position")
double stopx,
@Argument(name="dx",description="x step size")
double dx,
@Argument(name="starty",description="y start position")
double starty,
@Argument(name="stopy",description="y stop position")
double stopy,
@Argument(name="dy",description="y step size")
double dy,
@Argument(name="z",description="z position")
double z,
@Argument(name="speed",description="speed")
double speed)
throws org.lsst.ccs.drivers.commons.DriverException,
InterruptedException
filename - startx - stopx - starty - stopy - dx - dy - z - speed - org.lsst.ccs.drivers.commons.DriverExceptionInterruptedException@Command(type=QUERY,
description="do repeated measurements at the same positions")
public void doreps(@Argument(name="filename",description="filename for storing measurement ")
String filename,
@Argument(name="nreps",description="number of repetitions")
int nreps,
@Argument(name="period",description="period in seconds")
double period)
throws org.lsst.ccs.drivers.commons.DriverException
filename - nreps - period - org.lsst.ccs.drivers.commons.DriverException@Command(description="plot the scan data")
public void plotscan()
throws org.lsst.ccs.drivers.commons.DriverException
org.lsst.ccs.drivers.commons.DriverException@Command(description="abort motion")
public void abortMotion()
throws org.lsst.ccs.drivers.commons.DriverException
org.lsst.ccs.drivers.commons.DriverException@Command(description="plot the scan data")
public void plotscan(@Argument(name="rotation_x",description="rotation about the x axis")
double rotx,
@Argument(name="rotation_y",description="rotation about the y axis")
double roty,
@Argument(name="rotation_z",description="rotation about the z axis")
double rotz)
throws org.lsst.ccs.drivers.commons.DriverException
org.lsst.ccs.drivers.commons.DriverExceptionpublic void build()
build in interface org.lsst.ccs.framework.HasLifecyclepublic void postInit()
postInit in interface org.lsst.ccs.framework.HasLifecyclepublic void postStart()
postStart in interface org.lsst.ccs.framework.HasLifecyclepublic void start()
start in interface org.lsst.ccs.framework.HasLifecycleprotected void periodicBroadcast()
public boolean processAlarm(int event,
int parm,
String cause,
String alarmName)
processAlarm in interface org.lsst.ccs.monitor.Monitor.AlarmHandlerevent - parm - @Command(name="soundAlarm") public void soundAlarm()
@Command(name="soundBleep") public void soundBleep()
@Command(name="resetTrip",
description="reset trips etc...")
public void resetTrip()
@Command(type=ACTION,
description="Start the metrology subsystem")
public void startSubSys()
throws Exception
Exception@Command(name="stopsubsys",
type=ACTION,
description="Stop and set the Aerotech sub system into the ready state")
public void stopSubSys()
@Command(name="saveconfig",
type=ACTION,
description="Saves the current configuration")
public void saveConfiguration()
throws IOException
IOException@Command(type=QUERY,
description="Gets the full aerotech state")
public MetrologyFullState getFullState()
@Command(name="printfullstate",
type=QUERY,
description="Prints the full aerotech state")
public String printFullState()
@Command(name="getstate",
type=QUERY,
description="Returns the current value of the TS state")
public int getState()
@Command(description="Sets the configuration state.") public void setCfgState(int cstate)
@Command(description="Sets the configuration state.") public void setCfgStateByName(String selectedstate)
@Command(name="setstate",
type=QUERY,
description="sets the current value of the TS state")
public void setState(int state)
state - @Command(name="publishState",
type=QUERY,
description="publishes the Aerotech state")
public void publishState()
public void onStatusMessage(org.lsst.ccs.bus.messages.StatusMessage msg)
onStatusMessage in interface org.lsst.ccs.messaging.StatusMessageListenermsg - @Command(type=QUERY,
description="get displacememt summing mode")
public int getDisp_mode()
@Command(type=QUERY,
description="set displacememt summing mode")
public void setDisp_mode(int disp_mode)
disp_mode - Copyright © 2018 LSST. All rights reserved.