You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/merlin.md
+14-8Lines changed: 14 additions & 8 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -4,7 +4,7 @@ The [MerlinEM detector](https://quantumdetectors.com/products/merlinem/) by Quan
4
4
5
5
Instamatic communicates with the Merlin control software via TCP/IP connection. This means that there is a fast connection with little overhead when collecting data.
6
6
7
-
In continous read/write mode, instamatic can achieve gapless data acquisition `MerlinCamera.getMovie()`. When continuously collecting single images using `MerlinCamera.getImage()`, there is a ~3 ms overhead per frame.
7
+
In continous read/write mode, instamatic can achieve gapless data acquisition `MerlinCamera.get_movie()`. When continuously collecting single images using `MerlinCamera.get_image()`, there is a ~3 ms overhead per frame.
8
8
9
9
## Setup
10
10
@@ -16,7 +16,7 @@ camera: merlin
16
16
17
17
You can set up the parameters for the Merlin camera through `camera/merlin.yaml` in your config directory.
18
18
19
-
For an example config file, see: [`camera/merlin.yaml`](https://github.com/instamatic-dev/instamatic/blob/main/instamatic/config/camera/merlin.yaml). [Click here](/config.md#camerayaml) to go to the page with all common camera configuration parameters.
19
+
For an example config file, see: [`camera/merlin.yaml`](https://github.com/instamatic-dev/instamatic/blob/main/src/instamatic/config/camera/merlin.yaml). [Click here](/config.md#camerayaml) to go to the page with all common camera configuration parameters.
20
20
21
21
In addition, the Merlin camera has the following parameters to configure:
22
22
@@ -34,18 +34,24 @@ host: '10.0.0.123'
34
34
35
35
**detector_config**
36
36
: The parameters under `detector_config` are directly sent to the Merlin software when instamatic starts.
37
-
These can be used to put the Merlin in the desired state for data acquisition. Check the Merlin documention for more information.
37
+
These can be used to put the Merlin in the desired state for data acquisition. Any command with a `SET` type can be adjusted. Check the Merlin EM documention for more information.
38
+
39
+
: The default sets continuous read-write mode and 12-bit mode to minimize the gap between frames. It also disables automatic file writing (`FILEENABLE`) and image processing by Merlin, and enables headless `RUNHEADLESS` mode for faster throughput. If you don't want this, you can delete these lines or modify them.
38
40
39
-
: For example:
41
+
```yaml
42
+
detector_config:
43
+
CONTINUOUSRW: 1
44
+
COUNTERDEPTH: 12
45
+
FILEENABLE: 0
46
+
RUNHEADLESS: 1
47
+
```
48
+
49
+
: You could for example also set the thresholds and bias in the instamatic config by adding these lines:
Once a `ctrl` (control) object has been initialized, it becomes possible to play around with the lenses and stage interactively. Type `ctrl.` and hit `tab` to see the autocomplete options. Or write use `?` to request the doc string for a function (e.g. `TEMController.initialize?`).
33
33
34
-
Based on this you can write your own python scripts to control the microscope and/or camera. See in `instamatic/instamatic/experiments/cred/experiment.py` for an idea how this is used. All the microscope control interface can be found in `instamatic/TEMController/`
34
+
Based on this you can write your own python scripts to control the microscope and/or camera. See in `src/instamatic/experiments/cred/experiment.py` for an idea how this is used. All the microscope control interface can be found in `src/instamatic/TEMController/`
35
35
36
36
The `ctrl` object allows full control over the electron microscope. For example, to read out the position of the sample stage:
0 commit comments