added scanParameters in Python

This commit is contained in:
Erik Frojdh
2020-12-01 18:40:45 +01:00
parent c8c7bca6e0
commit 8b7023d9a3
5 changed files with 71 additions and 0 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)