amcontrolsApp EPICS application¶
amControls includes a complete example EPICS application, including:
A database file and corresponding autosave request file that contain the PVs required by the amcontrols.py base class.
OPI screens for medm
An example IOC application that can be used to run the above databases. The databases are loaded in the IOC with the example substitutions file, amcontrols.substitutions.
Base class files¶
The following tables list all of the records in the amControls.template file. These records are used by the amcontrols base class and so are required.
amControls.template¶
This is the database file that contains only the PVs required by the amcontrol.py base class amcontrols.template.
Example PV Prefixes¶
Record name |
Record type |
Description |
---|---|---|
$(P)$(R)CameraPVPrefix |
stringout |
Contains the prefix for the detector, e.g. 2bmbSP2: |
Example PV name¶
Record name |
Record type |
Description |
---|---|---|
$(P)$(R)ExamplePVName |
stringout |
Contains a PV name, e.g. 32id:m1 |
AM served PVs¶
Record name |
Record type |
Description |
---|---|---|
$(P)$(R)RayleighLength |
ao |
Contains the Rayleigh Length value |
$(P)$(R)BeamWaist |
ao |
Contains the BeamWaist value |
$(P)$(R)BeamWaistYPosition |
ao |
Contains the BeamWaistYPosition value |
$(P)$(R)DesiredBeamDiameter |
ao |
Contains the DesiredBeamDiameter value |
$(P)$(R)SampleHeight |
ao |
Contains the SampleHeight value |
Defocus select¶
Record name |
Record type |
Description |
---|---|---|
$(P)$(R)DefocusSelect |
mbbo |
Defocus direction selector, Positive or Negative |
AM status via Channel Access¶
Record name |
Record type |
Description |
---|---|---|
$(P)$(R)Go |
busy |
Setting this record to 1 starts a control action. |
$(P)$(R)AMStatus |
waveform |
This record will be updated with the scan status while scanning. |
$(P)$(R)ServerRunning |
bi |
This record will be |
medm files¶
amControls.adl¶
The following is the MEDM screen amControls.adl
during a scan.
The status information is updating.
amControlsEPICS_PVs.adl¶
The following is the MEDM screen amControlsEPICS_PVs.adl
.
If these PVs are changed amControls must be restarted.