Rotation Stages

This module provides support for connecting to a rotation stage server. The code for the rotation stage server is hosted in a private repo for security via obscurity. A rotation_stage client object can be created by

>>> import hardware
>>> rot = hardware.rotation_stages.NSC_A1(hostname='hostname.stanford.edu')
class hardware.rotation_stages.NSC_A1(hostname)[source]

Defines a rotation_stage_client object for communicating with a rotation stage server.

Parameters:

hostname (str) – The hostname of the server.

Variables:
  • angle (float) – The absolute position of the rotation stage in degrees
  • velocity (float) – The angular velocity of the rotation stage in degrees/second
ccw(val, background=False)[source]

Rotates counterclockwise through a specified angle.

Parameters:
  • val (float) – The amount to rotate in degrees
  • background (bool, optional) – If true, runs the rotation in the background
  • order to allow other commands to be executed while the stage rotates. (in) –
cw(val, background=False)[source]

Rotates clockwise through a specified angle.

Parameters:
  • val (float) – The amount to rotate in degrees
  • background (bool, optional) – If true, runs the rotation in the background
  • order to allow other commands to be executed while the stage rotates. (in) –