Commit graph

186 commits

Author SHA1 Message Date
Stephan I. Böttcher
d1ba9894cd step fs_on_fm is used for testing, reduce the start_modulus 2021-05-31 10:42:01 +02:00
Stephan I. Böttcher
4033d88d1b step.ppss.do_testpulser() fixes
The `freq` argument of step_pulser was missing.  The intended positional `sel`
arguments were passed as `freq`

The TESTREG write schedule collided with regular IX REG writes.
2021-05-22 14:54:13 +02:00
Stephan I. Böttcher
b261e1c9c5 step.base_config: define VERSION and SUBVERSION
The VERSION was set in each config.*, which is not what the VERSION is
associated with.  It is now set as a module attribute
solo.step.base_config.VERSION

The unused table argument scratch is now set to solo.step.base_config.SUBVERSION

There is still an optional argument version= to override.
2021-05-18 22:42:21 +02:00
Stephan I. Böttcher
d851c3ab4e Merge branch 'step_startup_modulus' into step_v7 2021-05-18 15:49:44 +02:00
Stephan I. Böttcher
d09a3ff8de Merge branch 'master' into step_startup_modulus 2021-05-18 14:27:08 +02:00
Stephan I. Böttcher
448a997de1 Merge branch 'testpulser' into step_v7 2021-05-17 22:18:21 +02:00
Stephan I. Böttcher
7db39f3ea8 step.config.fs.VERSION=7 2021-05-17 22:04:18 +02:00
Stephan I. Böttcher
d6eb3b0cb3 Merge branch 'step_opheater_T1' into step_v7 2021-05-17 21:50:51 +02:00
Stephan I. Böttcher
50df25016d step acq_time=7µs
New formal arguments: step_ppss.do_step_config(…, acq_time=1, **kwargs)
New default: step_config.ppss(…, acq_time=6, …)

The acq_time parameter tells the FPGA how many additional ADC cycles
(1µs) to wait before a digitization from the idef-x output is accepted.
The old default acq_time=1 gives a total of 2µs settling time for the
idef-x analog output.  acq_time=6 extends the settling time to 7µs.
There are two digitizations per trigger.  The new default adds 10µs to
the total readout time.

The readout time shall be extended to test, in orbit, if that expels the
ghosts from the haunted channels.

Extending the readout time by increasing acq_time has the least impact
on the calibration and morphology of the signal in the presence of
pileup.
2021-05-17 21:13:16 +02:00
Stephan I. Böttcher
6b1afaa4ae step.ppss.do_testpulser(): n=2 2021-05-10 23:20:52 +02:00
Stephan I. Böttcher
72b4015734 step.ppss: do_testpulser(what='A') 2021-05-10 23:11:05 +02:00
Stephan I. Böttcher
beadbd06d3 step_pixels: add what='A' and what='D', detector order, activity order 2021-05-10 23:01:45 +02:00
Stephan I. Böttcher
51d33a9bc2 step.ppss: avoid name clash, s/do_pulser/do_testpulser/ 2021-05-10 23:00:19 +02:00
Stephan I. Böttcher
5c41c56cc0 step ppss: add .do_pulser()
Fire a test pulse to each channel at the beginning of each PHA_cadence.

The test_regs are reset every second with the usual ix config.
Each large or small pixel gets enabled in both test_regs
once during the first 16 seconds of the PHA cadence.
For the first 30 seconds of the PHA_cadence both test pulsers are fired
once per second @5000µs.

ppss_modulus learns to fire on consecutive ranges of seconds.  length
must be a valid cadence, phase must be aligned to length.

New step_pixels.pixels() enumerates physical STEP pixels.

PHA_candence is set to 600s.
.do_pulser() default is enabled.

TODO? To fire 16 times instead of 30, three entries are required for
each ix:

 ppss_modules(PHA_cadence, 0, 10)
 ppss_modules(PHA_cadence, 10, 5)
 ppss_modules(PHA_cadence, 15)

All this is untested.
2021-05-08 13:48:57 +02:00
Stephan I. Böttcher
90dcd57d2c Merge branch 'master' of https://gitlab.physik.uni-kiel.de/solo/solo_config into step_opheater_T1 2021-03-25 12:32:58 +01:00
Jan Christoph Terasa
d50542c411 Added some comments/documentation to stepmsg.config_all_acq. 2021-03-25 11:30:20 +00:00
Stephan I. Böttcher
03148eeb61 step ppss: operational heater target T₁ = -35°C
The aim, of this patch is to keep the Idef-X temperatures constant
during the orbit so that the calibration is always reliable.

Fix the opheater reference temperature reading.  It was set to T_DIG(13). Now
it is T₁(14), one of the sensors on the titanium cover.  The original
intention was probably to use T₁, which is entry [13] in the telemetry
packet.  The mismatch in the order of data items in the ITF packet with
the numbering in the temperature spy may have caused this mixup.

Add parameter HK_SOLO.T_to_ADC(dc_estimate=0) to reduce the target
temperature to accomodate the estimated opheater duty cycle.

The opheater target temperature is set to -35°C at 70% duty cycle.
During the first year the duty cycle was always around 70% and the T₁
temperature between -36°C and -34°C.

