예제 #1
0
def connect():
    if not hasattr(gatansocket, 'myGS'):
        gatansocket.myGS = gatansocket.GatanSocket()
    return gatansocket.myGS
예제 #2
0
import time
import gatansocket

gs = gatansocket.GatanSocket()

# readmodes = {'linear': 0, 'counting': 1, 'super resolution': 2}
# hardwareProc = {'none': 0, 'dark': 2, 'gain': 4, 'dark+gain': 6}

readMode = 1
scaling = 1.0
hardwareProc = 1
doseFrac = False
frameTime = 0.25
alignFrames = False
saveFrames = False
filt = 'None'

processing = 'unprocessed'
binning = 1
top = 0
left = 0
#bottom = 3712
#right = 3840
right = 3712
bottom = 3840

exposure = 0.5
shutterDelay = 0.0

def log(s):