ISIS Logo
INSTETC
INSTETC IOC
inst_string_parameters.template
Go to the documentation of this file.
1 record(waveform, "$(P)$(Q)")
2 {
3  field(DESC, "$(DESC)")
4  field(NELM, "256")
5  field(FTVL, "CHAR")
6  field(DTYP, "Soft Channel")
7  field(FLNK, "$(P)$(Q):SEND")
8  field(EGU, "$(UNITS)")
9  info(autosaveFields, "VAL")
10  info(PVCATEGORY, "$(CATEGORY)")
11 }
12 alias("$(P)$(Q)", "$(P)$(Q):SP")
13 
14 # force periodic update of values in case we get out of sync with DAE e.g. program restarts
15 # we use this rather than PINI in above as DAE may not be running when we start this ioc
16 record(bo, "$(P)$(Q):_SP_UPDATE")
17 {
18  field(SCAN, "10 second")
19  field(FLNK, "$(P)$(Q):SP.PROC")
20 }
21 
22 ## Send value to ICP.
23 ## $(DESC) must match the parameter name as used within the ISISICP
24 ## NELM above and NOD below must match
25 ## NOVA below must match with output DAE waveform (see substitutions)
26 record(aSub, "$(P)$(Q):SEND")
27 {
28  field(DESC, "Send $(DESC) to ICP")
29  field(SNAM, "stringConcatWithCtrlB")
30  field(FTA, "STRING")
31  field(INPA, "$(P)$(Q):SP.DESC NPP NMS")
32  field(FTB, "STRING")
33  field(INPB, "$(P)$(Q):SP.FTVL NPP NMS")
34  field(FTC, "STRING")
35  field(INPC, "$(P)$(Q):SP.EGU NPP NMS")
36  field(FTD, "CHAR")
37  field(NOD, "256")
38  field(INPD, "$(P)$(Q):SP.VAL NPP NMS")
39  field(FTVA, "CHAR")
40  field(NOVA, "512")
41  field(OUTA, "$(P)$(Q):_SENDV")
42  field(FLNK, "$(P)$(Q):_SENDPV")
43 }
44 
45 record(waveform, "$(P)$(Q):_SENDV")
46 {
47  field(FTVL, "CHAR")
48  field(NELM, "512")
49 }
50 
51 # add $ to PV name to trigger long string support, which gives array of char needed for waveform
52 record(waveform, "$(P)$(Q):_SENDPV")
53 {
54  field(INP, "$(P)$(OUT).NAME$")
55  field(FTVL, "CHAR")
56  field(NELM, "128")
57  field(FLNK, "$(P)$(Q):_SENDQ")
58 }
59 
60 record(aSub, "$(P)$(Q):_SENDQ")
61 {
62  field(SNAM, "queuedPVSet")
63  field(INPA, "$(P)$(Q):_SENDPV NPP")
64  field(FTA, "CHAR")
65  field(NOA, "128")
66  field(INPB, "$(P)$(Q):_SENDV NPP")
67  field(FTB, "CHAR")
68  field(NOB, "512")
69  field(INPC, "5")
70  field(FTC, "DOUBLE")
71  field(NOC, "1")
72 }
alias("$(P)ED:RBNUMBER","$(P)ED:RBNUMBER:SP:RBV")
record(stringin,"$(P)ED:RBNUMBER")
RB number.
Copyright © 2013 Science and Technology Facilities Council | Generated by   doxygen 1.8.5