コード例 #1
0
 mac.add_logging_PV('IC5', dummy_num_pv)
 mac.add_logging_PV('IC5-setting', dummy_num_pv)
 
 mac.add_logging_PV('IC6', dummy_num_pv)
 mac.add_logging_PV('IC6-setting', dummy_num_pv)
 
 mac.add_logging_PV('IC7', dummy_num_pv)
 mac.add_logging_PV('IC7-setting', dummy_num_pv)
 
 mac.add_logging_PV('IC8', dummy_num_pv)
 mac.add_logging_PV('IC8-setting', dummy_num_pv)
 
 mac.add_logging_PV('IC9', dummy_num_pv)
 mac.add_logging_PV('IC9-setting', dummy_num_pv)
 
 mac.add_logging_motor(samX)
 mac.add_logging_motor(samY)
 mac.add_logging_motor(samZ)
 
 mac.add_logging_PV('RX', dummy_num_pv)
 mac.add_logging_PV('RY', dummy_num_pv)
 mac.add_logging_PV('RZ', dummy_num_pv)
 
 mac.add_logging_PV('samX2', dummy_num_pv)
 mac.add_logging_motor(samY2)
 mac.add_logging_PV('samZ2', dummy_num_pv)
 
 mac.add_logging_PV('samZ3', dummy_num_pv)
 
 mac.add_logging_PV('HPx', dummy_num_pv)
 mac.add_logging_motor(HPth)
コード例 #2
0
 mac.add_logging_PV('IC5', dummy_num_pv)
 mac.add_logging_PV('IC5-setting', dummy_num_pv)
 
 mac.add_logging_PV('IC6', dummy_num_pv)
 mac.add_logging_PV('IC6-setting', dummy_num_pv)
 
 mac.add_logging_PV('IC7', dummy_num_pv)
 mac.add_logging_PV('IC7-setting', dummy_num_pv)
 
 mac.add_logging_PV('IC8', dummy_num_pv)
 mac.add_logging_PV('IC8-setting', dummy_num_pv)
 
 mac.add_logging_PV('IC9', dummy_num_pv)
 mac.add_logging_PV('IC9-setting', dummy_num_pv)
 
 mac.add_logging_motor(xr)
 mac.add_logging_motor(yr)
 mac.add_logging_motor(zr)
 
 mac.add_logging_motor(rotx)
 mac.add_logging_PV('RY', dummy_num_pv)
 mac.add_logging_motor(rotz)
 
 mac.add_logging_PV('samX2', dummy_num_pv)
 mac.add_logging_PV('samY2', dummy_num_pv)
 mac.add_logging_PV('samZ2', dummy_num_pv)
 
 mac.add_logging_PV('samZ3', dummy_num_pv)
 
 mac.add_logging_PV('HPx', dummy_num_pv)
 mac.add_logging_PV('HPth', dummy_num_pv)
コード例 #3
0
ファイル: template.py プロジェクト: junspark/python_tools
vert_bg = PyEpics.PV(vert_prefix+'.BG')

###################################################    
### END OF MCA DETECTOR SETUP
###################################################

###################################################    
### INITATE LOGGING
###################################################
mac.init_logging()
mac.add_logging_PV('Iring','S:SRcurrentAI')
mac.add_logging_PV('elapsed time','1edd:3820:scaler1.T")
mac.add_logging_PV('IC0-front','1edd:3820:scaler1_cts1.B')  
mac.add_logging_PV('IC1-back','1edd:3820:scaler1_cts1.C')
mac.add_logging_PV('NULL','1edd:3820:scaler1_cts1.D)
mac.add_logging_motor(samX)
mac.add_logging_motor(samY)
mac.add_logging_motor(samZ)
###################################################    
### END OF INITATE LOGGING
###################################################

###################################################    
### PERFORM SCANS
###################################################
mac.write_logging_header(logfile_pfname)

if testing_flag is True:
    print '###################################################'
    print 'In simulation exposure mode'
    print 'Detector exposure time will not be set'
コード例 #4
0
 mac.add_logging_PV('dummy IC4','1edd:3820:scaler1_cts1.C') ### NEED A PV
 mac.add_logging_PV('dummy IC4-setting', '1bmb:userCalc10.A')     ### NEED A PV
 
 mac.add_logging_PV('dummy IC5','1edd:3820:scaler1_cts1.C') ### NEED A PV
 mac.add_logging_PV('dummy IC5-setting', '1bmb:userCalc10.A')     ### NEED A PV
 
 mac.add_logging_PV('dummy IC6','1edd:3820:scaler1_cts1.C') ### NEED A PV
 mac.add_logging_PV('dummy IC6-setting', '1bmb:userCalc10.A')     ### NEED A PV
 
 mac.add_logging_PV('dummy IC7','1edd:3820:scaler1_cts1.C') ### NEED A PV
 mac.add_logging_PV('dummy IC7-setting', '1bmb:userCalc10.A')     ### NEED A PV
 
 mac.add_logging_PV('dummy IC8','1edd:3820:scaler1_cts1.C') ### NEED A PV
 mac.add_logging_PV('dummy IC8-setting', '1bmb:userCalc10.A')     ### NEED A PV
 
 mac.add_logging_motor(samX) ### NEED A PV OR MOTOR
 mac.add_logging_motor(samY) ### NEED A PV OR MOTOR
 mac.add_logging_motor(samZ) ### NEED A PV OR MOTOR
 
 mac.add_logging_motor(RX)   ### NEED A PV OR MOTOR
 mac.add_logging_motor(RY)   ### NEED A PV OR MOTOR
 mac.add_logging_motor(RZ)   ### NEED A PV OR MOTOR
 
 mac.add_logging_motor(samX2)    ### NEED A PV OR MOTOR
 mac.add_logging_motor(samY2)    ### NEED A PV OR MOTOR
 mac.add_logging_motor(samZ2)    ### NEED A PV OR MOTOR
 
 mac.add_logging_motor(samZ3)    ### NEED A PV OR MOTOR
 
 mac.add_logging_motor(Hx)       ### NEED A PV OR MOTOR
 mac.add_logging_motor(ThH)      ### NEED A PV OR MOTOR