-
Notifications
You must be signed in to change notification settings - Fork 14
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
10 changed files
with
74 additions
and
102 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
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
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
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,35 +1,36 @@ | ||
#!/home/qvr31998/malcolm/pymalcolm/malcolm/imalcolm.py | ||
|
||
- parameters.string: | ||
- builtin.defines.string: | ||
name: configDir | ||
description: Where to store saved configs | ||
default: /dls_sw/i14/epics/malcolm | ||
value: /dls_sw/i14/epics/malcolm | ||
|
||
- blocks.xspress3.Xspress3DetectorManager: | ||
- xspress3.blocks.xspress3_detector_manager_block: | ||
pvPrefix: BL14I-EA-XSP3-01 | ||
mriPrefix: BL14I-ML-XSP3-01 | ||
configDir: $(configDir) | ||
|
||
#- blocks.excalibur.ExcaliburDetectorManager: | ||
# pvPrefix: BL14I-EA-EXCBR-01 | ||
# mriPrefix: BL14I-ML-EXCBR-01 | ||
# configDir: $(configDir) | ||
- excalibur.blocks.excalibur_detector_runnable_block: | ||
pvPrefix: BL14I-EA-EXCBR-01 | ||
mriPrefix: BL14I-ML-EXCBR-01 | ||
configDir: $(configDir) | ||
|
||
- blocks.demo.I14PMACManager: | ||
- BL14I.blocks.pmac_runnable_block: | ||
mriPrefix: BL14I-ML-BRICK-14 | ||
configDir: $(configDir) | ||
|
||
- blocks.pandabox.PandABoxManager: | ||
- ADPandABlocks.blocks.pandablocks_runnable_block: | ||
pvPrefix: BL14I-MO-PANDA-01 | ||
mriPrefix: BL14I-ML-PANDA-01 | ||
hostname: bl14i-mo-pandabox-01 | ||
configDir: $(configDir) | ||
|
||
- blocks.demo.I14Manager: | ||
- BL14I.blocks.xspress3_scan_block: | ||
mri: BL14I-ML-SCAN-01 | ||
det: BL14I-ML-XSP3-01 | ||
brick: BL14I-ML-BRICK-14 | ||
pandabox: BL14I-ML-PANDA-01 | ||
configDir: $(configDir) | ||
|
||
- comms.pva.PvaServerComms: | ||
- pva.blocks.pva_server_block: | ||
mri: $(yamlname):PVA-SERVER | ||
|
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,7 @@ | ||
from malcolm.yamlutil import make_block_creator, check_yaml_names | ||
|
||
pmac_runnable_block = make_block_creator(__file__, "pmac_runnable_block.yaml") | ||
xspress3_scan_block = make_block_creator(__file__, "xspress3_scan_block.yaml") | ||
|
||
__all__ = check_yaml_names(globals()) | ||
|
22 changes: 6 additions & 16 deletions
22
malcolm/blocks/demo/I14PMACManager.yaml → ...les/BL14I/blocks/pmac_runnable_block.yaml
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,38 +1,28 @@ | ||
- parameters.string: | ||
- builtin.parameters.string: | ||
name: mriPrefix | ||
description: MRI for created block | ||
|
||
- parameters.string: | ||
- builtin.parameters.string: | ||
name: configDir | ||
description: Where to store saved configs | ||
|
||
- controllers.RunnableController: | ||
- scanning.controllers.RunnableController: | ||
mri: $(mriPrefix) | ||
configDir: $(configDir) | ||
|
||
#- includes.pmac.compoundmotor_collection: | ||
# mri: I18-T1-X | ||
# prefix: BL18I-MO-TABLE-01:CSX | ||
# scannable: t1x | ||
|
||
#- includes.pmac.compoundmotor_collection: | ||
# mri: I18-T1-Y | ||
# prefix: BL18I-MO-TABLE-01:HEIGHT | ||
# scannable: sc_MicroFocusSampleY | ||
|
||
- includes.pmac.rawmotor_collection: | ||
- pmac.includes.rawmotor_collection: | ||
mri: BL14I-ML-STAGE-01:XC | ||
prefix: BL14I-MO-STEP-14:M1 | ||
motorPrefix: BL14I-MO-STAGE-01:XC | ||
scannable: stage1_x | ||
|
||
- includes.pmac.rawmotor_collection: | ||
- pmac.includes.rawmotor_collection: | ||
mri: BL14I-ML-STAGE-01:YC | ||
prefix: BL14I-MO-STEP-14:M2 | ||
motorPrefix: BL14I-MO-STAGE-01:YC | ||
scannable: stage1_y | ||
|
||
- includes.pmac.trajectory_collection: | ||
- pmac.includes.trajectory_collection: | ||
mri: $(mriPrefix):TRAJ | ||
prefix: BL14I-MO-STEP-14 | ||
statPrefix: BL14I-MO-STEP-14 |
20 changes: 10 additions & 10 deletions
20
malcolm/blocks/demo/I14Manager.yaml → ...les/BL14I/blocks/xspress3_scan_block.yaml
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,39 +1,39 @@ | ||
- parameters.string: | ||
- builtin.parameters.string: | ||
name: mri | ||
description: MRI for created block | ||
|
||
- parameters.string: | ||
- builtin.parameters.string: | ||
name: det | ||
description: MRI for detector DetectorManager object | ||
|
||
- parameters.string: | ||
- builtin.parameters.string: | ||
name: brick | ||
description: MRI for brick PMACManager object | ||
|
||
- parameters.string: | ||
- builtin.parameters.string: | ||
name: pandabox | ||
description: MRI for PandABoxManager object | ||
|
||
- parameters.string: | ||
- builtin.parameters.string: | ||
name: configDir | ||
description: Where to store saved configs | ||
|
||
- controllers.RunnableController: | ||
- scanning.controllers.RunnableController: | ||
mri: $(mri) | ||
axesToMove: [stage1_x, stage1_y] | ||
configDir: $(configDir) | ||
|
||
- parts.ADCore.DatasetTablePart: | ||
- ADCore.parts.DatasetTablePart: | ||
name: DSET | ||
|
||
- parts.pmac.PmacRunnableChildPart: | ||
- pmac.parts.PmacRunnableChildPart: | ||
name: BRICK | ||
mri: $(brick) | ||
|
||
- parts.ADCore.DatasetRunnableChildPart: | ||
- ADCore.parts.DatasetRunnableChildPart: | ||
name: DET | ||
mri: $(det) | ||
|
||
- parts.ADCore.DatasetRunnableChildPart: | ||
- ADCore.parts.DatasetRunnableChildPart: | ||
name: PANDABOX | ||
mri: $(pandabox) |
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
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,11 +1,13 @@ | ||
from malcolm.modules.builtin.parts import StatefulChildPart | ||
from malcolm.modules.scanning.controllers import RunnableController | ||
from malcolm.modules.ADCore.infos import NDArrayDatasetInfo | ||
from malcolm.modules.ADCore.infos import NDArrayDatasetInfo, UniqueIdInfo | ||
|
||
|
||
class FemDriverPart(StatefulChildPart): | ||
# Only need to report that we will make a dataset, top level will do all | ||
# control | ||
@RunnableController.ReportStatus | ||
def report_configuration(self, _): | ||
return [NDArrayDatasetInfo(rank=2)] | ||
def report_configuration(self, context): | ||
child = context.block_view(self.params.mri) | ||
return [ | ||
NDArrayDatasetInfo(rank=2), UniqueIdInfo(child.arrayCounter.value)] |
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