Skip to content

Commit 60fe447

Browse files
Update hex docs
1 parent b453661 commit 60fe447

File tree

2 files changed

+14
-6
lines changed

2 files changed

+14
-6
lines changed
Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
# MUX
22

3-
MUX is the name of the system to run the Negative Muon items. More details to follow as the system becomes more operational.
3+
MUX is the name of the system to run the Negative Muon items. It does not use a standard muon DAE, but instead
4+
uses the [CAE Hexagon digitisers](/doc/specific_iocs/other/CAEN-Hexagon.md) to acquire data
Lines changed: 12 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,24 @@
11
# CAEN Hexagon (MUX Data Acquisition Electronics)
22

3-
The CAEN hexagon is the data acquisition used on MUX. It is currently controlled by the CAENMCA IOC (`CAENMCA_01`). There are two hexagon hardware boxes, but these are controlled from a single IOC so both hardware stops and starts at the same time. They will look to be running their ISISICP DAE in simulation mode - this is purely to log sample environment data, recently from a McLennan rotation stage. The CAEN IOC syncs run number with the simulated DAE and also writes its own data files. So you will have the usual log and nxs file as per an instrument plus some extra bin and nxs files from the hexagon. The hexagon raw `.bin` files currently have a rather strange timestamp due to a clock issue in the hardware.
3+
The CAEN hexagon is the data acquisition used on MUX. It is currently controlled by the CAENMCA IOC (`CAENMCA_01`). There are two hexagon hardware boxes, but these are controlled from a single IOC so both hardware stops and starts at the same time. They will be running their ISISICP DAE in simulation mode which is purely to log sample environment data, recently from a McLennan rotation stage. To avoid confusing users simulation mode is not printed in the dashboard. The CAEN IOC syncs run number with the simulated DAE and also writes its own data files. So you will have the usual log and nxs file as per an instrument plus some extra bin and nxs files from the hexagon. The hexagon raw `.bin` files currently have a rather strange file timestamp due to a clock issue in the hexagon hardware.
44

5-
Data is published to the usual instrument network archive, but to the `autoreduced` subfolder
5+
Data is published to the usual instrument network archive on `d:`, but to the `autoreduced` subfolder at the moment
66

7-
The hexagon runs in event mode (which it calls list mode). It is running embedded linux and generates a file locally, this local disk is served via samba and looks like a windows network share. At the end of acquisition the CAEN IOC copies files from the hexagon onto the local computer, runs a script to convert these `.bin` to `.nxs`, then archives both sets of files.
7+
The hexagon runs in event mode (which it calls list mode). It is running embedded linux and generates a file locally, this local disk is served via samba and looks like a windows network share. At the end of acquisition the CAEN IOC copies files from the hexagon onto the local computer, runs a script to convert these `.bin` to `.nxs`, then archives both sets of files. The ISISICP also saves a nexus file, but this has suffix `.nxs_se`. The `.nxs` file that is generated contains a link to open the sample environement from `.nxs_se` so both files are needed for analysis.
88

9-
Scripting currently has some extra `begin_hexagons` and `end_hexagons` commands defined in the local python to start/stop acquisition - this also begins a usual simulated DAE run, so **do not** use normal begin and `end`, use the special hexagon commands instead.
9+
Scripting uses usual `begin` and `end` commands, however these have local modifications to start the hexagon which in turn starts the simulated ISISDAE/isisicp. Run numbers are synced between hexagon and simulated DAE, the custom dashboard db has been changed to read values from the hexagon not the ISISDAE ioc.
1010

11+
Files on the hexagon digitiser have names like `HEX0_00000213_ch0.bin` - there are 2 hexagons with 2 channels, so 4 files in all like this. The end of a run goes like:
12+
- CAENMCA_01 IOC stops hexagon from acquiring and stops ISISDAE too
13+
- CAENMCA_01 creates an initial `.nxs` file - this contains all information except hexagon events from the *.bin files
14+
- The `copydata.bat` script is spawned which then
15+
- - reopens the `.nxs` and then reads all the `*.bin` to insert events into the file
16+
- - moves the `*.bin` and `*.nxs*` files to the archive
17+
1118
## Troubleshooting
1219

1320
Sometimes the hexagon loses connection with the IOC, this can be due to a hexagon spontaneous reboot or it may have hung. If you see errors like `exception in pollerTask: CAENMCA::GetData(): Generic error` then
1421
- try an IOC restart
1522
- try a hexagon power cycle then an IOC restart
1623

17-
After a hexagon power cycle, a register needs to be set on the hexagon using the CAEN MCA2 software to make the event/list mode work properly. The scientists know about this and will do this.
24+
After a hexagon power cycle, a timing register needs to be set on the hexagon using the CAEN MCA2 vendor software to make the event/list mode work properly. The scientists know about this and will do this.

0 commit comments

Comments
 (0)