pixie16.scan module¶
Functions that allow a 1d and 2d parameter scan using the pixie16.
During the parameter scan, one or two settings are changed and a MCA histogram. The histogram is integrated and plotted against the parameter.
- class pixie16.scan.ScanParameter(name: str, module: int, channel: int, start: float, stop: float, step: float)¶
Bases:
object
A convenient class to store scan parameters.
- channel: int¶
- module: int¶
- name: str¶
- range() numpy.ndarray ¶
Return the values that should be scanned.
- start: float¶
- step: float¶
- stop: float¶
- pixie16.scan.parameter_scan_1d(parameter: ScanParameter, dwelltime: int = 0, title: str | None = None, savefile: str | None = None)¶
Do a 1D parameter scan on the pixie16.
This function assumes that the pixie16 is already booted and ready to take MCA data.
- pixie16.scan.parameter_scan_2d(parameterA: ScanParameter, parameterB: ScanParameter, dwelltime: int = 0, title: str | None = None, savefile: str | None = None)¶
Do a 2D parameter scan on the pixie16.
This function assumes that the pixie16 is already booted and ready to take MCA data.
The data plotted will be from moduleB/channelB.