From 73181a43d91bcd2004f4b9d699f368cbf635ae2e Mon Sep 17 00:00:00 2001 From: Ferdi Franceschini Date: Fri, 17 Oct 2014 08:59:35 +1100 Subject: [PATCH] Wrapper templates to load syringe pump and mvp valve via sics_config.ini. --- .../instrument/config/environment/mvp_valve.sct | 12 ++++++++++++ .../instrument/config/environment/syringe_pump.sct | 11 +++++++++++ 2 files changed, 23 insertions(+) create mode 100644 site_ansto/instrument/config/environment/mvp_valve.sct create mode 100644 site_ansto/instrument/config/environment/syringe_pump.sct diff --git a/site_ansto/instrument/config/environment/mvp_valve.sct b/site_ansto/instrument/config/environment/mvp_valve.sct new file mode 100644 index 00000000..ce83b422 --- /dev/null +++ b/site_ansto/instrument/config/environment/mvp_valve.sct @@ -0,0 +1,12 @@ +# vim: ts=8 sts=2 sw=2 expandtab autoindent smartindent nocindent +driver mvp_valve = { + protocol = hamilton + wrapper_property nosctcontroller = True + class = environment + simulation_group = environment_simulation + add_args = 'id datype' + make_args = 'id datype' + code mkWrapper = {%% + add_mvp $name $ip_address $tcp_port a + %%} +} diff --git a/site_ansto/instrument/config/environment/syringe_pump.sct b/site_ansto/instrument/config/environment/syringe_pump.sct new file mode 100644 index 00000000..08998230 --- /dev/null +++ b/site_ansto/instrument/config/environment/syringe_pump.sct @@ -0,0 +1,11 @@ +# vim: ts=8 sts=2 sw=2 expandtab autoindent smartindent nocindent +driver syringe_pump = { + protocol = syringe + class = environment + simulation_group = environment_simulation + add_args = 'id datype' + make_args = 'id datype' + code mkWrapper = {%% + ::scobj::syr::mk_sct_syr $sct_controller environment $name + %%} +}