First cut of user CLI API 

Not in the real world of hardware. This ensures that the final resting position of the positioner is displayed to the user, otherwise the user asks the positioner to move, watches the output and the value displayed doesn’t reach the  target. This ensures that the value is displayed once after moving is indicated to stop and once for "good luck"

On Dec 5, 2014, at 12:01 AM, Thomas A Caswell <notifications@github.com<mailto:notifications@github.com>> wrote:


In ophyd/userapi/cli_api.py:

> +
> +    if not quiet:
> +      _blink(False)
> +      for p in positioner:
> +        _print_string(p.name)
> +      print("\n")
> +
> +    # Start Moving all Positioners
> +
> +    for p, v in zip(positioner, position):
> +      p.move(v, wait = False)
> +    time.sleep(0.01)
> +
> +    flag = 0
> +    moving = True
> +    while moving or (flag < 2):


This loop has to go through twice while finding no mortors are moving? That seems.....odd.....

—
Reply to this email directly or view it on GitHub<https://github.com/NSLS-II/ophyd/pull/23/files#r21355599>.