-
Notifications
You must be signed in to change notification settings - Fork 16
/
SPMOTimaging.py
35 lines (31 loc) · 960 Bytes
/
SPMOTimaging.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
# Import a whole load of stuff
from System.IO import *
from System.Drawing import *
from System.Runtime.Remoting import *
from System.Threading import *
from System.Windows.Forms import *
from System.Xml.Serialization import *
from System import *
from System.Collections.Generic import Dictionary
from DAQ.Environment import *
from DAQ import *
from MOTMaster import*
def run_script():
return 0
def ScanAOMFreq(initial, final, interval):
count = 0
endcount = (final-initial)/interval
dic = Dictionary[String, Object]()
mm.SetScriptPath("C:\\Experiment Control\\EDMSuiteTrunk\\SympatheticMOTMasterScripts\\MOTimaging.cs")
while(count < endcount+1):
dic["aom2Detuning"] = initial - (count*interval)
dic["aom3Detuning"] = initial + (count*interval)
mm.Run(dic)
count=count + 1
return 0
def RepeatScansAOMF(initial, final, interval, numberofrepeats):
j = 0
while(j < numberofrepeats):
ScanAOMFreq(initial,final,interval)
j = j+1
return 0