dragonfly.implementations.rsa_daq_run_interface module¶
Some template vars¶
Members: RSAAcquisitionInterface Functions: Classes:
A service for uniform interfacing with the RSA
Summary¶
-
class
dragonfly.implementations.rsa_daq_run_interface.RSAAcquisitionInterface(daq_target=None, hf_lo_freq=None, instrument_setup_filename_prefix=None, mask_filename_prefix=None, trace_path=None, trace_metadata_path=None, metadata_endpoints=None, **kwargs)¶ Bases:
dragonfly.implementations.rsa_daq_run_interface.RSAAcquisitionInterfaceA DAQProvider for interacting with the RSA
Keyword Arguments: - daq_target (str) – name of DAQ provider in service to interface with
- hf_lo_freq (int) – hf local oscillator frequency in Hz
- instrument_setup_filename_prefix (str) – prefix for instrument setup file, not currently implemented
- mask_filename_prefix (str) – prefix for mask file name, not currently implemented
- trace_path (str) – path to where to save the trace dpt file (currently, a drive on claude mounted on the RSA via samba)
- trace_metadata_path (str) – path to where to save the metadata file (currently, a drive on claude)
- metadata_endpoints (list) – list of metadata endpoint names (str) whose properties we save
- daq_name (str) – name of the DAQ (used with the run table and in metadata)
- run_table_endpoint (str) – name of the endpoint providing an interface to the run table
- directory_path (str) – absolute path to “hot” storage (as seen from the DAQ software, not a network path)
- meta_data_directory_path (str) – path where the metadata file should be written
- filename_prefix (str) – prefix for unique filenames
- snapshot_state_target (str) – target to request snapshot from
- metadata_state_target (str) – multiget endpoint to Get() for system state
- metadata_target (str) – target to send metadata to
- name (str) – unique identifier across all dripline services (used to determine routing key)
- calibration (str||dict) – string use to process raw get result (with .format(raw)) or a dict to use for the same purpose where raw must be a key
- get_on_set (bool) – flag to toggle running ‘on_get’ after each ‘on_set’
daq_target (str): name of DAQ provider in service to interface with hf_lo_freq (int): hf local oscillator frequency in Hz instrument_setup_filename_prefix (str): prefix for instrument setup file, not currently implemented mask_filename_prefix (str): prefix for mask file name, not currently implemented trace_path (str): path to where to save the trace dpt file (currently, a drive on claude mounted on the RSA via samba) trace_metadata_path (str): path to where to save the metadata file (currently, a drive on claude) metadata_endpoints (list): list of metadata endpoint names (str) whose properties we save
-
acquisition_mode¶
-
add_endpoint(endpoint)¶
-
cmd(target, method_name, value=[], payload={}, lockout_key=False, timeout=None, ignore_retcode=False)¶
-
determine_RF_ROI()¶ Gets RF roi information from provider and saves it as run metadata
-
end_run()¶ Send command to the DAQ provider to stop data taking, do the post-run snapshot, and announce the end of the run.
-
endpoint(endpoint)¶
-
endpoint_names¶
-
endpoints¶
-
get(target, timeout=None, ignore_retcode=False)¶
-
handle_request(channel, method, properties, request)¶
-
is_locked¶
-
is_running¶ Returns RSA trigger status as boolean
-
list_endpoints()¶
-
lock(*args, **kwargs)¶
-
lockout_key¶
-
logging_status¶
-
on_cmd(*args, **kwargs)¶ WARNING! if you override this method, you must ensure you deal with lockout properly
-
on_config(attribute, value=None)¶ configure a property again
WARNING! if you override this method, you must ensure you deal with lockout properly
-
on_send(*commands)¶
-
on_set(*args, **kwargs)¶
-
ping(*args, **kwargs)¶ ignore all details and respond with an empty message
-
run_name¶
-
save_trace(trace, comment)¶ Saves trace of RSA
-
schedule_status¶
-
set(target, value, lockout_key=False, timeout=None, ignore_retcode=False)¶
-
set_condition(*args, **kwargs)¶ To actually do something inside a class, the set_condition should be implemented in the class itself.
-
start_run(run_name)¶ Do the prerun_gets and send the metadata to the recording associated computer
run_name (str): name of acquisition run
-
start_timed_run(run_name, run_time)¶ Starts timed acquisition run run_name (str): name of acquisition run run_time (int): length of run in seconds
-
unlock(*args, **kwargs)¶
End of modules condition
Data:
End of data condition