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
|
MetrologyFullState |
getFullState()
Gets the full state of the aerotech module.
|
int |
getState()
Gets the operating state word.
|
MetrologyConfig |
getTeststandc() |
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)
Perform scan
|
void |
noStepScan(String filename,
double startx,
double stopx,
double dx,
double starty,
double stopy,
double dy,
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)
Perform scan
|
void |
scan(String filename,
double startx,
double stopx,
double dx,
double starty,
double stopy,
double dy,
double speed)
Perform scan
|
void |
scanfl(String filename)
Perform scan to a specified file
|
protected Object |
sendSyncMetrologyCommand(String name,
Object... params) |
void |
setCfgState(int cstate) |
void |
setCfgStateByName(String selectedstate) |
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.
|
getComponentTree, getEnvironment, getName, getNObserverThreads, getObservables, getSubsystem, getTickMillis, init, listens, postStart, processUpdate, sendSignal, sendSignalWithTimeLimit, setEnvironment, setName, 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, getCheckedValueFromConfiguration, getChildren, getComponentByName, getParent, getParentObject, getSubmittedChanges, isParameterConfigurable, notifyChange, notifyChangeWithoutPreliminaryChecks, 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
org.lsst.ccs.drivers.commons.DriverException@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
filename - org.lsst.ccs.drivers.commons.DriverException@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)
throws org.lsst.ccs.drivers.commons.DriverException
startx - stopx - starty - stopy - dx - dy - org.lsst.ccs.drivers.commons.DriverException@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="speed",description="speed")
double speed)
throws org.lsst.ccs.drivers.commons.DriverException
startx - stopx - starty - stopy - dx - dy - org.lsst.ccs.drivers.commons.DriverException@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
filename - org.lsst.ccs.drivers.commons.DriverException@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)
throws org.lsst.ccs.drivers.commons.DriverException
filename - startx - stopx - starty - stopy - dx - dy - org.lsst.ccs.drivers.commons.DriverException@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="speed",description="speed")
double speed)
throws org.lsst.ccs.drivers.commons.DriverException
filename - startx - stopx - starty - stopy - dx - dy - speed - org.lsst.ccs.drivers.commons.DriverException@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.Configurablepublic 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="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()
public MetrologyConfig getTeststandc()
@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.AgentPresenceListenerCopyright © 2016 LSST. All rights reserved.