API guide
Controller
SmartLabUIA(logger=None, log_level=None) creates one IUIA interface and one SmartLabConfig. An external logger is accepted; otherwise standard logging is used (default INFO). Windows is required.
Measurement
API |
Meaning |
|---|---|
|
Invoke Scan once; no completion wait. |
|
Invoke Stop in the operation dialog; no completion wait. |
|
Whether the |
|
Alias for |
|
Displayed remaining time |
|
Current time plus remaining time, or |
|
Read-only properties. |
Parameters
Property suffix |
GUI item |
Getter |
Setter |
|---|---|---|---|
|
Absolute selection |
|
|
|
Relative selection |
|
|
|
Scan mode |
|
|
|
Start |
|
|
|
Stop position |
|
|
|
Step |
|
|
|
Speed |
|
|
|
Move destination |
|
|
|
Move step |
|
|
|
Slit |
|
|
|
Slit list |
|
|
|
Slit width |
|
|
Absolute/relative getters return selection booleans and setters select on True (not deselect on False). Other getters return strings or None. Setters use UIA ValuePattern/SelectionItemPattern; their success is not a readback guarantee. All 12 fields also have property accessors.
Export
export_data(filename=None, save=False, graph="2theta", overwrite=False) -> bool opens the export and Save dialogs for the selected graph (2θ or 2θ/θ). filename=None keeps the dialog’s default. save=False leaves the Save dialog open and returns False. With save=True, the method returns True once the GUI save operation completes, or False when overwrite is declined. The gRPC server checks the resulting file before sending it.
Exceptions and boundaries
The code raises exceptions for missing required GUI elements or failed critical UIA actions. is_running() does not return None. A missing operation dialog cannot distinguish normal completion, cancellation, or an error. The API does not implement hardware-level status reporting.