pcdsdevices.areadetector.cam.FeeOpalCam
- class pcdsdevices.areadetector.cam.FeeOpalCam(prefix='', *, name, kind=None, read_attrs=None, configuration_attrs=None, parent=None, **kwargs)
Opal camera used in the FEE for the PIMs.
Ophyd Device Components Attribute
Class
Suffix
Docs
Kind
Notes
configuration_names
ArrayAttributeSignalconfig
Inherited from
CamBasearray_counter
SynSignalnormal
Inherited from
CamBasearray_rate
EpicsSignalROFrameRatenormal
Inherited from
CamBaseasyn_io (ADComponent)
EpicsSignalAsynIO[AsynIO N/A asyn] asyn record to control debugging (asynTrace)
normal
Inherited from
CamBasend_attributes_file
SynSignalnormal
Inherited from
CamBasepool_alloc_buffers
SynSignalnormal
Inherited from
CamBasepool_free_buffers
SynSignalnormal
Inherited from
CamBasepool_max_buffers
SynSignalnormal
Inherited from
CamBasepool_max_mem
SynSignalnormal
Inherited from
CamBasepool_used_buffers
SynSignalnormal
Inherited from
CamBasepool_used_mem
SynSignalnormal
Inherited from
CamBaseport_name
SynSignalnormal
Inherited from
CamBaseacquire
EpicsSignalAcquirenormal
Inherited from
CamBaseacquire_period (ADComponent)
AcquirePeriod[AcquirePeriod r/w ao] Acquisition period between images
normal
Inherited from
CamBaseacquire_time (ADComponent)
AcquireTime[AcquireTime r/w ao] Acquisition time per image
normal
Inherited from
CamBasearray_callbacks
SynSignalnormal
Inherited from
CamBasearray_size
SynSignalnormal
Inherited from
CamBasearray_size_bytes
SynSignalnormal
Inherited from
CamBasebin_x (ADComponent)
BinX[BinX r/w longout] Binning in the X direction
normal
Inherited from
CamBasebin_y (ADComponent)
BinY[BinY r/w longout] Binning in the Y direction
normal
Inherited from
CamBasecolor_mode
SynSignalnormal
Inherited from
CamBasedata_type
SynSignalnormal
Inherited from
CamBasedetector_state (ADComponent)
EpicsSignalRODetectorState_RBV[DetectorState_RBV r/o mbbi] Acquisition status (ADStatus_t)
normal
Inherited from
CamBaseframe_type (ADComponent)
FrameType[FrameType r/w mbbo] Frame type (ADFrameType_t).
normal
Inherited from
CamBasegain (ADComponent)
Gain[Gain r/w ao] Detector gain
normal
Inherited from
CamBaseimage_mode (ADComponent)
ImageMode[ImageMode r/w mbbo] Image mode (ADImageMode_t).
normal
Inherited from
CamBasemanufacturer (ADComponent)
EpicsSignalROManufacturer_RBV[Manufacturer_RBV r/o stringin] Detector manufacturer name
normal
Inherited from
CamBasemax_size (DDC)
MaxSize(See below)
normal
Inherited from
CamBasemin_x (ADComponent)
MinX- [MinX r/w longout]
First pixel to read in the X direction.
0 is the first pixel on the detector.
normal
Inherited from
CamBasemin_y (ADComponent)
MinY- [MinY r/w longout]
First pixel to read in the Y direction. 0 is the first pixel on the detector.
normal
Inherited from
CamBasemodel (ADComponent)
EpicsSignalROModel_RBV[Model_RBV r/o stringin] Detector model name
normal
Inherited from
CamBasenum_exposures (ADComponent)
NumExposures[NumExposures r/w longout] Number of exposures per image to acquire
normal
Inherited from
CamBasenum_exposures_counter (ADComponent)
EpicsSignalRONumExposuresCounter_RBV- [NumExposuresCounter_RBV r/o longin]
Counter that increments by 1 each time an exposure is acquired for the current image. Driver resets to 0 when acquisition is started.
normal
Inherited from
CamBasenum_images (ADComponent)
NumImages[NumImages r/w longout] Number of images to acquire in one acquisition sequence
normal
Inherited from
CamBasenum_images_counter (ADComponent)
EpicsSignalRONumImagesCounter_RBV- [NumImagesCounter_RBV r/o longin]
Counter that increments by 1 each time an image is acquired in the current acquisition sequence. Driver resets to 0 when acquisition is started. Drivers can use this as the loop counter when ADImageMode=ADImageMultiple.
normal
Inherited from
CamBaseread_status (ADComponent)
EpicsSignalReadStatus- [ReadStatus r/w bo]
Write a 1 to this parameter to force a read of the detector status. Detector drivers normally read the status as required, so this is usually not necessary, but there may be some circumstances under which forcing a status read may be needed.
normal
Inherited from
CamBasereverse (DDC)
Reverse(See below)
normal
Inherited from
CamBaseshutter_close_delay (ADComponent)
ShutterCloseDelay[ShutterCloseDelay r/w ao] Time required for the shutter to actually close (ADShutterStatus_t)
normal
Inherited from
CamBaseshutter_close_epics (ADComponent)
EpicsSignalShutterCloseEPICS- [ShutterCloseEPICS r/w calcout]
This record writes its OVAL field to its OUT field when the EPICS shutter is told to close. The OCAL (and hence OVAL) and OUT fields are user-configurable, so any EPICS-controllable shutter can be used.
normal
Inherited from
CamBaseshutter_control (ADComponent)
ShutterControl[ShutterControl r/w bo] Shutter control for the selected (detector or EPICS) shutter (ADShutterStatus_t)
normal
Inherited from
CamBaseshutter_control_epics (ADComponent)
EpicsSignalShutterControlEPICS- [ShutterControlEPICS r/w bi]
This record processes when it receives a callback from the driver to open or close the EPICS shutter. It triggers the records below to actually open or close the EPICS shutter.
normal
Inherited from
CamBaseshutter_fanout (ADComponent)
EpicsSignalShutterFanoutnormal
Inherited from
CamBaseshutter_mode (ADComponent)
ShutterMode[ShutterMode r/w mbbo] Shutter mode (None, detector-controlled or EPICS-controlled) (ADShutterMode_t)
normal
Inherited from
CamBaseshutter_open_delay (ADComponent)
ShutterOpenDelay[ShutterOpenDelay r/w ao] Time required for the shutter to actually open (ADShutterStatus_t)
normal
Inherited from
CamBaseshutter_open_epics (ADComponent)
EpicsSignalShutterOpenEPICS- [ShutterOpenEPICS r/w calcout]
This record writes its OVAL field to its OUT field when the EPICS shutter is told to open. The OCAL (and hence OVAL) and OUT fields are user-configurable, so any EPICS-controllable shutter can be used.
normal
Inherited from
CamBaseshutter_status_epics (ADComponent)
EpicsSignalROShutterStatusEPICS_RBV- [ShutterStatusEPICS_RBV r/o mbbi]
Status of the EPICS-controlled shutter. This record should have its input link (INP) set to a record that contains the open/close status information for the shutter. The link should have the “CP” attribute, so this record processes when the input changes. The ZRVL field should be set to the value of the input link when the shutter is closed, and the ONVL field should be set to the value of the input link when the shutter is open.
normal
Inherited from
CamBaseshutter_status (ADComponent)
EpicsSignalROShutterStatus_RBV[ShutterStatus_RBV r/o bi] Status of the detector-controlled shutter (ADShutterStatus_t)
normal
Inherited from
CamBasesize (DDC)
Size(See below)
normal
Inherited from
CamBasestatus_message (ADComponent)
EpicsSignalROStatusMessage_RBV[StatusMessage_RBV r/o waveform] Status message string
normal
Inherited from
CamBasestring_from_server (ADComponent)
EpicsSignalROStringFromServer_RBV[StringFromServer_RBV r/o waveform] String from string-based vendor server to driver
normal
Inherited from
CamBasestring_to_server (ADComponent)
EpicsSignalROStringToServer_RBV[StringToServer_RBV r/o waveform] String from driver to string-based vendor server
normal
Inherited from
CamBasetemperature (ADComponent)
Temperature[Temperature r/w ao] Detector temperature
normal
Inherited from
CamBasetemperature_actual (ADComponent)
EpicsSignalTemperatureActualnormal
Inherited from
CamBasetime_remaining (ADComponent)
EpicsSignalROTimeRemaining_RBV- [TimeRemaining_RBV r/o ai]
Time remaining for current image. Drivers should update this value if they are doing the exposure timing internally, rather than in the detector hardware.
normal
Inherited from
CamBasetrigger_mode (ADComponent)
TriggerMode[TriggerMode r/w mbbo] Trigger mode (ADTriggerMode_t).
normal
Inherited from
CamBasemin_callback_time (ADComponent)
MinCallbackTimenormal
blocking_callbacks (ADComponent)
BlockingCallbacksnormal
enable_callbacks (ADComponent)
EnableCallbacksnormal
dropped_arrays (ADComponent)
DroppedArraysnormal
nd_array_address (ADComponent)
NDArrayAddressnormal
queue_size (ADComponent)
QueueSizenormal
nd_array_port (ADComponent)
NDArrayPortnormal
pixel_size (ADComponent)
EpicsSignalPixelSizenormal
exposure_mode (ADComponent)
EpicsSignalExposureModenormal
test_pattern (ADComponent)
EpicsSignalTestPatternnormal
trg_polarity (ADComponent)
EpicsSignalTrgPolaritynormal
queue_use (ADComponent)
EpicsSignalQueueUsenormal
queue_free_low (ADComponent)
EpicsSignalQueueFreeLownormal
queue_use_high (ADComponent)
EpicsSignalQueueUseHIGHnormal
queue_use_hihi (ADComponent)
EpicsSignalQueueUseHIHInormal
num_col (ADComponent)
EpicsSignalNumColnormal
num_cycles (ADComponent)
EpicsSignalNumCyclesnormal
num_row (ADComponent)
EpicsSignalNumRownormal
num_trains (ADComponent)
EpicsSignalNumTrainsnormal
queue_free (ADComponent)
EpicsSignalQueueFreenormal
status_word (ADComponent)
EpicsSignalStatusWordnormal
trg2_frame (ADComponent)
EpicsSignalTrg2Framenormal
bl_set (ADComponent)
EpicsSignalBL_SETnormal
fp_set (ADComponent)
EpicsSignalFP_SETnormal
full_col (ADComponent)
EpicsSignalFullColnormal
full_row (ADComponent)
EpicsSignalFullRownormal
ga_set (ADComponent)
EpicsSignalGA_SETnormal
it_set (ADComponent)
EpicsSignalIT_SETnormal
ssus (ADComponent)
EpicsSignalSSUSnormal
skip_col (ADComponent)
EpicsSignalSkipColnormal
skip_row (ADComponent)
EpicsSignalSkipRownormal
trg_code (ADComponent)
EpicsSignalTrgCodenormal
trg_delay (ADComponent)
EpicsSignalTrgDelaynormal
trg_width (ADComponent)
EpicsSignalTrgWidthnormal
baud (ADComponent)
EpicsSignalBaudnormal
evr_prescale (ADComponent)
EpicsSignalEvrPrescalenormal
v_out (ADComponent)
EpicsSignalVOutnormal
resp (ADComponent)
EpicsSignalRespnormal
cmd (ADComponent)
EpicsSignalCMDnormal
cmd_evr (ADComponent)
EpicsSignalCmdEVRnormal
cmd_free (ADComponent)
EpicsSignalCmdFreenormal
cmd_full (ADComponent)
EpicsSignalCmdFullnormal
cmd_init (ADComponent)
EpicsSignalCmdInitnormal
cmd_roi (ADComponent)
EpicsSignalCmdROInormal
cmd_t_ptn (ADComponent)
EpicsSignalCmdTPtnnormal
array_data (ADComponent)
EpicsSignalROArrayDatanormal
execution_time (ADComponent)
EpicsSignalROExecutionTime_RBVnormal
temp_f (ADComponent)
EpicsSignalROTempF_RBVnormal
bl (ADComponent)
EpicsSignalROBL_RBVnormal
bits_per_pixel (ADComponent)
EpicsSignalROBitsPerPixel_RBVnormal
fp (ADComponent)
EpicsSignalROFP_RBVnormal
ga (ADComponent)
EpicsSignalROGA_RBVnormal
err (ADComponent)
EpicsSignalROERR_RBVnormal
mid (ADComponent)
EpicsSignalROMID_RBVnormal
plugin_type (ADComponent)
EpicsSignalROPluginType_RBVnormal
sdk_version (ADComponent)
EpicsSignalROSDKVersion_RBVnormal
ufdt (ADComponent)
EpicsSignalROUFDT_RBVnormal
FeeOpalCam.max_size (DDC) Dynamic Device Components Attribute
Class
Suffix
Docs
Kind
Notes
max_size_x
EpicsSignalROMaxSizeX_RBVnormal
max_size_y
EpicsSignalROMaxSizeY_RBVnormal
FeeOpalCam.reverse (DDC) Dynamic Device Components Attribute
Class
Suffix
Docs
Kind
Notes
reverse_x
ReverseXnormal
reverse_y
ReverseYnormal
FeeOpalCam.size (DDC) Dynamic Device Components Attribute
Class
Suffix
Docs
Kind
Notes
size_x
SizeXnormal
size_y
SizeYnormal
Methods
- configure(d: Dict[str, Any]) Tuple[Dict[str, Any], Dict[str, Any]]
Configure the device for something during a run
This default implementation allows the user to change any of the
configuration_attrs. Subclasses might override this to perform additional input validation, cleanup, etc.- Parameters:
d (dict) – The configuration dictionary. To specify the order that the changes should be made, use an OrderedDict.
- Returns:
(old, new) tuple of dictionaries
Where old and new are pre- and post-configure configuration states.
- describe() OrderedDictType[str, Dict[str, Any]]
Provide schema and meta-data for
read().This keys in the
OrderedDictthis method returns must match the keys in theOrderedDictreturn byread().This provides schema related information, (ex shape, dtype), the source (ex PV name), and if available, units, limits, precision etc.
- Returns:
data_keys (OrderedDict) – The keys must be strings and the values must be dict-like with the
event_model.event_descriptor.data_keyschema.
- find_signal(text, use_re=False, case_sensitive=False, match_fcn=None, f=<_io.TextIOWrapper name='<stdout>' mode='w' encoding='utf-8'>)
Search through the signal docs on this detector for the string text
- Parameters:
text (str) – Text to find
use_re (bool, optional) – Use regular expressions
case_sensitive (bool, optional) – Case sensitive search
match_fcn (callable, optional) – Function to call when matches are found Defaults to a function that prints matches to f
f (file-like, optional) – File-like object that the default match function prints to (Defaults to sys.stdout)
- get(**kwargs)
Get the value of all components in the device
Keyword arguments are passed onto each signal.get(). Components beginning with an underscore will not be included.
- get_asyn_digraph()
Get the directed graph of the ASYN ports
- Returns:
G (networkx.DiGraph) – Directed graph of pipelines
port_map (dict) – Mapping between port_name and ADBase objects
- get_asyn_port_dictionary()
Return port name : component map
- Returns:
port_map (dict) – Mapping between port_name and ADBase objects
- get_plugin_by_asyn_port(port_name)
Get the plugin which has the given asyn port name
- Parameters:
port_name (str) – The port name to search for
- Returns:
ret (ADBase or None) – Either the requested plugin or None if not found
- missing_plugins()
Find missing ports
- read() OrderedDictType[str, Dict[str, Any]]
Read data from the device.
This method is expected to be as instantaneous as possible, with any substantial acquisition time taken care of in
trigger().The
OrderedDictreturned by this method must have identical keys (in the same order) as theOrderedDictreturned bydescribe().By convention, the first key in the return is the ‘primary’ key and maybe used by heuristics in
bluesky.The values in the ordered dictionary must be dict (-likes) with the keys
{'value', 'timestamp'}. The'value'may have any type, the timestamp must be a float UNIX epoch timestamp in UTC.- Returns:
data (OrderedDict) – The keys must be strings and the values must be dict-like with the keys
{'value', 'timestamp'}
- read_configuration() OrderedDictType[str, Dict[str, Any]]
Dictionary mapping names to value dicts with keys: value, timestamp
To control which fields are included, change the Component kinds on the device, or modify the
configuration_attrslist.
- stop(*, success=False)
Stop the Device and all (instantiated) subdevices
- summary()
- trigger() StatusBase
Trigger the device and return status object.
This method is responsible for implementing ‘trigger’ or ‘acquire’ functionality of this device.
If there is an appreciable time between triggering the device and it being able to be read (via the
read()method) then this method is also responsible for arranging that theStatusBaseobject returned by this method is notified when the device is ready to be read.If there is no delay between triggering and being readable, then this method must return a
StatusBaseobject which is already completed.- Returns:
status (StatusBase) –
StatusBaseobject which will be marked as complete when the device is ready to be read.
- validate_asyn_ports()
Validate that all components of pipeline are known
- Raises:
RuntimeError – If there any input ports to known plugins where the source is not known to ophyd
- visualize_asyn_digraph(ax=None, *args, **kwargs)
This generates a figure showing the current asyn port layout.
This method generates a plot showing all of the currently enabled Areadetector plugin asyn ports and their relationships. The current ports and relationships are found using self.get_asyn_digraph.
- Parameters:
ax (matplotlib axes) – if None (default) then a new figure is created otherwise it is plotted on the specified axes.
*args (networkx.draw_networkx args and kwargs.) – For the allowed args and kwargs see the networkx.draw_networkx documentation
**kwargs (networkx.draw_networkx args and kwargs.) –
For the allowed args and kwargs see the networkx.draw_networkx documentation
Attributes
- ad_root
- configuration_attrs
- connected
- hints
- kind