Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
CCS
Manage
Activity
Members
Plan
Wiki
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Package registry
Model registry
Operate
Terraform modules
Analyze
Contributor analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Marko Mecina
CCS
Compare revisions
26572af30186b84cf613ad266bbc0cf9d7434191 to 2d027583b15e1bbcda2b10847d442d8f142fadf5
Compare revisions
Changes are shown as if the
source
revision was being merged into the
target
revision.
Learn more about comparing revisions.
Source
mecinam2/ccs
Select target project
No results found
2d027583b15e1bbcda2b10847d442d8f142fadf5
Select Git revision
Branches
release
workshop
2 results
Swap
Target
mecinam2/ccs
Select target project
mecinam2/ccs
1 result
26572af30186b84cf613ad266bbc0cf9d7434191
Select Git revision
Branches
release
workshop
2 results
Show changes
Only incoming changes from source
Include changes to target since source was created
Compare
Commits on Source (3)
add FEE row/column correction utility
· c166e0fb
Marko Mecina
authored
11 months ago
c166e0fb
update scripts
· b7903381
Marko Mecina
authored
11 months ago
b7903381
add FEE FM calibrations
· 2d027583
Marko Mecina
authored
11 months ago
2d027583
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
Ccs/calibrations_SMILE.py
+211
-91
211 additions, 91 deletions
Ccs/calibrations_SMILE.py
Ccs/scripts/set_param_sets.py
+182
-0
182 additions, 0 deletions
Ccs/scripts/set_param_sets.py
with
393 additions
and
91 deletions
Ccs/calibrations_SMILE.py
View file @
2d027583
...
...
@@ -12,13 +12,14 @@ import scipy as sp
T_ZERO
=
273.15
# common ADC coefficients
ADC_INPRNG
=
7.34783
# V
ADC_OFFSET
=
-
1.69565
# V
# EQM (?)
# ADC_INPRNG = 7.34783 # V
# ADC_OFFSET = -1.69565 # V
# PFM
# # nom
#
ADC_INPRNG = 7.58261 # V
#
ADC_OFFSET = -1.76956 # V
ADC_INPRNG
=
7.58261
# V
ADC_OFFSET
=
-
1.76956
# V
# # red
# ADC_INPRNG = 7.54783 # V
# ADC_OFFSET = -1.77391 # V
...
...
@@ -60,15 +61,16 @@ class Temp:
# Signal specific coefficients
class
V_T0
:
CCD
=
2.5650
TEMP1
=
2.5770
FEE
=
1.2800
# EQM
# CCD = 2.5650
# TEMP1 = 2.5770
# FEE = 1.2800
# PFM
# # nom
#
CCD = 2.5688
#
TEMP1 = 2.5599
#
FEE = 1.2749
CCD
=
2.5688
TEMP1
=
2.5599
FEE
=
1.2749
# # red
# CCD = 2.5547
# TEMP1 = 2.5649
...
...
@@ -83,63 +85,64 @@ class K_T:
# interpolation table for nominal operation CCD temperature
# (degC, ADC_V, ADU_dec, ADU_hex)
CCD_TEMP_TABLE
=
[
(
-
140.0
,
1.125
,
6288
,
0x1890
),
(
-
135.0
,
1.178
,
6407
,
0x1906
),
(
-
130.0
,
1.231
,
6524
,
0x197C
),
(
-
125.0
,
1.283
,
6642
,
0x19F1
),
(
-
120.0
,
1.336
,
6759
,
0x1A66
),
(
-
115.0
,
1.388
,
6876
,
0x1ADB
),
(
-
110.0
,
1.440
,
6992
,
0x1B50
),
(
-
105.0
,
1.493
,
7109
,
0x1BC4
),
(
-
100.0
,
1.545
,
7225
,
0x1C38
),
(
-
95.0
,
1.596
,
7340
,
0x1CAC
),
(
-
90.0
,
1.648
,
7456
,
0x1D1F
),
(
-
85.0
,
1.700
,
7571
,
0x1D92
),
(
-
80.0
,
1.751
,
7686
,
0x1E05
),
(
-
75.0
,
1.803
,
7800
,
0x1E78
),
(
-
70.0
,
1.854
,
7915
,
0x1EEA
),
(
-
65.0
,
1.905
,
8029
,
0x1F5D
),
(
-
60.0
,
1.957
,
8143
,
0x1FCF
),
(
-
55.0
,
2.008
,
8257
,
0x2040
),
(
-
50.0
,
2.059
,
8371
,
0x20B2
),
(
-
45.0
,
2.109
,
8484
,
0x2123
),
(
-
40.0
,
2.160
,
8597
,
0x2195
),
(
-
35.0
,
2.211
,
8710
,
0x2206
),
(
-
30.0
,
2.261
,
8823
,
0x2276
),
(
-
25.0
,
2.312
,
8936
,
0x22E7
),
(
-
20.0
,
2.362
,
9048
,
0x2358
)
]
# EQM
# CCD_TEMP_TABLE = [
# (-140.0, 1.125, 6288, 0x1890),
# (-135.0, 1.178, 6407, 0x1906),
# (-130.0, 1.231, 6524, 0x197C),
# (-125.0, 1.283, 6642, 0x19F1),
# (-120.0, 1.336, 6759, 0x1A66),
# (-115.0, 1.388, 6876, 0x1ADB),
# (-110.0, 1.440, 6992, 0x1B50),
# (-105.0, 1.493, 7109, 0x1BC4),
# (-100.0, 1.545, 7225, 0x1C38),
# (-95.0, 1.596, 7340, 0x1CAC),
# (-90.0, 1.648, 7456, 0x1D1F),
# (-85.0, 1.700, 7571, 0x1D92),
# (-80.0, 1.751, 7686, 0x1E05),
# (-75.0, 1.803, 7800, 0x1E78),
# (-70.0, 1.854, 7915, 0x1EEA),
# (-65.0, 1.905, 8029, 0x1F5D),
# (-60.0, 1.957, 8143, 0x1FCF),
# (-55.0, 2.008, 8257, 0x2040),
# (-50.0, 2.059, 8371, 0x20B2),
# (-45.0, 2.109, 8484, 0x2123),
# (-40.0, 2.160, 8597, 0x2195),
# (-35.0, 2.211, 8710, 0x2206),
# (-30.0, 2.261, 8823, 0x2276),
# (-25.0, 2.312, 8936, 0x22E7),
# (-20.0, 2.362, 9048, 0x2358)
# ]
# PFM
# # nom
#
CCD_TEMP_TABLE = [
#
(-140.0, 1.123, 6250, 0x186A),
#
(-135.0, 1.176, 6364, 0x18DC),
#
(-130.0, 1.229, 6478, 0x194E),
#
(-125.0, 1.281, 6592, 0x19C0),
#
(-120.0, 1.334, 6705, 0x1A31),
#
(-115.0, 1.386, 6818, 0x1AA2),
#
(-110.0, 1.438, 6931, 0x1B13),
#
(-105.0, 1.491, 7044, 0x1B84),
#
(-100.0, 1.542, 7156, 0x1BF4),
#
(-95.0, 1.594, 7268, 0x1C64),
#
(-90.0, 1.646, 7380, 0x1CD4),
#
(-85.0, 1.698, 7491, 0x1D43),
#
(-80.0, 1.749, 7602, 0x1DB2),
#
(-75.0, 1.800, 7713, 0x1E21),
#
(-70.0, 1.852, 7824, 0x1E90),
#
(-65.0, 1.903, 7935, 0x1EFF),
#
(-60.0, 1.954, 8045, 0x1F6D),
#
(-55.0, 2.005, 8155, 0x1FDB),
#
(-50.0, 2.056, 8265, 0x2049),
#
(-45.0, 2.107, 8375, 0x20B7),
#
(-40.0, 2.157, 8484, 0x2124),
#
(-35.0, 2.208, 8594, 0x2192),
#
(-30.0, 2.258, 8703, 0x21FF),
#
(-25.0, 2.309, 8812, 0x226C),
#
(-20.0, 2.359, 8921, 0x22D9)
#
]
CCD_TEMP_TABLE
=
[
(
-
140.0
,
1.123
,
6250
,
0x186A
),
(
-
135.0
,
1.176
,
6364
,
0x18DC
),
(
-
130.0
,
1.229
,
6478
,
0x194E
),
(
-
125.0
,
1.281
,
6592
,
0x19C0
),
(
-
120.0
,
1.334
,
6705
,
0x1A31
),
(
-
115.0
,
1.386
,
6818
,
0x1AA2
),
(
-
110.0
,
1.438
,
6931
,
0x1B13
),
(
-
105.0
,
1.491
,
7044
,
0x1B84
),
(
-
100.0
,
1.542
,
7156
,
0x1BF4
),
(
-
95.0
,
1.594
,
7268
,
0x1C64
),
(
-
90.0
,
1.646
,
7380
,
0x1CD4
),
(
-
85.0
,
1.698
,
7491
,
0x1D43
),
(
-
80.0
,
1.749
,
7602
,
0x1DB2
),
(
-
75.0
,
1.800
,
7713
,
0x1E21
),
(
-
70.0
,
1.852
,
7824
,
0x1E90
),
(
-
65.0
,
1.903
,
7935
,
0x1EFF
),
(
-
60.0
,
1.954
,
8045
,
0x1F6D
),
(
-
55.0
,
2.005
,
8155
,
0x1FDB
),
(
-
50.0
,
2.056
,
8265
,
0x2049
),
(
-
45.0
,
2.107
,
8375
,
0x20B7
),
(
-
40.0
,
2.157
,
8484
,
0x2124
),
(
-
35.0
,
2.208
,
8594
,
0x2192
),
(
-
30.0
,
2.258
,
8703
,
0x21FF
),
(
-
25.0
,
2.309
,
8812
,
0x226C
),
(
-
20.0
,
2.359
,
8921
,
0x22D9
)
]
#
# # red
# CCD_TEMP_TABLE = [
...
...
@@ -173,21 +176,7 @@ CCD_TEMP_TABLE = [
# interpolation table for PSU temperature
# (degC, ADC_V, ADU_dec, ADU_hex)
PSU_TEMP
=
[
(
-
50.0
,
3.237
,
10998
,
0x2AF6
),
(
-
40.0
,
3.187
,
10887
,
0x2A86
),
(
-
20.0
,
2.960
,
10380
,
0x288C
),
(
0.0
,
2.487
,
9326
,
0x246D
),
(
20.0
,
1.816
,
7830
,
0x1E95
),
(
25.0
,
1.643
,
7444
,
0x1D13
),
(
40.0
,
1.169
,
6387
,
0x18F3
),
(
60.0
,
0.703
,
5348
,
0x14E4
),
(
80.0
,
0.417
,
4710
,
0x1266
),
(
90.0
,
0.323
,
4501
,
0x1194
),
(
100.0
,
0.252
,
4343
,
0x10F6
)
]
# PFM
# EQM
# PSU_TEMP = [
# (-50.0, 3.237, 10998, 0x2AF6),
# (-40.0, 3.187, 10887, 0x2A86),
...
...
@@ -202,6 +191,21 @@ PSU_TEMP = [
# (100.0, 0.252, 4343, 0x10F6)
# ]
# PFM
PSU_TEMP
=
[
(
-
50.0
,
3.237
,
10998
,
0x2AF6
),
(
-
40.0
,
3.187
,
10887
,
0x2A86
),
(
-
20.0
,
2.960
,
10380
,
0x288C
),
(
0.0
,
2.487
,
9326
,
0x246D
),
(
20.0
,
1.816
,
7830
,
0x1E95
),
(
25.0
,
1.643
,
7444
,
0x1D13
),
(
40.0
,
1.169
,
6387
,
0x18F3
),
(
60.0
,
0.703
,
5348
,
0x14E4
),
(
80.0
,
0.417
,
4710
,
0x1266
),
(
90.0
,
0.323
,
4501
,
0x1194
),
(
100.0
,
0.252
,
4343
,
0x10F6
)
]
class
Psu
:
...
...
@@ -214,23 +218,24 @@ class Psu:
ADC_I_HEATER
=
"
HK_ADC_I_HEATER
"
K_PSU
=
{
Psu
.
ADC_I_FEE_ANA
:
0.3058
,
Psu
.
ADC_I_FEE_DIG
:
0.1528
,
Psu
.
ADC_I_DPU
:
0.4913
,
Psu
.
ADC_I_RSE
:
0.844
,
Psu
.
ADC_I_HEATER
:
0.4349
}
# PFM
# EQM
# K_PSU = {
# Psu.ADC_I_FEE_ANA: 0.3058,
# Psu.ADC_I_FEE_DIG: 0.1528,
# Psu.ADC_I_DPU: 0.
60
3,
# Psu.ADC_I_DPU: 0.
491
3,
# Psu.ADC_I_RSE: 0.844,
# Psu.ADC_I_HEATER: 0.4349
# }
# PFM
K_PSU
=
{
Psu
.
ADC_I_FEE_ANA
:
0.3058
,
Psu
.
ADC_I_FEE_DIG
:
0.1528
,
Psu
.
ADC_I_DPU
:
0.603
,
Psu
.
ADC_I_RSE
:
0.844
,
Psu
.
ADC_I_HEATER
:
0.4349
}
PSU_OFFSET
=
{
Psu
.
ADC_I_FEE_ANA
:
0
,
Psu
.
ADC_I_FEE_DIG
:
0
,
...
...
@@ -742,7 +747,16 @@ class Fee:
# FEE HK gains/offsets
# EQM
# EQM ???
# Fee.CCD2_TS_A: (0.0143896, 507.7463659),
# Fee.CCD4_TS_B: (0.0143869, 508.0853237),
# Fee.PRT1: (0.013942679, 511.4689646),
# Fee.PRT2: (0.014066366, 520.9910997),
# Fee.PRT3: (0.014075819, 520.1841103),
# Fee.PRT4: (0.013816741, 535.4382444),
# Fee.PRT5: (0.014074936, 520.4885901),
#
# Fee.CCD2_TS_A: (0.048589970854, 326.709603726099),
# Fee.CCD4_TS_B: (0.048346071846, 317.545999899085),
# Fee.PRT1: (0.049337666752, 310.304954966437),
...
...
@@ -751,6 +765,7 @@ class Fee:
# Fee.PRT4: (0.048777132761, 322.321990156487),
# Fee.PRT5: (0.048683458078, 323.746239172483),
# EQM
FEE_GAIN_OFFSET
=
{
Fee
.
CCD2_TS_A
:
(
0.0143896
,
507.7463659
),
Fee
.
CCD4_TS_B
:
(
0.0143869
,
508.0853237
),
...
...
@@ -793,6 +808,50 @@ FEE_GAIN_OFFSET = {
Fee
.
CCD2_VOD_MON_F
:
(
0.000562860544
,
-
0.00642286504851342
)
}
# FM
# FEE_GAIN_OFFSET = {
# Fee.CCD2_TS_A: (0.014369244000, 372.541803600000),
# Fee.CCD4_TS_B: (0.014373897000, 372.828009000000),
# Fee.PRT1: (0.014371437000, 372.685351900000),
# Fee.PRT2: (0.014371437000, 372.685351900000),
# Fee.PRT3: (0.014371437000, 372.685351900000),
# Fee.PRT4: (0.014371437000, 372.685351900000),
# Fee.PRT5: (0.014371437000, 372.685351900000),
# Fee.CCD4_VOD_MON_E: (0.000562370000, 0.010150918000),
# Fee.CCD4_VOG_MON: (0.000132526000, 0.000030609000),
# Fee.CCD4_VRD_MON_E: (0.000562986000, 0.011770430000),
# Fee.CCD2_VOD_MON_E: (0.000562758000, -0.000015833000),
# Fee.CCD2_VOG_MON: (0.000132538000, -0.000518162000),
# Fee.CCD2_VRD_MON_E: (0.000562977000, 0.009355482000),
# Fee.CCD4_VRD_MON_F: (0.000562755000, 0.014634286000),
# Fee.CCD4_VDD_MON: (0.000878920000, 0.000000000000),
# Fee.CCD4_VGD_MON: (0.000562959000, 0.012800967000),
# Fee.CCD2_VRD_MON_F: (0.000562992000, 0.012512884000),
# Fee.CCD2_VDD_MON: (0.000802557000, 0.000000000000),
# Fee.CCD2_VGD_MON: (0.000563277000, 0.006843414000),
# Fee.VCCD: (0.000755650000, 0.000000000000),
# Fee.VRCLK_MON: (0.000360278000, 0.000000000000),
# Fee.VICLK: (0.000360286000, 0.000000000000),
# Fee.CCD4_VOD_MON_F: (0.000562421000, 0.011387822000),
# Fee.P5VB_POS_MON: (0.000092222000, 0.000000000000),
# Fee.P5VB_NEG_MON: (-0.000125804000, 0.000000000000),
# Fee.P3V3B_MON: (0.000062651000, 0.000000000000),
# Fee.P2V5A_MON: (0.000062656000, 0.000000000000),
# Fee.P3V3D_MON: (0.000062654000, 0.000000000000),
# Fee.P2V5D_MON: (0.000062658000, 0.000000000000),
# Fee.P1V2D_MON: (0.000031315000, 0.000000000000),
# Fee.P5VREF_MON: (0.000097241000, 0.000000000000),
# Fee.VCCD_POS_RAW: (0.000756621000, 0.000000000000),
# Fee.VCLK_POS_RAW: (0.000360158000, 0.000000000000),
# Fee.VAN1_POS_RAW: (0.000163416000, 0.000000000000),
# Fee.VAN3_NEG_MON: (-0.000208731000, 0.000000000000),
# Fee.VAN2_POS_RAW: (0.000163228000, 0.000000000000),
# Fee.VDIG_RAW: (0.000097252000, 0.000000000000),
# Fee.IG_HI_MON: (0.000187565000, 0.000000000000),
# Fee.CCD2_VOD_MON_F: (0.000563010000, 0.006615808000)
# }
FEE_CCD2TsA_gain
,
FEE_CCD2TsA_offset
=
FEE_GAIN_OFFSET
[
Fee
.
CCD2_TS_A
]
FEE_CCD4TsB_gain
,
FEE_CCD4TsB_offset
=
FEE_GAIN_OFFSET
[
Fee
.
CCD4_TS_B
]
...
...
@@ -917,11 +976,72 @@ class BadPixelMask:
self
.
array
=
mask
class
RowColCorrection
:
ROW_CORR_ADDR
=
0x40664C00
COL_CORR_ADDR
=
0x40665C00
ROW_CORR_SIZE
=
4096
COL_CORR_SIZE
=
2048
def
__init__
(
self
):
self
.
_row_corr
=
bytearray
(
self
.
ROW_CORR_SIZE
)
self
.
_col_corr
=
bytearray
(
self
.
COL_CORR_SIZE
)
self
.
ccd2_e_rows
=
bytearray
(
self
.
ROW_CORR_SIZE
//
4
)
self
.
ccd2_f_rows
=
bytearray
(
self
.
ROW_CORR_SIZE
//
4
)
self
.
ccd4_e_rows
=
bytearray
(
self
.
ROW_CORR_SIZE
//
4
)
self
.
ccd4_f_rows
=
bytearray
(
self
.
ROW_CORR_SIZE
//
4
)
self
.
ccd2_e_cols
=
bytearray
(
self
.
COL_CORR_SIZE
//
4
)
self
.
ccd2_f_cols
=
bytearray
(
self
.
COL_CORR_SIZE
//
4
)
self
.
ccd4_e_cols
=
bytearray
(
self
.
COL_CORR_SIZE
//
4
)
self
.
ccd4_f_cols
=
bytearray
(
self
.
COL_CORR_SIZE
//
4
)
@property
def
row_corr
(
self
):
self
.
_row_corr
[::
4
]
=
self
.
ccd4_e_rows
self
.
_row_corr
[
1
::
4
]
=
self
.
ccd4_f_rows
self
.
_row_corr
[
2
::
4
]
=
self
.
ccd2_e_rows
self
.
_row_corr
[
3
::
4
]
=
self
.
ccd2_f_rows
return
bytes
(
self
.
_row_corr
)
@row_corr.setter
def
row_corr
(
self
,
binary
):
assert
len
(
binary
)
==
self
.
ROW_CORR_SIZE
self
.
_row_corr
=
bytearray
(
binary
)
self
.
ccd4_e_rows
=
self
.
_row_corr
[::
4
]
self
.
ccd4_f_rows
=
self
.
_row_corr
[
1
::
4
]
self
.
ccd2_e_rows
=
self
.
_row_corr
[
2
::
4
]
self
.
ccd2_f_rows
=
self
.
_row_corr
[
3
::
4
]
@property
def
col_corr
(
self
):
self
.
_col_corr
[::
4
]
=
self
.
ccd4_e_cols
self
.
_col_corr
[
1
::
4
]
=
self
.
ccd4_f_cols
self
.
_col_corr
[
2
::
4
]
=
self
.
ccd2_e_cols
self
.
_col_corr
[
3
::
4
]
=
self
.
ccd2_f_cols
return
bytes
(
self
.
_col_corr
)
@col_corr.setter
def
col_corr
(
self
,
binary
):
assert
len
(
binary
)
==
self
.
COL_CORR_SIZE
self
.
_col_corr
=
bytearray
(
binary
)
self
.
ccd4_e_cols
=
self
.
_col_corr
[::
4
]
self
.
ccd4_f_cols
=
self
.
_col_corr
[
1
::
4
]
self
.
ccd2_e_cols
=
self
.
_col_corr
[
2
::
4
]
self
.
ccd2_f_cols
=
self
.
_col_corr
[
3
::
4
]
if
__name__
==
'
__main__
'
:
import
matplotlib.pyplot
as
plt
ct
=
CalibrationTables
()
ct
.
_plot
(
Temp
.
ADC_TEMP
_CCD
)
ct
.
_plot
(
Temp
.
ADC_
PSU_
TEMP
)
# ct.write_to_files('/home/marko/space/CCS/calibrations')
lmt
=
LimitTables
()
This diff is collapsed.
Click to expand it.
Ccs/scripts/set_param_sets.py
0 → 100644
View file @
2d027583
# ADC parameter set Leicester Flatsat 20240124
# ParamSetId = ADC_RANGES # KSP50281 [NOT EDITABLE]
P3V9WarnLowerLimit
=
7783
P3V9AlarmLowerLimit
=
7566
P3V9WarnUpperLimit
=
8474
P3V9AlarmUpperLimit
=
8691
P3V3WarnLowerLimit
=
10515
P3V3AlarmLowerLimit
=
10147
P3V3WarnUpperLimit
=
11762
P3V3AlarmUpperLimit
=
12130
P3V3_LVDSWarnLowerLimit
=
10515
P3V3_LVDSAlarmLowerLimit
=
10147
P3V3_LVDSWarnUpperLimit
=
11762
P3V3_LVDSAlarmUpperLimit
=
12130
P2V5WarnLowerLimit
=
8820
P2V5AlarmLowerLimit
=
8541
P2V5WarnUpperLimit
=
9889
P2V5AlarmUpperLimit
=
10168
P1V8WarnLowerLimit
=
7337
P1V8AlarmLowerLimit
=
7137
P1V8WarnUpperLimit
=
8251
P1V8AlarmUpperLimit
=
8451
P1V2WarnLowerLimit
=
6066
P1V2AlarmLowerLimit
=
5933
P1V2WarnUpperLimit
=
6846
P1V2AlarmUpperLimit
=
6980
RefWarnLowerLimit
=
8820
RefAlarmLowerLimit
=
8541
RefWarnUpperLimit
=
9889
RefAlarmUpperLimit
=
10168
TEMP1WarnLowerLimit
=
8793
TEMP1AlarmLowerLimit
=
8463
TEMP1WarnUpperLimit
=
11063
TEMP1AlarmUpperLimit
=
11283
TEMP_CCDWarnLowerLimit
=
6287
TEMP_CCDAlarmLowerLimit
=
6122
TEMP_CCDWarnUpperLimit
=
7422
TEMP_CCDAlarmUpperLimit
=
7532
TEMP_FEEWarnLowerLimit
=
6621
TEMP_FEEAlarmLowerLimit
=
6504
TEMP_FEEWarnUpperLimit
=
16000
# 10715 FEE disconnected
TEMP_FEEAlarmUpperLimit
=
17000
# 10825 FEE disconnected
I_FEE_ANAWarnLowerLimit
=
3525
I_FEE_ANAAlarmLowerLimit
=
3525
I_FEE_ANAWarnUpperLimit
=
7536
I_FEE_ANAAlarmUpperLimit
=
7886
I_FEE_DIGWarnLowerLimit
=
3525
I_FEE_DIGAlarmLowerLimit
=
3525
I_FEE_DIGWarnUpperLimit
=
8443
I_FEE_DIGAlarmUpperLimit
=
8884
I_DPUWarnLowerLimit
=
3525
I_DPUAlarmLowerLimit
=
3525
I_DPUWarnUpperLimit
=
8375
I_DPUAlarmUpperLimit
=
8809
I_RSEWarnLowerLimit
=
3525
I_RSEAlarmLowerLimit
=
3525
I_RSEWarnUpperLimit
=
7849
I_RSEAlarmUpperLimit
=
8230
I_HEATERWarnLowerLimit
=
5422
I_HEATERAlarmLowerLimit
=
5422
I_HEATERWarnUpperLimit
=
9138
I_HEATERAlarmUpperLimit
=
9459
TEMP_PSUWarnLowerLimit
=
5092
TEMP_PSUAlarmLowerLimit
=
4773
TEMP_PSUWarnUpperLimit
=
10636
TEMP_PSUAlarmUpperLimit
=
11016
ADCParamCrc
=
cfl
.
calc_param_crc
(
'
SASW SetParValAdcRngsCmd
'
,
P3V9WarnLowerLimit
,
P3V9AlarmLowerLimit
,
P3V9WarnUpperLimit
,
P3V9AlarmUpperLimit
,
P3V3WarnLowerLimit
,
P3V3AlarmLowerLimit
,
P3V3WarnUpperLimit
,
P3V3AlarmUpperLimit
,
P3V3_LVDSWarnLowerLimit
,
P3V3_LVDSAlarmLowerLimit
,
P3V3_LVDSWarnUpperLimit
,
P3V3_LVDSAlarmUpperLimit
,
P2V5WarnLowerLimit
,
P2V5AlarmLowerLimit
,
P2V5WarnUpperLimit
,
P2V5AlarmUpperLimit
,
P1V8WarnLowerLimit
,
P1V8AlarmLowerLimit
,
P1V8WarnUpperLimit
,
P1V8AlarmUpperLimit
,
P1V2WarnLowerLimit
,
P1V2AlarmLowerLimit
,
P1V2WarnUpperLimit
,
P1V2AlarmUpperLimit
,
RefWarnLowerLimit
,
RefAlarmLowerLimit
,
RefWarnUpperLimit
,
RefAlarmUpperLimit
,
TEMP1WarnLowerLimit
,
TEMP1AlarmLowerLimit
,
TEMP1WarnUpperLimit
,
TEMP1AlarmUpperLimit
,
TEMP_CCDWarnLowerLimit
,
TEMP_CCDAlarmLowerLimit
,
TEMP_CCDWarnUpperLimit
,
TEMP_CCDAlarmUpperLimit
,
TEMP_FEEWarnLowerLimit
,
TEMP_FEEAlarmLowerLimit
,
TEMP_FEEWarnUpperLimit
,
TEMP_FEEAlarmUpperLimit
,
I_FEE_ANAWarnLowerLimit
,
I_FEE_ANAAlarmLowerLimit
,
I_FEE_ANAWarnUpperLimit
,
I_FEE_ANAAlarmUpperLimit
,
I_FEE_DIGWarnLowerLimit
,
I_FEE_DIGAlarmLowerLimit
,
I_FEE_DIGWarnUpperLimit
,
I_FEE_DIGAlarmUpperLimit
,
I_DPUWarnLowerLimit
,
I_DPUAlarmLowerLimit
,
I_DPUWarnUpperLimit
,
I_DPUAlarmUpperLimit
,
I_RSEWarnLowerLimit
,
I_RSEAlarmLowerLimit
,
I_RSEWarnUpperLimit
,
I_RSEAlarmUpperLimit
,
I_HEATERWarnLowerLimit
,
I_HEATERAlarmLowerLimit
,
I_HEATERWarnUpperLimit
,
I_HEATERAlarmUpperLimit
,
TEMP_PSUWarnLowerLimit
,
TEMP_PSUAlarmLowerLimit
,
TEMP_PSUWarnUpperLimit
,
TEMP_PSUAlarmUpperLimit
,
0
)
cfl
.
Tcsend_DB
(
'
DBS_TC_PARLOAD_ARM
'
,
pool_name
=
'
LIVE
'
)
cfl
.
Tcsend_DB
(
'
SASW SetParValAdcRngsCmd
'
,
P3V9WarnLowerLimit
,
P3V9AlarmLowerLimit
,
P3V9WarnUpperLimit
,
P3V9AlarmUpperLimit
,
P3V3WarnLowerLimit
,
P3V3AlarmLowerLimit
,
P3V3WarnUpperLimit
,
P3V3AlarmUpperLimit
,
P3V3_LVDSWarnLowerLimit
,
P3V3_LVDSAlarmLowerLimit
,
P3V3_LVDSWarnUpperLimit
,
P3V3_LVDSAlarmUpperLimit
,
P2V5WarnLowerLimit
,
P2V5AlarmLowerLimit
,
P2V5WarnUpperLimit
,
P2V5AlarmUpperLimit
,
P1V8WarnLowerLimit
,
P1V8AlarmLowerLimit
,
P1V8WarnUpperLimit
,
P1V8AlarmUpperLimit
,
P1V2WarnLowerLimit
,
P1V2AlarmLowerLimit
,
P1V2WarnUpperLimit
,
P1V2AlarmUpperLimit
,
RefWarnLowerLimit
,
RefAlarmLowerLimit
,
RefWarnUpperLimit
,
RefAlarmUpperLimit
,
TEMP1WarnLowerLimit
,
TEMP1AlarmLowerLimit
,
TEMP1WarnUpperLimit
,
TEMP1AlarmUpperLimit
,
TEMP_CCDWarnLowerLimit
,
TEMP_CCDAlarmLowerLimit
,
TEMP_CCDWarnUpperLimit
,
TEMP_CCDAlarmUpperLimit
,
TEMP_FEEWarnLowerLimit
,
TEMP_FEEAlarmLowerLimit
,
TEMP_FEEWarnUpperLimit
,
TEMP_FEEAlarmUpperLimit
,
I_FEE_ANAWarnLowerLimit
,
I_FEE_ANAAlarmLowerLimit
,
I_FEE_ANAWarnUpperLimit
,
I_FEE_ANAAlarmUpperLimit
,
I_FEE_DIGWarnLowerLimit
,
I_FEE_DIGAlarmLowerLimit
,
I_FEE_DIGWarnUpperLimit
,
I_FEE_DIGAlarmUpperLimit
,
I_DPUWarnLowerLimit
,
I_DPUAlarmLowerLimit
,
I_DPUWarnUpperLimit
,
I_DPUAlarmUpperLimit
,
I_RSEWarnLowerLimit
,
I_RSEAlarmLowerLimit
,
I_RSEWarnUpperLimit
,
I_RSEAlarmUpperLimit
,
I_HEATERWarnLowerLimit
,
I_HEATERAlarmLowerLimit
,
I_HEATERWarnUpperLimit
,
I_HEATERAlarmUpperLimit
,
TEMP_PSUWarnLowerLimit
,
TEMP_PSUAlarmLowerLimit
,
TEMP_PSUWarnUpperLimit
,
TEMP_PSUAlarmUpperLimit
,
ADCParamCrc
,
pool_name
=
'
LIVE
'
)
#! CCS.BREAKPOINT
cfl
.
Tcsend_DB
(
'
DBS_TC_PARLOAD_ARM
'
,
pool_name
=
'
LIVE
'
)
# PARAM_SID = ADC_RANGES # KTP40100 [NOT EDITABLE]
P3V9_WARN_LOWER_RANGE
=
0
# KTP40110
P3V9_FAIL_LOWER_RANGE
=
0
# KTP40111
P3V9_WARN_UPPER_RANGE
=
16382
# KTP40112
P3V9_FAIL_UPPER_RANGE
=
16382
# KTP40113
P3V3_WARN_LOWER_RANGE
=
0
# KTP40114
P3V3_FAIL_LOWER_RANGE
=
0
# KTP40115
P3V3_WARN_UPPER_RANGE
=
16382
# KTP40116
P3V3_FAIL_UPPER_RANGE
=
16382
# KTP40117
P3V3_LVDS_WARN_LOWER_RAN
=
0
# KTP40118
P3V3_LVDS_FAIL_LOWER_RAN
=
0
# KTP40119
P3V3_LVDS_WARN_UPPER_RAN
=
16382
# KTP40120
P3V3_LVDS_FAIL_UPPER_RAN
=
16382
# KTP40121
P2V5_WARN_LOWER_RANGE
=
0
# KTP40122
P2V5_FAIL_LOWER_RANGE
=
0
# KTP40123
P2V5_WARN_UPPER_RANGE
=
16382
# KTP40124
P2V5_FAIL_UPPER_RANGE
=
16382
# KTP40125
P1V8_WARN_LOWER_RANGE
=
0
# KTP40126
P1V8_FAIL_LOWER_RANGE
=
0
# KTP40127
P1V8_WARN_UPPER_RANGE
=
16382
# KTP40128
P1V8_FAIL_UPPER_RANGE
=
16382
# KTP40129
P1V2_WARN_LOWER_RANGE
=
0
# KTP40130
P1V2_FAIL_LOWER_RANGE
=
0
# KTP40131
P1V2_WARN_UPPER_RANGE
=
16382
# KTP40132
P1V2_FAIL_UPPER_RANGE
=
16382
# KTP40133
REF_WARN_LOWER_RANGE
=
0
# KTP40134
REF_FAIL_LOWER_RANGE
=
0
# KTP40135
REF_WARN_UPPER_RANGE
=
16382
# KTP40136
REF_FAIL_UPPER_RANGE
=
16382
# KTP40137
TEMP1_WARN_LOWER_RANGE
=
0
# KTP40138
TEMP1_FAIL_LOWER_RANGE
=
0
# KTP40139
TEMP1_WARN_UPPER_RANGE
=
16382
# KTP40140
TEMP1_FAIL_UPPER_RANGE
=
16382
# KTP40141
TEMP_CDD_WARN_LOWER_RANG
=
0
# KTP40146
TEMP_CDD_FAIL_LOWER_RANG
=
0
# KTP40147
TEMP_CDD_WARN_UPPER_RANG
=
16382
# KTP40148
TEMP_CDD_FAIL_UPPER_RANG
=
16382
# KTP40149
TEMP_FEE_WARN_LOWER_RANG
=
0
# KTP40142
TEMP_FEE_FAIL_LOWER_RANG
=
0
# KTP40143
TEMP_FEE_WARN_UPPER_RANG
=
16382
# KTP40144
TEMP_FEE_FAIL_UPPER_RANG
=
16382
# KTP40145
I_FEE_ANA_WARN_LOWER_RAN
=
0
# KTP40150
I_FEE_ANA_FAIL_LOWER_RAN
=
0
# KTP40151
I_FEE_ANA_WARN_UPPER_RAN
=
16382
# KTP40152
I_FEE_ANA_FAIL_UPPER_RAN
=
16382
# KTP40153
I_FEE_DIG_WARN_LOWER_RAN
=
0
# KTP40154
I_FEE_DIG_FAIL_LOWER_RAN
=
0
# KTP40155
I_FEE_DIG_WARN_UPPER_RAN
=
16382
# KTP40156
I_FEE_DIG_FAIL_UPPER_RAN
=
16382
# KTP40157
I_DPU_WARN_LOWER_RANGE
=
0
# KTP40158
I_DPU_FAIL_LOWER_RANGE
=
0
# KTP40159
I_DPU_WARN_UPPER_RANGE
=
16382
# KTP40160
I_DPU_FAIL_UPPER_RANGE
=
16382
# KTP40161
I_RSE_WARN_LOWER_RANGE
=
0
# KTP40162
I_RSE_FAIL_LOWER_RANGE
=
0
# KTP40163
I_RSE_WARN_UPPER_RANGE
=
16382
# KTP40164
I_RSE_FAIL_UPPER_RANGE
=
16382
# KTP40165
I_HEATER_WARN_LOWER_RANG
=
0
# KTP40166
I_HEATER_FAIL_LOWER_RANG
=
0
# KTP40167
I_HEATER_WARN_UPPER_RANG
=
16382
# KTP40168
I_HEATER_FAIL_UPPER_RANG
=
16382
# KTP40169
TEMP_PSU_WARN_LOWER_RANG
=
0
# KTP40170
TEMP_PSU_FAIL_LOWER_RANG
=
0
# KTP40171
TEMP_PSU_WARN_UPPER_RANG
=
16382
# KTP40172
TEMP_PSU_FAIL_UPPER_RANG
=
16382
# KTP40173
PARAM_CRC
=
0
# KTP40174
PARAM_CRC
=
cfl
.
calc_param_crc
(
'
DBS_TC_PARLOAD_ADCRANGES
'
,
P3V9_WARN_LOWER_RANGE
,
P3V9_FAIL_LOWER_RANGE
,
P3V9_WARN_UPPER_RANGE
,
P3V9_FAIL_UPPER_RANGE
,
P3V3_WARN_LOWER_RANGE
,
P3V3_FAIL_LOWER_RANGE
,
P3V3_WARN_UPPER_RANGE
,
P3V3_FAIL_UPPER_RANGE
,
P3V3_LVDS_WARN_LOWER_RAN
,
P3V3_LVDS_FAIL_LOWER_RAN
,
P3V3_LVDS_WARN_UPPER_RAN
,
P3V3_LVDS_FAIL_UPPER_RAN
,
P2V5_WARN_LOWER_RANGE
,
P2V5_FAIL_LOWER_RANGE
,
P2V5_WARN_UPPER_RANGE
,
P2V5_FAIL_UPPER_RANGE
,
P1V8_WARN_LOWER_RANGE
,
P1V8_FAIL_LOWER_RANGE
,
P1V8_WARN_UPPER_RANGE
,
P1V8_FAIL_UPPER_RANGE
,
P1V2_WARN_LOWER_RANGE
,
P1V2_FAIL_LOWER_RANGE
,
P1V2_WARN_UPPER_RANGE
,
P1V2_FAIL_UPPER_RANGE
,
REF_WARN_LOWER_RANGE
,
REF_FAIL_LOWER_RANGE
,
REF_WARN_UPPER_RANGE
,
REF_FAIL_UPPER_RANGE
,
TEMP1_WARN_LOWER_RANGE
,
TEMP1_FAIL_LOWER_RANGE
,
TEMP1_WARN_UPPER_RANGE
,
TEMP1_FAIL_UPPER_RANGE
,
TEMP_CDD_WARN_LOWER_RANG
,
TEMP_CDD_FAIL_LOWER_RANG
,
TEMP_CDD_WARN_UPPER_RANG
,
TEMP_CDD_FAIL_UPPER_RANG
,
TEMP_FEE_WARN_LOWER_RANG
,
TEMP_FEE_FAIL_LOWER_RANG
,
TEMP_FEE_WARN_UPPER_RANG
,
TEMP_FEE_FAIL_UPPER_RANG
,
I_FEE_ANA_WARN_LOWER_RAN
,
I_FEE_ANA_FAIL_LOWER_RAN
,
I_FEE_ANA_WARN_UPPER_RAN
,
I_FEE_ANA_FAIL_UPPER_RAN
,
I_FEE_DIG_WARN_LOWER_RAN
,
I_FEE_DIG_FAIL_LOWER_RAN
,
I_FEE_DIG_WARN_UPPER_RAN
,
I_FEE_DIG_FAIL_UPPER_RAN
,
I_DPU_WARN_LOWER_RANGE
,
I_DPU_FAIL_LOWER_RANGE
,
I_DPU_WARN_UPPER_RANGE
,
I_DPU_FAIL_UPPER_RANGE
,
I_RSE_WARN_LOWER_RANGE
,
I_RSE_FAIL_LOWER_RANGE
,
I_RSE_WARN_UPPER_RANGE
,
I_RSE_FAIL_UPPER_RANGE
,
I_HEATER_WARN_LOWER_RANG
,
I_HEATER_FAIL_LOWER_RANG
,
I_HEATER_WARN_UPPER_RANG
,
I_HEATER_FAIL_UPPER_RANG
,
TEMP_PSU_WARN_LOWER_RANG
,
TEMP_PSU_FAIL_LOWER_RANG
,
TEMP_PSU_WARN_UPPER_RANG
,
TEMP_PSU_FAIL_UPPER_RANG
,
PARAM_CRC
)
cfl
.
Tcsend_DB
(
'
DBS_TC_PARLOAD_ADCRANGES
'
,
P3V9_WARN_LOWER_RANGE
,
P3V9_FAIL_LOWER_RANGE
,
P3V9_WARN_UPPER_RANGE
,
P3V9_FAIL_UPPER_RANGE
,
P3V3_WARN_LOWER_RANGE
,
P3V3_FAIL_LOWER_RANGE
,
P3V3_WARN_UPPER_RANGE
,
P3V3_FAIL_UPPER_RANGE
,
P3V3_LVDS_WARN_LOWER_RAN
,
P3V3_LVDS_FAIL_LOWER_RAN
,
P3V3_LVDS_WARN_UPPER_RAN
,
P3V3_LVDS_FAIL_UPPER_RAN
,
P2V5_WARN_LOWER_RANGE
,
P2V5_FAIL_LOWER_RANGE
,
P2V5_WARN_UPPER_RANGE
,
P2V5_FAIL_UPPER_RANGE
,
P1V8_WARN_LOWER_RANGE
,
P1V8_FAIL_LOWER_RANGE
,
P1V8_WARN_UPPER_RANGE
,
P1V8_FAIL_UPPER_RANGE
,
P1V2_WARN_LOWER_RANGE
,
P1V2_FAIL_LOWER_RANGE
,
P1V2_WARN_UPPER_RANGE
,
P1V2_FAIL_UPPER_RANGE
,
REF_WARN_LOWER_RANGE
,
REF_FAIL_LOWER_RANGE
,
REF_WARN_UPPER_RANGE
,
REF_FAIL_UPPER_RANGE
,
TEMP1_WARN_LOWER_RANGE
,
TEMP1_FAIL_LOWER_RANGE
,
TEMP1_WARN_UPPER_RANGE
,
TEMP1_FAIL_UPPER_RANGE
,
TEMP_CDD_WARN_LOWER_RANG
,
TEMP_CDD_FAIL_LOWER_RANG
,
TEMP_CDD_WARN_UPPER_RANG
,
TEMP_CDD_FAIL_UPPER_RANG
,
TEMP_FEE_WARN_LOWER_RANG
,
TEMP_FEE_FAIL_LOWER_RANG
,
TEMP_FEE_WARN_UPPER_RANG
,
TEMP_FEE_FAIL_UPPER_RANG
,
I_FEE_ANA_WARN_LOWER_RAN
,
I_FEE_ANA_FAIL_LOWER_RAN
,
I_FEE_ANA_WARN_UPPER_RAN
,
I_FEE_ANA_FAIL_UPPER_RAN
,
I_FEE_DIG_WARN_LOWER_RAN
,
I_FEE_DIG_FAIL_LOWER_RAN
,
I_FEE_DIG_WARN_UPPER_RAN
,
I_FEE_DIG_FAIL_UPPER_RAN
,
I_DPU_WARN_LOWER_RANGE
,
I_DPU_FAIL_LOWER_RANGE
,
I_DPU_WARN_UPPER_RANGE
,
I_DPU_FAIL_UPPER_RANGE
,
I_RSE_WARN_LOWER_RANGE
,
I_RSE_FAIL_LOWER_RANGE
,
I_RSE_WARN_UPPER_RANGE
,
I_RSE_FAIL_UPPER_RANGE
,
I_HEATER_WARN_LOWER_RANG
,
I_HEATER_FAIL_LOWER_RANG
,
I_HEATER_WARN_UPPER_RANG
,
I_HEATER_FAIL_UPPER_RANG
,
TEMP_PSU_WARN_LOWER_RANG
,
TEMP_PSU_FAIL_LOWER_RANG
,
TEMP_PSU_WARN_UPPER_RANG
,
TEMP_PSU_FAIL_UPPER_RANG
,
PARAM_CRC
,
pool_name
=
'
LIVE
'
)
#! CCS.BREAKPOINT
cfl
.
Tcsend_DB
(
'
DBS_TC_PARLOAD_ARM
'
,
pool_name
=
'
LIVE
'
)
# PARAM_SID = RSE_PARAM # KTP40100 [NOT EDITABLE]
MOTOR_CUR
=
150
# KTP40190
SETTL_TIME
=
20
# KTP40191
CHOP_DUTY
=
150
# KTP40192
MAX_MOTOR_TEMP
=
150
# KTP40193
MAX_ELEC_TEMP
=
150
# KTP40194
MAX_STEPS
=
2600
# KTP40195
RSE_CONFIG
=
0
# KTP40196
MAX_MOTOR_CUR
=
225
# KTP40197
EMERGENCY_STEPS
=
2816
# KTP40198
PARAM_CRC
=
0
PARAM_CRC
=
cfl
.
calc_param_crc
(
'
DBS_TC_PARLOAD_RSEPARAM
'
,
MOTOR_CUR
,
SETTL_TIME
,
CHOP_DUTY
,
MAX_MOTOR_TEMP
,
MAX_ELEC_TEMP
,
MAX_STEPS
,
RSE_CONFIG
,
MAX_MOTOR_CUR
,
EMERGENCY_STEPS
,
PARAM_CRC
)
cfl
.
Tcsend_DB
(
'
DBS_TC_PARLOAD_RSEPARAM
'
,
MOTOR_CUR
,
SETTL_TIME
,
CHOP_DUTY
,
MAX_MOTOR_TEMP
,
MAX_ELEC_TEMP
,
MAX_STEPS
,
RSE_CONFIG
,
MAX_MOTOR_CUR
,
EMERGENCY_STEPS
,
PARAM_CRC
,
pool_name
=
'
LIVE
'
)
#! CCS.BREAKPOINT
HctrlParExecPer
=
40
HctrlParMaxDeltaVoltage
=
0.5
HctrlParVctrlLowerVolt
=
0.30000001192092896
HctrlParVctrlUpperVolt
=
2.9000000953674316
HctrlParTempRefLL
=
-
120.0
HctrlParTempRefUL
=
-
114.0
HctrlParTempRef
=
-
117.0
HctrlParCoeffP
=
50.0
HctrlParCoeffI
=
0.0
HctrlParOffset
=
30.0
Spare16
=
0
ADCParamCrc
=
cfl
.
calc_param_crc
(
'
SASW SetParValHeatCtlCmd
'
,
HctrlParExecPer
,
HctrlParMaxDeltaVoltage
,
HctrlParVctrlLowerVolt
,
HctrlParVctrlUpperVolt
,
HctrlParTempRefLL
,
HctrlParTempRefUL
,
HctrlParTempRef
,
HctrlParCoeffP
,
HctrlParCoeffI
,
HctrlParOffset
,
ADCParamCrc
)
cfl
.
Tcsend_DB
(
'
DBS_TC_PARLOAD_ARM
'
,
pool_name
=
'
LIVE
'
)
cfl
.
Tcsend_DB
(
'
SASW SetParValHeatCtlCmd
'
,
HctrlParExecPer
,
HctrlParMaxDeltaVoltage
,
HctrlParVctrlLowerVolt
,
HctrlParVctrlUpperVolt
,
HctrlParTempRefLL
,
HctrlParTempRefUL
,
HctrlParTempRef
,
HctrlParCoeffP
,
HctrlParCoeffI
,
HctrlParOffset
,
ADCParamCrc
,
pool_name
=
'
LIVE
'
)
This diff is collapsed.
Click to expand it.