Skip to content
This repository has been archived by the owner on Apr 19, 2024. It is now read-only.

Commit

Permalink
MNT #332 s_stage
Browse files Browse the repository at this point in the history
  • Loading branch information
prjemian committed Feb 21, 2020
1 parent 997fbac commit 294bcfb
Show file tree
Hide file tree
Showing 5 changed files with 72 additions and 1 deletion.
2 changes: 2 additions & 0 deletions profile_bluesky/startup/instrument/devices/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,6 @@
"""

from .aps_source import *
from .constants import *
from .diagnostics import *
from .stage_sample import *
21 changes: 21 additions & 0 deletions profile_bluesky/startup/instrument/devices/constants.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@

"""
instrument constants
"""

__all__ = [
'constants',
]

from ..session_logs import logger
logger.info(__file__)

constants = {
"SAXS_TR_PINY_OFFSET" : 10, # how long to measure transmission for
"SAXS_TR_TIME" : 3, # measured on 12/09/2018 JIL, after mica windows repair and realignment of front
"SAXS_PINZ_OFFSET" : 5, # move of pinz before any sample or piny move
"TR_MAX_ALLOWED_COUNTS" : 980000, # maximum allowed counts for upd before assume topped up
"USAXS_AY_OFFSET" : 8, # USAXS transmission diode AY offset, calibrated by JIL 2018/04/10 For Delhi crystals diode is between 5 - 10 mm .. center is 8mm
"MEASURE_DARK_CURRENTS" : True, # MEASURE dark currents on start of data collection
"SYNC_ORDER_NUMBERS" : True, # sync order numbers among devices on start of collect data sequence
}
2 changes: 1 addition & 1 deletion profile_bluesky/startup/instrument/devices/diagnostics.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@

"""
APS only: connect with facility information
PSS, FE-EPS, BL-EPS, : diagnostics
"""

__all__ = [
Expand Down
27 changes: 27 additions & 0 deletions profile_bluesky/startup/instrument/devices/stage_sample.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@

"""
sample stage
"""

__all__ = [
's_stage',
]

from ..session_logs import logger
logger.info(__file__)

from ophyd import Component, MotorBundle
from .usaxs_motor import UsaxsMotor

class UsaxsSampleStageDevice(MotorBundle):
"""USAXS sample stage"""
x = Component(
UsaxsMotor,
'9idcLAX:m58:c2:m1',
labels=("sample",))
y = Component(
UsaxsMotor,
'9idcLAX:m58:c2:m2',
labels=("sample",))

s_stage = UsaxsSampleStageDevice('', name='s_stage')
21 changes: 21 additions & 0 deletions profile_bluesky/startup/instrument/devices/usaxs_motor.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@

"""
motor customizations
"""

__all__ = [
'UsaxsMotor',
'UsaxsMotorTunable',
]

from ..session_logs import logger
logger.info(__file__)

from apstools.devices import AxisTunerMixin
from apstools.devices import EpicsMotorLimitsMixin
from ophyd import Component, EpicsMotor, Signal

class UsaxsMotor(EpicsMotorLimitsMixin, EpicsMotor): pass

class UsaxsMotorTunable(AxisTunerMixin, UsaxsMotor):
width = Component(Signal, value=0)

0 comments on commit 294bcfb

Please sign in to comment.