Files
sf-op/script/Diagnostics/LLMcal1.py
gobbo_a 8beeb7dbc7
2023-08-17 15:16:51 +02:00

18 lines
739 B
Python

# shift (and scale) the position of the start and end of the LLM GPAC waveform
# delta is in m, scaling may be unphysical (change of signal speed in the fibber)
llmlist = ("SINEG01-DLLM335", "SINDI01-DLLM105", "S10CB09-DLLM110", "S20CB04-DLLM110",
"S30CB05-DLLM110", "S30CB13-DLLM110", "SARMA01-DLLM125", "SARUN15-DLLM075",
"SATSY01-DLLM005", "SATDI01-DLLM305", "SATUN09-DLLM035")
llm = "SATSY01-DLLM005"
delta = 1.0
scale = 1.0 # should not be changed individually (same fibber type-> same signal speed)
z1 = caget(llm + ":Z-START-OP")
z2 = caget(llm + ":Z-STOP-OP")
dz = (z2 - z1) * scale
zc = (z1 + z2) / 2 + delta
z1 = zc - dz / 2
z2 = zc + dz / 2
caput(llm + ":Z-START-OP", z1)
caput(llm + ":Z-STOP-OP", z2)