Set the nominal calib Temperatur to -36°C.  This is the IDef-X temperature
reached when T₁ was -35°C.
2021-03-08 20:30:00 +01:00
Stephan I. Böttcher
6f8cc7d0e8 step: start_modulus=3600
When the sensor units are commanded to nominal mode they shall receive a
command to reset the PPSS clock at the end of the OBC hour, to synchronize
the data products to an hour boundary.

STEP was sychronized to a minute instead.
2021-03-06 00:15:20 +01:00
Jan Christoph Terasa
44e20904fd Revert "Prepare STEP v7."
This reverts commit 7760fe6115.
2021-03-02 06:59:22 +01:00
Jan Christoph Terasa
8d67506508 Revert "Use STABLE and UNSTABLE channels for INT and MAG data, respectively."
This reverts commit 25f2353b2d.
2021-03-02 06:59:05 +01:00
Jan Christoph Terasa
c141bc3905 Use proper modern string formatting. 2021-02-22 23:05:50 +01:00
Jan Christoph Terasa
309d2c4970 Add small comment. 2021-02-22 19:57:04 +01:00
Jan Christoph Terasa
82f4eb6fbc Generalize temp_calib file reader. 2021-02-22 19:50:37 +01:00
Jan Christoph Terasa
274b3306f0 Fix writing of .bins file. 2021-02-08 18:01:57 +01:00
Jan Christoph Terasa
25f2353b2d Use STABLE and UNSTABLE channels for INT and MAG data, respectively. 2021-02-08 18:01:57 +01:00
Jan Christoph Terasa
b0710fd74a Revert "Get rid of CLOSE and FAR mode, and use the now free flg parameter for INT and MAG differentiation."
This reverts commit c8a89d6d52.
2021-02-08 18:01:57 +01:00
Jan Christoph Terasa
69b88bfc1a Get rid of CLOSE and FAR mode, and use the now free flg parameter for INT and MAG differentiation. 2021-02-08 18:01:57 +01:00
Jan Christoph Terasa
7760fe6115 Prepare STEP v7. 2021-02-08 18:01:56 +01:00
Jan Christoph Terasa
35aab0d4ad Add DPS reserve slots to make sure insertion slots stay at the same position. 2021-02-08 18:01:56 +01:00
Jan Christoph Terasa
3b94b6e5e6 Fix formatting of high energy loss events. 2021-02-08 18:01:56 +01:00
Jan Christoph Terasa
2616c32e25 Fix energy/nuc calculation. 2021-02-08 18:01:56 +01:00
Jan Christoph Terasa
1f4c87ca24 Calculate geomfacs in energy/nuc for ions. 2021-02-08 18:01:56 +01:00
Jan Christoph Terasa
aadd8d0d1b Add script to combine geomfacs for INT and MAG: 2021-02-08 18:01:56 +01:00
Jan Christoph Terasa
48dbd01561 Revert "Process integral and magnet head data into one file."
This reverts commit 5f64ae244d.
2021-02-08 18:01:56 +01:00
Jan Christoph Terasa
a1b9caf046 Process integral and magnet head data into one file. 2021-02-08 18:01:56 +01:00
Jan Christoph Terasa
4104bdba6e Fix L3class passing for geometry factor calculations. 2021-02-08 18:01:56 +01:00
Jan Christoph Terasa
405c9d033a Use version number. 2021-02-08 18:01:56 +01:00
Jan Christoph Terasa
e857fa995a Filename includes version number. 2020-04-20 14:42:58 +02:00
Jan Christoph Terasa
88bf9058c9 Change STEP PHA buffering strategy: Buffer number is the (logical) pixel number. 2020-04-20 11:52:23 +02:00
Jan Christoph Terasa
bdd94a000e All STEP DPS start at 4 keV instead of 2 keV. 2020-04-16 18:28:27 +02:00
Jan Christoph Terasa
ff2176dfbb Adapt to new simfile location. 2020-04-16 16:34:45 +02:00
Jan Christoph Terasa
847eb0d365 Speed up responses.py. 2020-04-16 16:34:08 +02:00
Jan Christoph Terasa
0f453666ac Also calculate angular responses. 2020-04-15 19:13:57 +02:00
Jan Christoph Terasa
779e2559c8 remove debug prints. 2020-04-15 18:40:12 +02:00
Jan Christoph Terasa
3f6d46ea82 fix bug in l3sim 2020-04-15 18:22:49 +02:00
Jan Christoph Terasa
dfe11800f8 Add shellscript to automate procedure. 2020-04-15 17:59:22 +02:00
Jan Christoph Terasa
0ec684cc80 Output to named file. 2020-04-15 17:58:59 +02:00
Jan Christoph Terasa
1e3b74cd7d Further improve geomfac calculation script. 2020-04-15 17:27:59 +02:00
Jan Christoph Terasa
1ad14b3b68 Update l3 simulator to output event index. 2020-04-15 17:12:43 +02:00
Jan Christoph Terasa
107ccbadbd Output event index as timestamp in formatter. 2020-04-15 17:10:33 +02:00