From c69fe1571a75db869e26ccf6ef919b05e2e34654 Mon Sep 17 00:00:00 2001 From: sans Date: Wed, 9 Aug 2023 17:39:19 +0200 Subject: [PATCH] add hvolt_short --- cfg/sea/hvolt_short.stick.json | 12 ++++++++++++ cfg/stick/hvolt_short_cfg.py | 24 ++++++++++++++++++++++++ 2 files changed, 36 insertions(+) create mode 100644 cfg/sea/hvolt_short.stick.json create mode 100644 cfg/stick/hvolt_short_cfg.py diff --git a/cfg/sea/hvolt_short.stick.json b/cfg/sea/hvolt_short.stick.json new file mode 100644 index 0000000..48c403e --- /dev/null +++ b/cfg/sea/hvolt_short.stick.json @@ -0,0 +1,12 @@ +{"hcp": {"base": "/hcp", "params": [ +{"path": "", "type": "float", "kids": 10}, +{"path": "send", "type": "text", "readonly": false, "cmd": "hcp send", "visibility": 3}, +{"path": "status", "type": "text", "visibility": 3}, +{"path": "set", "type": "float", "readonly": false, "cmd": "hcp set"}, +{"path": "on", "type": "bool", "readonly": false, "cmd": "hcp on"}, +{"path": "setcurrent", "type": "float", "readonly": false, "cmd": "hcp setcurrent"}, +{"path": "ramp", "type": "float", "readonly": false, "cmd": "hcp ramp"}, +{"path": "rampmode", "type": "enum", "enum": {"no ramp": 0, "always ramp": 1, "ramp up only": 2}, "readonly": false, "cmd": "hcp rampmode"}, +{"path": "workset", "type": "float"}, +{"path": "current", "type": "float"}, +{"path": "currentlimit", "type": "float", "readonly": false, "cmd": "hcp currentlimit"}]}} diff --git a/cfg/stick/hvolt_short_cfg.py b/cfg/stick/hvolt_short_cfg.py new file mode 100644 index 0000000..8256e83 --- /dev/null +++ b/cfg/stick/hvolt_short_cfg.py @@ -0,0 +1,24 @@ +Node('cfg/stick/hvolt_short.cfg', + 'high voltage stick', +) + +Mod('sea_stick', + 'frappy_psi.sea.SeaClient', + 'stick sea connection for hvolt_short.stick', + config='hvolt_short.stick', + service='stick', +) + +Mod('ts', + 'frappy_psi.sea.SeaReadable', '', + io='sea_stick', + sea_object='tt', + json_file='ma10.config.json', + rel_paths=['ts'], +) + +Mod('hcp', + 'frappy_psi.sea.SeaReadable', '', + io='sea_stick', + sea_object='hcp', +)