Acquisition
Sardana provides advanced solutions for data acquisition. In the data acquisition process controlled by sardana there is always involved at least one experimental channel.
The data acquisition model is built from two layers of abstraction. The experimental channels (counter/timer, 0D, 1D, 2D and pseudo counter) are the elements which produce data: each of them acquires a value (scalar, spectrum or image) over a given integration time. The measurement group is the acquisition orchestrator: it groups an arbitrary set of channels, prepares them together, decides which channel acts as timer or monitor, starts the channels in a coordinated way according to the configured synchronization (software or hardware) and collects their results as a single, consistent operation.
Two different ways of acquisition exist in Sardana: Experimental channel acquisition and Measurement group acquisition.
Experimental channel acquisition
Counter/timer, 1D and 2D experimental channels can be directly involved in data acquisition without being included in a measurement group acquisition. This can be useful for simple use cases like a single image capture, testing purposes or for implementation of your own measurement procedures. The relevant API for this feature is documented in the API of each of the elements, for example, Counter/Timer API reference.
The single acquisition of these channels can be also done with the macro
ct, giving the name of the
channel as last argument.
Measurement group acquisition
Measurement group acquisition allows much more complex measurement processes than the Experimental channel acquisition. These could be, for example, multiple channel, multiple repetitions or hardware synchronized acquisitions.
Important
Sardana does not allow that the elements involved in one operation are used in another one simultaneously. This rule applies to the data acquisition operations as well. For example, if you try to use a channel or synchronizer element that is participating in another acquisition sardana will raise an error. So elements can not participate concurrently in two measurement group acquisitions neither in experimental channel acquisition.
Other acquisition features:
synchronized start of multiple axes acquisition
hardware/software synchronized acquisition (see Synchronization)
measurement preparation