/matching_2

MTAS Gain Match script and associated slim scan code

Primary LanguageC++MIT LicenseMIT

Instructions to be expanded as necessary in situ.

Note: '>' = type the following

> cd ~/matching_2

open interactive session with:

> pydamm

the interactive session has a prompt like 'In [#]:' where # is a line number.

> %run matching2.py

you now have access to functions defined in the python script. i.e.

#Make definitions:
def validate_fit(fitlist,isC):
def run_pixie(waitTime=wait,frequency=freq):  
def rerun_pixie(waitTime=wait,frequency=freq):  
def get_voltage(mtasid):
def set_voltage(mtasid,volts):
def set_all_on_off(onOff):
def set_rise_rate_all(rate):
def set_dv(mtasid,dvolts):
def open_damm():
def close_damm(damm):
def zero_his(mtasid,damm):
def write_out_HV(filename='hv_mtas.dat'):
def read_in_HV(filename='hv_mtas.dat'):
def set_HV_from_read(hv_array):
def dict_add(id,dict,volt,pk):
def matching2():


first use write_out_HV to save current HV settings:
write_out_HV('dat_files/hv_mtas.Apr0518.dat')