small changes
This commit is contained in:
@ -1,73 +1,73 @@
|
|||||||
###################################################
|
###################################################
|
||||||
#
|
#
|
||||||
# phoenix standard devices (motors)
|
# phoenix standard devices (motors)
|
||||||
#
|
#
|
||||||
#
|
#
|
||||||
#####################################################
|
#####################################################
|
||||||
|
|
||||||
#
|
#
|
||||||
# MOTORS ES1
|
# MOTORS ES1
|
||||||
#
|
#
|
||||||
|
|
||||||
ScanX:
|
ScanX:
|
||||||
readoutPriority: baseline
|
readoutPriority: baseline
|
||||||
description: 'Horizontal sample position'
|
description: 'Horizontal sample position'
|
||||||
deviceClass: ophyd.EpicsMotor
|
deviceClass: ophyd.EpicsMotor
|
||||||
deviceConfig:
|
deviceConfig:
|
||||||
prefix: 'X07MB-ES-MA1:ScanX'
|
prefix: 'X07MB-ES-MA1:ScanX'
|
||||||
deviceTags:
|
deviceTags:
|
||||||
- ES-MA1
|
- ES-MA1
|
||||||
- phoenix_bec/device_configs/phoenix_devices.yaml
|
- phoenix_bec/device_configs/phoenix_devices.yaml
|
||||||
onFailure: retry
|
onFailure: retry
|
||||||
enabled: true
|
enabled: true
|
||||||
readOnly: false
|
readOnly: false
|
||||||
softwareTrigger: false
|
softwareTrigger: false
|
||||||
|
|
||||||
ScanY:
|
ScanY:
|
||||||
readoutPriority: baseline
|
readoutPriority: baseline
|
||||||
description: 'Horizontal sample position'
|
description: 'Horizontal sample position'
|
||||||
deviceClass: ophyd.EpicsMotor
|
deviceClass: ophyd.EpicsMotor
|
||||||
deviceConfig:
|
deviceConfig:
|
||||||
prefix: 'X07MB-ES-MA1:ScanY'
|
prefix: 'X07MB-ES-MA1:ScanY'
|
||||||
deviceTags:
|
deviceTags:
|
||||||
- ES-MA1
|
- ES-MA1
|
||||||
- phoenix_bec/device_configs/phoenix_devices.yaml
|
- phoenix_bec/device_configs/phoenix_devices.yaml
|
||||||
onFailure: retry
|
onFailure: retry
|
||||||
enabled: true
|
enabled: true
|
||||||
readOnly: false
|
readOnly: false
|
||||||
softwareTrigger: false
|
softwareTrigger: false
|
||||||
#
|
#
|
||||||
#
|
#
|
||||||
# DIODES from ES1 ADC
|
# DIODES from ES1 ADC
|
||||||
#
|
#
|
||||||
#
|
#
|
||||||
|
|
||||||
SAI_07_MEAN:
|
SAI_07_MEAN:
|
||||||
readoutPriority: monitored
|
readoutPriority: monitored
|
||||||
description: DIODE
|
description: DIODE
|
||||||
deviceClass: ophyd.EpicsSignalRO
|
deviceClass: ophyd.EpicsSignalRO
|
||||||
deviceConfig:
|
deviceConfig:
|
||||||
auto_monitor: true
|
auto_monitor: true
|
||||||
read_pv: 'X07MB-OP2-SAI_07:MEAN'
|
read_pv: 'X07MB-OP2-SAI_07:MEAN'
|
||||||
deviceTags:
|
deviceTags:
|
||||||
- PHOENIX
|
|
||||||
- phoenix_bec/device_configs/phoenix_devices.yaml
|
|
||||||
onFailure: buffer
|
|
||||||
enabled: true
|
|
||||||
readOnly: true
|
|
||||||
softwareTrigger: false
|
|
||||||
|
|
||||||
SAI_08_MEAN:
|
|
||||||
readoutPriority: monitored
|
|
||||||
description: DIODE
|
|
||||||
deviceClass: ophyd.EpicsSignalRO
|
|
||||||
deviceConfig:
|
|
||||||
auto_monitor: true
|
|
||||||
read_pv: 'X07MB-OP2-SAI_08:MEAN'
|
|
||||||
deviceTags:
|
|
||||||
- PHOENIX
|
- PHOENIX
|
||||||
- phoenix_bec/device_configs/phoenix_devices.yaml
|
- phoenix_bec/device_configs/phoenix_devices.yaml
|
||||||
onFailure: buffer
|
onFailure: buffer
|
||||||
enabled: true
|
enabled: true
|
||||||
readOnly: true
|
readOnly: true
|
||||||
softwareTrigger: false
|
softwareTrigger: false
|
||||||
|
|
||||||
|
SAI_08_MEAN:
|
||||||
|
readoutPriority: monitored
|
||||||
|
description: DIODE
|
||||||
|
deviceClass: ophyd.EpicsSignalRO
|
||||||
|
deviceConfig:
|
||||||
|
auto_monitor: true
|
||||||
|
read_pv: 'X07MB-OP2-SAI_08:MEAN'
|
||||||
|
deviceTags:
|
||||||
|
- PHOENIX
|
||||||
|
- phoenix_bec/device_configs/phoenix_devices.yaml
|
||||||
|
onFailure: buffer
|
||||||
|
enabled: true
|
||||||
|
readOnly: true
|
||||||
|
softwareTrigger: false
|
||||||
|
@ -9,9 +9,16 @@ DIODE = EpicsSignal(name='SI',read_pv='X07MB-OP2-SAI_07:MEAN')
|
|||||||
SMPL = EpicsSignal(name='SMPL',read_pv='X07MB-OP2:SMPL')
|
SMPL = EpicsSignal(name='SMPL',read_pv='X07MB-OP2:SMPL')
|
||||||
CYCLES = EpicsSignal(name='SMPL',read_pv='X07MB-OP2:TOTAL-CYCLES',write_pv='X07MB-OP2:TOTAL-CYCLES')
|
CYCLES = EpicsSignal(name='SMPL',read_pv='X07MB-OP2:TOTAL-CYCLES',write_pv='X07MB-OP2:TOTAL-CYCLES')
|
||||||
|
|
||||||
|
|
||||||
|
prefix='XXXX:'
|
||||||
|
y_cpt = Cpt(EpicsMotor, 'ScanX')
|
||||||
# Option 2 using component
|
# Option 2 using component
|
||||||
|
prefix='X07MB-ES-MA1:'
|
||||||
|
dd=Device('X07MB-ES-MA1:',name=('device'))
|
||||||
|
y_cpt_prefix = Cpt(EpicsMotor,'ScanX',parent=Device)
|
||||||
|
|
||||||
class StageXY(Device):
|
class StageXY(Device):
|
||||||
|
|
||||||
x = Cpt(EpicsMotor, 'ScanX')
|
x = Cpt(EpicsMotor, 'ScanX')
|
||||||
y = Cpt(EpicsMotor, 'ScanY')
|
y = Cpt(EpicsMotor, 'ScanY')
|
||||||
|
|
||||||
@ -34,6 +41,10 @@ xy_stage = StageXY('X07MB-ES-MA1:', name='stage')
|
|||||||
#
|
#
|
||||||
#########################################################
|
#########################################################
|
||||||
|
|
||||||
|
print(xy_stage.x.prefix)
|
||||||
|
xy_stage.__dict__
|
||||||
|
|
||||||
|
|
||||||
# to move motor use
|
# to move motor use
|
||||||
# stage.x.move(0)
|
# stage.x.move(0)
|
||||||
# to see all dict
|
# to see all dict
|
Reference in New Issue
Block a user