Analysis has begun on a the recent down periods to verify correct working of the modification to the NI etalon control. A few bugs were found which caused the control to not work as intended.
- The down offset was added when the ITF was locked (and the offset = 0) instead of added when the ITF was down. Also the summation had a sign error due to the way that the step input into the down offset filter is calculated. Line 82 of the config file was changed to ACL_OP_CH NI_RH_IN_0 "C" "scalar+" NI_RH_INPUT ONE NI_DOWN_OFFSET UNLOCK_TRIG
- When the ITF relocks the offset filter is reset with a ramp. This was increased from 20 cycles to 18000 cycles to reset in 30 mins
The attached figure shows the current bugs in the unlock during yesterday's maintenance.
- NI_RH_IN is the error signal calculated by the loop
- NI_RH_SET - INF_TCS_NI_RH_TE is the set temperature minus the actual temperature (this doesn't take into account the down condition added)
- NI_RH_SET - INF_TCS_NI_RH_TE + NI_DOWN_OFFSET is the same as line 2 but takes into account the newly added down offset
- NI_DOWN_OFFSET is the calculated down offset
- NI_DOWN_OFFSET UNLOCK_TRIG = 1 shows the down offset when the ITF is unlocked
If the loop was working correctly line 1 should equal line 3. Instead line 1 equals line 2 (line 2 is dotted in red so makes the blue appear purple). Line 3 shows how the loop should be behaving. The down offset shows that it is negative hence the sign error in the loop.