After March2025 beamtime

This commit is contained in:
2025-04-28 14:46:04 +02:00
parent c5688804b0
commit 882c5cd4d3
3 changed files with 25 additions and 7 deletions

18
exp_temp/SAT.py Normal file
View File

@ -0,0 +1,18 @@
import time
print("SAT functions")
def move_in_steps(axis, steps, delay_per_step=1):
for step in steps:
start_time = time.time()
axis.set_target_value(step)
while axis.is_moving():
time.sleep(0.1)
elapsed = time.time() - start_time
wait_time = max(0, delay_per_step-elapsed)
time.sleep(wait_time)