Utility Modules¶
Introduction¶
Utility modules are used within each main modules of PyMoDAQ but can also be used as building blocks for custom application. In that sense, all Data Viewers and even DAQ Viewer and DAQ Move can be used as building blocks to control actuators and display datas in a custom application.
H5Browser¶
The h5 browser is an object that helps browsing of datas and metadatas. It asks you to select a h5 file and then display a window such as Fig. 28. Depending the element of the file you are selecting in the h5 file tree, various metadata can be displayed, such as scan settings or module settings at the time of saving. When double clicking on data type entries in the tree, the data viewer (type ND Viewer that can display data dimensionality up to 4)
Fig. 28 h5 browser to explore saved datas
Preset manager¶
The Preset manager is an object that helps generate, modify and save preset modes of DAQ Scan. A preset is a set of actuators and detectors represented in a tree like structure, see Fig. 29
Fig. 29 An example of a preset creation named preset_default containing one DAQ_Move module and one detector module and just about to select a second detector from the list of all available detector plugins.
Each added module load on the fly its settings so that one can set them to our need, for instance COM port selection, channel activation, exposure time… Every time a preset is created, it is them loadable. The init? boolean specifies if DAQ_Scan should try to initialize the hardware while charging the modules.
Overshoot manager¶
The Overshoot manager is used to configure actions (for instance the absolute positionning of one or more actuators, such as a beam block to stop a laser eam) when a detected value (from a running detector module) gets out of range with respect to some predefined bounds. It is valid in the framework of the DAQ_Scan module, when actuators and detectors have been activated.
Fig. 30 An example of an overshoot creation named overshoot_default (and corresponding xml file) containing one listening detector and 2 actuators to be activated.