Exemple #1
0
def set_mono_scan_points(numpoints):
  mono_mot_code = beamline_support.get_motor_code(beamline_support.motor_code_from_descriptor("monochromator"))
  step_inc = beamline_support.get_scanstepsize(mono_mot_code)
  scan_width = step_inc * (float(float(numpoints) - 1))
  half_scan_width = scan_width/2.0
#  daq_lib.set_field("mono_scan_points",int(float(numpoints)))
  beamline_support.set_scanpoints(mono_mot_code,int(float(numpoints)))
  beamline_support.set_scanstart(mono_mot_code,0.0 - half_scan_width)
  beamline_support.set_scanend(mono_mot_code,half_scan_width)
Exemple #2
0
def set_mono_scan_points(numpoints):
    mono_mot_code = beamline_support.get_motor_code(
        beamline_support.motor_code_from_descriptor("monochromator"))
    step_inc = beamline_support.get_scanstepsize(mono_mot_code)
    scan_width = step_inc * (float(float(numpoints) - 1))
    half_scan_width = scan_width / 2.0
    beamline_support.set_scanpoints(mono_mot_code, int(float(numpoints)))
    beamline_support.set_scanstart(mono_mot_code, 0.0 - half_scan_width)
    beamline_support.set_scanend(mono_mot_code, half_scan_width)
Exemple #3
0
def set_scanpoints(motcode,numpoints):
  beamline_support.set_scanpoints(motcode,numpoints)
Exemple #4
0
def set_scanpoints(motcode, numpoints):
    beamline_support.set_scanpoints(motcode, numpoints)