#! Generated by VisualDCT v2.6 #! DBDSTART #! DBDEND record(calc, "$(PRIMARY):$(MICRO):$(UNIT):$(ATTRIBUTE):$(STATUS)") { field(DESC, "$(DESC)") field(CALC, "C?B:((A&(1<<$(B)))>0)?1:0") # Original calc field: # field(CALC, "(((A&(1<<$(B)))>0)?1:0)") # # Inputs: # INPA - PIOP pv name for digital input signal # INPB - HPRF macro is the digial innput signal from the HPRF. # The pv naming convention is: # :::. The default # The default for them macro HPRF=0, which would use # use the PIOP signal instead. # C - Flag indicating if PIOP ()0) signal or HPRF (1) # signal should be used.The default state is to use # the PIOP signal, so the CTL macro wouuld use the defult # of 0. Otherwise, the CTL=:::MOD:CTL # which is found in the HighPowerRF ioc application file # klystorn_modulator_ctrl.template # field(SCAN, "1 second") field(INPA, "$(PRIMARY):$(MICRO):$(UNIT):$(INPATTRIBUTE)") field(INPB, "$(HPRF=0)") field(INPC, "$(CTL=0)") info(autosaveFields,"C INPC DESC") } #! Further lines contain data used by VisualDCT #! View(5760,5359,2.5) #! Record("$(PRIMARY):$(MICRO):$(UNIT):$(ATTRIBUTE):$(STATUS)",2420,2208,0,1,"$(PRIMARY):$(MICRO):$(UNIT):$(ATTRIBUTE):$(STATUS)") #! Field("$(PRIMARY):$(MICRO):$(UNIT):$(ATTRIBUTE):$(STATUS).INPA",16777215,0,"$(PRIMARY):$(MICRO):$(UNIT):$(ATTRIBUTE):$(STATUS).INPA")