Skip to content

Commit

Permalink
Post Shift Speed Function add
Browse files Browse the repository at this point in the history
  • Loading branch information
dpeana committed Apr 6, 2022
1 parent e473f15 commit d059e58
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions andor_repo/andor/andor_driver.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,17 @@ def __init__(self):
#Settings we still need: temperature(-40), shift speed (3.3), Vertical Clock Voltage Amplitude (Normal/+0), Readout Rate (17MHz at 16-bit)
# ,Pre-Amp Gain (Gain 3), Output Amplifier (Electron Multiplying), Electron Multiplier (EM) Gain (Enabled->2)

def shift_speed_change(self, HSSpeed1 = 0, HSSpeed2 = 0, VSSpeed = 4, VSAmplitude = 0, PreAmpGain = 2):

(ret) = self.cam.SetHSSpeed(HSSpeed1, HSSpeed2) #David added this 0
(ret) = self.cam.SetVSSpeed(VSSpeed)#.3) #David added this
(ret) = self.cam.SetVSAmplitude(VSAmplitude) #David added this
(ret) = self.cam.SetPreAmpGain(PreAmpGain) #David added this

if atmcd.DRV_SUCCESS==ret:
print("shift success")
else:
print("shift_speed_change failed")

def retrieve_trigger(self,images=1,timeout = 0): # Time out time in seconds
# print("Retrieving trigger...")
Expand Down

0 comments on commit d059e58

Please sign in to comment.