Mosca
mosca.control.mosca.Mosca ¶
Mosca(
controller,
data_mgr=None,
spectrum_size=4096,
use_gevent=True,
**kwargs
)
Main class of the Mosca module.
Parameters:
-
controller
–instance of
mosca.control.controller.Controller
-
data_mgr
–instance of
mosca.control.datahandler.DataHandler
. If not provided, a new one will be instanciated. -
spectrum_size
(int
, default:4096
) –deprecated
-
use_gevent
–deprecated
spectrum_size is there for those controllers that can't read back anything...
acq_nb_points
property
writable
¶
acq_nb_points
Number of points to acquire.
See your specific controller documentation to see how/where the parameter is used.
acq_nb_triggers
property
writable
¶
acq_nb_triggers
Sets the duration of a point to a certain number of triggers.
See your specific controller documentation to see how/where the parameter is used.
acq_realtime
property
writable
¶
acq_realtime
Acquisition time, usualy used when run mode is set to REALTIME.
See your specific controller documentation to see how/where the parameter is used.
info
Property can be set as an int, str or enum value.
channels
class-attribute
instance-attribute
¶
channels = property(lambda self: detetector_channels())
stats_names
class-attribute
instance-attribute
¶
stats_names = property(lambda self: get_stats_names())
is_running ¶
is_running()
Returns True if an acquisition is in progress (polling, acquisition and data tasks).
prepare ¶
prepare(resume=False)
" Prepares acquisition using the current hardware configuration.
applying mosca parameters
apply_mosca
should be called before if you want to pass
the MOSCA parameters onto the Controller.
start_acq ¶
start_acq(resume=False, wait=False)
Starts an acquisition.
prerequisite
apply_mosca
(optional) and prepare
should have been called before.