Exemplo n.º 1
0
def monscn():   # for now, not sure if this should go in macros
  mono_mot_code = beamline_support.get_motor_code(beamline_support.motor_code_from_descriptor("monochromator"))  
  beamline_support.newfile("spectrum")
  current_filename = nowfile()
  daq_lib.open_shutter()
#  align(mono_mot_code)
  beamline_support.dscan(mono_mot_code)
  daq_lib.close_shutter()    
  command_string = "ln -sf %s spectrum.dat" % current_filename
  os.system(command_string)
  beamline_support.newfile("scandata")      
Exemplo n.º 2
0
def monscn():  # for now, not sure if this should go in macros
    mono_mot_code = beamline_support.get_motor_code(
        beamline_support.motor_code_from_descriptor("monochromator"))
    beamline_support.newfile("spectrum")
    current_filename = nowfile()
    daq_lib.open_shutter()
    beamline_support.dscan(mono_mot_code)
    daq_lib.close_shutter()
    command_string = "ln -sf %s spectrum.dat" % current_filename
    os.system(command_string)
    beamline_support.newfile("scandata")
Exemplo n.º 3
0
def align(motcode):
  beamline_support.dscan(motcode)
  copy_datafile_to_global(beamline_support.datafile_name,motcode)    
  beamline_support.newfile("scandata")    
  return
Exemplo n.º 4
0
def align(motcode):
    beamline_support.dscan(motcode)
    copy_datafile_to_global(beamline_support.datafile_name, motcode)
    beamline_support.newfile("scandata")
    return