diff --git a/docs/caget.md b/docs/caget.md new file mode 100644 index 0000000..24e56f2 --- /dev/null +++ b/docs/caget.md @@ -0,0 +1,12 @@ +# Using `caget` to check the values of PVs + +``` +ssh sls-lc +``` + +On sls-lc: +``` +ca office network +export EPICS_CA_ADDR_LIST="129.129.130.255 129.129.131.255 129.129.137.255 129.129.158.255 129.129.217.255 129.129.150.255 129.129.152.255 sls-cagw.psi.ch:5062" +caget AGEBD-PLAYGROUND-DEV:AO +``` diff --git a/templates/service/{{service_name_lower}}/current/app/src/AGEBD-SERVICE-{{service_name_upper}}.py.jinja b/templates/service/{{service_name_lower}}/current/app/src/AGEBD-SERVICE-{{service_name_upper}}.py.jinja index 9dc4c24..119108c 100644 --- a/templates/service/{{service_name_lower}}/current/app/src/AGEBD-SERVICE-{{service_name_upper}}.py.jinja +++ b/templates/service/{{service_name_lower}}/current/app/src/AGEBD-SERVICE-{{service_name_upper}}.py.jinja @@ -82,6 +82,7 @@ class Service(BaseService[PVs]): # update some pvs/vals my_pv1_random_val = str(time.clock_gettime_ns(0))[-1] + print(f"Putting: {my_pv1_random_val}") # TODO: remove self.pvs.my_pv1.put(my_pv1_random_val) # self.pvs.my_pv2.put("MY_PV2 value")