#!/usr/bin/env python3 import blueskyDESY from bluesky import RunEngine from bluesky.plan_stubs import mv def main(): POS1 = 0. POS2 = 0.1 RE = RunEngine() eh_mot65 = blueskyDESY.motorTango( name = "eh_mot65") print( "%s at %g, going to %g" % ( eh_mot65.name, eh_mot65.position, POS1)) RE( mv( eh_mot65, POS1)) print( "%s at %g going to %g" % ( eh_mot65.name, eh_mot65.position, POS2)) RE( mv( eh_mot65, POS2)) print( "%s at %g" % ( eh_mot65.name, eh_mot65.position)) return if __name__ == "__main__": main()