24. GDA Use Cases¶
24.1. Use Case: ‘Old’ style scanning¶
Name |
Running an ‘old style’ scan on the p45 beamline |
Description |
This use case describes the actions taken by the GDA server when a scan command is issued from the GDA client Jython console to scan a ScannableMotor (stage_x), operating on the p45 beamline. The command issue is: |
Goal |
The GDA server will manage all of the scannable devices involved in the scan to perform the scan and save the resulting data. |
Actors |
Beamline user, GDA client |
Preconditions |
ActiveMQ has been started and is running on the local host. The GDA server has been started in dummy mode for the p45 beamline and so is running on the local host. The p45 GDA client has been started and is running. |
Frequency |
Scanning is a key process for beamline operation therefore it is a common task to be carried out. |
Basic Course |
|
Post Conditions |
None |
Notes |
If a detector is also defined in the scan command entered in the Jython console. |
24.1.1. Class diagram¶
24.2. Use Case: ‘New’ style/ Solstice¶
The new style scanning, (also known as Mapping or Solstice) can be found in bundles statrting with org.eclipse.scanning in the - gda-core.git. New style scanning allows interaction with Malcolm for hardware triggered scanning. It also in general assumes (at least) 2D scanning. It also only handles NeXus format. New style scanning can easily accommodate ‘layered’ scanning, with an inner and outer scan as well as a ‘standard’ scan involving GDA-8 scannables. Throughout, the term ‘GDA-8’ will be used to reference ‘old’ style scanning which was the only type of scanning available in GDA-8. If a Malcolm detector is used the it will run all detectors connected to it. In a ‘layered’ scan, Malcolm is responsible for running the inner scan (see here for more details on the use of the MalcolmDevice in scanning).
24.2.1. Generic process¶
The use case below will document the steps and processes involved in ‘new’ style scanning in detail. It will demonstrate the generic procedure which covers running standard 2D scans, ‘layered’ scans (with an inner and an outer scan) and use of Malcolm within scanning. For a specific use case using a Malcolm detector see here, or for an example of a standard scan with GDA-8 scannables see here.
Name |
Running a ‘new style’/ mapping scan on the p45 beamline. |
Description |
This use case describes the actions taken by the GDA server when a mapping scan is submitted from the Mapping Experiment Setup panel on the client. It will describe the generic procedure carried out by the server, independent of the scan parameters. |
Goal |
The GDA server will manage all of the devices involved in the scan to perform the scan and save the resulting data. . |
Actors |
Beamline user, GDA client |
Preconditions |
ActiveMQ has been started and is running on the local host. The GDA server has been started in dummy mode for the p45 beamline and so is running on the local host. The p45 GDA client has been started and is running. |
Basic Course |
|
Post Conditions |
None |
Notes |
|
24.2.2. Standard GDA-8 Scan¶
Please use the above genetic new style scanning as a reference for more details. The use case below will assume general knowledge on how ‘new’ style scanning works and will build on it to demonstrate how a standard (GDA-8) 3x2 scan of stageX and stageY (motors) is run in the ‘new’ style scanning.
Name |
Running a ‘new style’/ mapping scan on the p45 beamline with Malcolm |
Description |
This use case describes the actions taken by the GDA server when a mapping scan is submitted from the Mapping Experiment Setup panel on the client. The scan parameters specify a ‘Rectangle’ shaped scan using the ‘Grid’ path for a 3 x 2 scan (stageX x stageY) giving a total of 6 scan positions. |
Goal |
The GDA server will manage all of the devices involved in the scan to perform the scan and save the resulting data. |
Actors |
Beamline user, GDA client |
Preconditions |
ActiveMQ has been started and is running on the local host. The GDA server has been started in dummy mode for the p45 beamline. The p45 GDA client has been started and is running. |
Basic Course |
|
Post Conditions |
None |
Notes |
|
24.2.3. Layered Malcolm Scanning¶
Please use the above genetic new style scanning as a
reference for more details. The use case below will assume general knowledge
on how ‘new’ style scanning works and will build on it to demonstrate how
Malcolm is used in a layer scan as the inner scan. Specific details of how
the MalcolmDevice responds to commands made during scan can be found
here.
Name |
Running a ‘new style’/ mapping scan on the p45 beamline with Malcolm |
Description |
This use case describes the actions taken by the GDA server when a mapping scan is submitted from the Mapping Experiment Setup panel on the client. The scan parameters specify a 3D scan with an inner and outer scan. The outer scan is of the stageZ axis with 11 scan positions. The inner scan is a ‘Rectangle’ shaped scan using the ‘Grid’ path for a 5 x 5 scan (stageX, stageY). This will result in a total of 275 scan positions. The Malcolm Detector is selected and this will manage the inner scan. |
Goal |
The GDA server will manage all of the devices involved in the scan to perform the scan and save the resulting data. It will also interface with Malcolm devices through a connection service. |
Actors |
Beamline user, GDA client, Malcolm |
Preconditions |
ActiveMQ has been started and is running on the local host. The GDA server has been started in live mode for the p45 beamline. The p45 GDA client has been started and is running. |
Basic Course |
|
Post Conditions |
None |
Notes |
|
24.2.4. Class diagram¶
24.3. Use Case: MX Data Collection¶
See the MX Data Collections page of this document for more details on classes and methods involved.
Name |
Performing a data collection on the MX beamline. |
Description |
This use case describes the actions taken by the GDA client and server when a scan is submitted from the Data Collection screen in the GDA client on the i03 beamline (used in dummy mode). A single sample is used for the scan. After submitting from the client, the server will control all the devices involved and run the scan through to completion. This beamline uses Zebra triggering and a Pilatus detector. |
Goal |
The GDA server will manage and configure all of the devices involved in the scan to perform the data collection and save the resulting data. |
Actors |
Beamline user, GDA client. |
Preconditions |
ActiveMQ has been started and is running on the local host. The GDA server has been started in dummy mode for the i03 beamline and so is also running on the local host. The i03 GDA client has been started and is running. The Data Collection option is has been selected and this page is showing in the client. |
Frequency |
Data collection in MX is equivalent to the concept of a scan in non-MX beamlines. It is a key process for beamline operation and commonly used. |
Basic Course |
|
Post Conditions |
None |
Notes |
None |


