Help on module gte_control: NAME gte_control FILE c:\users\skuba\documents\jupyter\gte_control.py FUNCTIONS add_num(num, name='counter.txt') Adds 1 to num ands saves as shot number into counter file. Input: num -- int, number of previous shot name = counter.txt -- string, name of file containign counter charge(wait=2, url='http://192.168.254.2/', shortcut=1, charging=2) Charges condenser. Input: wait = 2 -- duration of charging in seconds url = IP -- ip adress of I/O module shortcut = sc -- number of relay switching shortcutting charging = ch -- number of relay switching charging close_all(url='http://192.168.254.2/') Switches all relays to defaul position, called 'off'. Input: url = IP -- ip adress of I/O module discharge(wait=0.5, stab=False, url='http://192.168.254.2/', disch=8, cstab=7, delay=0.1) Discharges condenser. Input: wait = 0.5 -- delay between opening discharging relay and shortcutting condenser stab_i = False -- toggles current stabilisation url = IP -- ip adress of I/O module disch = dch -- number of relay switching discharging thyr = th --number of relay switching thyristor get_num(name='counter.txt') Loads shot number from file. Input: name = counter.txt -- string, name of file containign counter input_read(num, url='http://192.168.254.2/') Gets input messured on I/O module's input numbered num Input: num -- number of input url = IP -- ip adress of I/O module Output: val -- int, 1 or 0 representing logical values on or off make_graphs(graphs, save=False) shot(wait=0.1, chwait=2, dchwait=0.5, url='http://192.168.254.2/', stab_i=False, cstab=7, graphs=[], save=False, noscope=False) Executes Golem tokamak like shot: charges and discharges condenser. Input: wait = 0.1 -- delay between charge and discharge in seconds chwait = 2 -- duration of charging in seconds dchwait = 0.5 -- duration of discharge in seconds url = IP -- ip adress of I/O module stab_i = False -- toggles current stabilisation cstab = cur_stab -- number of relay switching current stabilisation on graphs = [] -- numbers of channels on osciloscope to be ploted save = False -- enables saving graphs to file noscope = False -- disables osciloscope Output: none or graphs switch_off(num, url='http://192.168.254.2/') Switches off relay numbered num. Input: num -- number of relay to be switched url = IP -- ip adress of I/O module switch_on(num, url='http://192.168.254.2/') Switches on relay numbered num. Input: num -- number of relay to be switched url = IP -- ip adress of I/O module