This repository has been archived by the owner on Apr 19, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
72 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,4 +3,6 @@ | |
""" | ||
|
||
from .aps_source import * | ||
from .constants import * | ||
from .diagnostics import * | ||
from .stage_sample import * |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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__ = [ | ||
|
27 changes: 27 additions & 0 deletions
27
profile_bluesky/startup/instrument/devices/stage_sample.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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) |