Exemple #1
0
        def inner_per_step(detectors, motor, step):
            # Set a checkpoint in case the scan is interrupted
            yield from checkpoint()
            """
            # Notify the user where we are trying to move to
            goal_sample = inner_motor.position + inner_step_size
            goal_index = inner_motor.locate_1d(goal_sample)
            logger.info('Inner Step: Moving {0} to {1} (sample {2})'.format(
                inner_motor.name, goal_index, goal_sample))
            """

            # Move the motor to the inputted step
            yield from rel_set(inner_motor, inner_step_size, wait=True)

            if use_sequencer:
                # # Start and wait for the sequencer
                logger.info('Inner Step: Starting the sequencer')
                yield from abs_set(sequencer, 1, wait=True)

            # Wait the specified amount of time
            if wait:
                logger.info(
                    "Inner Step: Waiting for {0} second(s)...".format(wait))
                time.sleep(wait)

            # Fill the dataframe
            scan_positions.append((
                outer_motor.position,
                #inner_motor.chip,
                inner_motor.position,
                #*inner_motor.index,
                #*inner_motor.coordinates
            ))
Exemple #2
0
 def naive_step():
     return (yield from rel_set(motor, 0.01, wait=True))
Exemple #3
0
 def naive_step():
     return (yield from rel_set(motor, first_step, wait=True))
 def test_plan():
     for mot in motors:
         yield from rel_set(mot, 1)
         # Grab the final positions
         final_positions.append(mot.position)