added scanParameters in Python

This commit is contained in:
Erik Frojdh
2020-12-01 18:40:45 +01:00
parent 9048e7f6c4
commit a6e23b0509
6 changed files with 71 additions and 18 deletions

View File

@ -0,0 +1,19 @@
from slsdet import Mythen3, scanParameters, dacIndex
#Configure scan
sp = scanParameters()
sp.enable = 1
sp.dacInd = dacIndex.VTH1
sp.startOffset = 0
sp.stopOffset = 1000
sp.stepSize = 100
sp.dacSettleTime_ns = int(1e9)
# Send scan to detector
d = Mythen3()
d.setScan(sp)