
public class MetrologySubSys
extends org.lsst.ccs.framework.Module
implements org.lsst.ccs.subsystem.monitor.Monitor.AlarmHandler, org.lsst.ccs.messaging.StatusMessageListener, org.lsst.ccs.messaging.AgentPresenceListener
| Constructor and Description |
|---|
MetrologySubSys(String name,
int tickMillis,
String configName)
Main constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
abortMotion()
/**
Plot the scan data
|
void |
connecting(org.lsst.ccs.bus.data.AgentInfo agent) |
void |
disconnecting(org.lsst.ccs.bus.data.AgentInfo agent) |
void |
doreps(String filename,
int nreps,
double period)
Perform repetitions - repeated measurements at the same positions
|
int |
getDisp_mode() |
MetrologyFullState |
getFullState()
Gets the full state of the aerotech module.
|
int |
getState()
Gets the operating state word.
|
void |
initModule()
Initializes the aerotech subsystem.
|
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) |
void |
plotscan()
/**
Plot the scan data
|
void |
plotscan(double rotx,
double roty,
double rotz) |
String |
printFullState()
Prints the full state of aerotech * *
**************************************************************************
|
void |
processAlarm(int event,
int parm)
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 |
reinit()
reinit devices
|
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) |
void |
setState(int state)
Sets the Metrology Subsystem state word.
|
void |
setTickMillis(int value)
Sets the tick period.
|
void |
Sleep(double secs)
Sleep - what a waste
**************************************************************************
|
void |
soundAlarm() |
void |
soundBleep() |
void |
start() |
void |
startSubSys()
startSubSys:
**************************************************************************
|
void |
stopSubSys()
stopSubSys: put TS sub system into the ready state * * @param value The
enabled state value to set: 0 = off, ~0 = on.
|
void |
tick()
Performs periodic trending data broadcast.
|
getNObserverThreads, getObservables, getTickMillis, init, listens, processUpdate, sendSignal, sendSignalWithTimeLimit, setNObserverThreads, setObservables, shutdownNow, signal, startTicking, updateaddObserver, clearChanged, countObservers, deleteObserver, deleteObservers, hasChanged, notifyObservers, notifyObservers, setChangedclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitchange, dropSubmittedChanges, getChildren, getComponentByName, getEnvironment, getParent, getParentObject, getSubmittedChanges, isParameterConfigurable, printConfigurableParameters, setBulkParameter, submitChange, submitChanges, validateBulkChange@Command(type=ACTION, description="reinit devices") public void reinit()
@Command(type=QUERY, description="scan a region") public void scan() throws org.lsst.ccs.drivers.commons.DriverException, InterruptedException, ExecutionException
org.lsst.ccs.drivers.commons.DriverExceptionInterruptedExceptionExecutionException@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, ExecutionException
filename - org.lsst.ccs.drivers.commons.DriverExceptionInterruptedExceptionExecutionException@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, ExecutionException
startx - stopx - starty - stopy - dx - dy - org.lsst.ccs.drivers.commons.DriverExceptionInterruptedExceptionExecutionException@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="dy",description="z position") double z, @Argument(name="speed",description="speed") double speed) throws org.lsst.ccs.drivers.commons.DriverException, InterruptedException, ExecutionException
startx - stopx - starty - stopy - dx - dy - org.lsst.ccs.drivers.commons.DriverExceptionInterruptedExceptionExecutionException@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, ExecutionException
org.lsst.ccs.drivers.commons.DriverExceptionInterruptedExceptionExecutionException@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, ExecutionException
org.lsst.ccs.drivers.commons.DriverExceptionInterruptedExceptionExecutionException@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, ExecutionException
filename - org.lsst.ccs.drivers.commons.DriverExceptionInterruptedExceptionExecutionException@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, ExecutionException
filename - startx - stopx - starty - stopy - dx - dy - org.lsst.ccs.drivers.commons.DriverExceptionInterruptedExceptionExecutionException@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, ExecutionException
filename - startx - stopx - starty - stopy - dx - dy - speed - org.lsst.ccs.drivers.commons.DriverExceptionInterruptedExceptionExecutionException@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
startx - nreps - 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 initModule()
initModule in class org.lsst.ccs.framework.Modulepublic void start()
start in interface org.lsst.ccs.framework.HasLifecyclepublic void tick()
tick in class org.lsst.ccs.framework.Module@Command(type=ACTION, description="Sets the tick interval") public void setTickMillis(int value)
setTickMillis in class org.lsst.ccs.framework.Modulevalue - public void processAlarm(int event,
int parm)
processAlarm in interface org.lsst.ccs.subsystem.monitor.Monitor.AlarmHandler@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)
public void Sleep(double secs)
@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.StatusMessageListenerpublic void connecting(org.lsst.ccs.bus.data.AgentInfo agent)
connecting in interface org.lsst.ccs.messaging.AgentPresenceListenerpublic void disconnecting(org.lsst.ccs.bus.data.AgentInfo agent)
disconnecting in interface org.lsst.ccs.messaging.AgentPresenceListener@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 © 2017 LSST. All rights reserved.