This commit is contained in:
root
2018-06-18 16:44:57 +02:00
parent 7da4e32097
commit bd9eaaf4d2
12 changed files with 189 additions and 61 deletions

View File

@@ -313,16 +313,16 @@ def stop_blm_ws(blm):
caput(blm + ":WS_STOP.PROC", 1)
def set_blm_ws_gain(blm, gain):
caput(blm + ":WS_PMT_GAIN_VOLTS", 1)
caput(blm + ":WS_PMT_GAIN_VOLTS", float(gain))
def get_blm_ws_gain(blm, gain):
caget(blm + ":WS_PMT_GAIN_VOLTS")
def get_blm_ws_gain(blm):
return caget(blm + ":WS_PMT_GAIN_VOLTS")
def set_blm_ws_att(blm, att):
caput(blm + ":WS_PMT_ATT_VOLTS", 1)
caput(blm + ":WS_PMT_ATT_VOLTS", att)
def get_blm_ws_att(blm, att):
def get_blm_ws_att(blm):
"""
string 0: Reference
string 1: "2 dB"
@@ -341,4 +341,4 @@ def get_blm_ws_att(blm, att):
string 14: 28 dB
string 15: 30 dB
"""
caget(blm + ":WS_PMT_ATT_VOLTS", 'i')
return caget(blm + ":WS_PMT_ATT_VOLTS", 'i')