Llrf2-R1-0-0 Initial release to do: fix format warnings to do: add DTYP field to templates for ai and ao Llrf2-R1-0-1 DTYP fixed for all ai and ao in non-fb templates and in laser templates for now build all non-fb templates and laser templates for now Llrf2-R1-1-0 drvLlrf.c filling out all cases fix sum of squares calculation llrfMacros.h fill out enum list add iocBoot/ioc-in20-rf02 to load tc0 only and make tc0-free version of ioc-in20-rf01/st-prod split this app so it can run on two IOCs: all-but-tcav0 on ioc-in20-rf01 and tcav0 on ioc-in20-rf02 Llrf2_R1-1-1 move to event-2-6-2 change L1S's $(pad) macro def to 5 for final configuration merge in recent changes from llrfApp: - we are ready for VME reboot to ENABLE send to MDL PAC (st-prod.cmd and st-prod-tc0free.cmd) - fix EGU for PDES2805 and PDES119 in llrf.lsr_ph1_template (were 2856) fixes from 7/1-3/8: MAX_ARRAY_BYTES is needed in st*.cmd read_waveform must inc by 2 each bptr parse fixes so that TC0App gets dbd to define bsaInit and bsaSecAvg EVEN tho' it has no EVR fixes to driver routines for some cases Llrf2-R1-1-2 testing with TCAV0 in prod'n and the biggest showstopper to getting this into production ends up being related to the new LLRF DTYP ao records. The VAL (and/or OVAL) field are saved and restored fine. You can see this during iocInit if flag is turned on in init_record routine to write out VAL, OVAL. BUT, by virtue of the dbpf to set PROC to 1 to fix SEVR and STAT, when write_ao runs, the VAL and OVAL have been lost. Looking in base's aoRecord.c for ideas and implementing these did not fix it. Trying this with longouts was another goose chase as these lose any decimal portion (duh!). So now making a kluge potentially doubling number of ao records, half of them Soft Channel to restore the floating point VAL (Rec. Ref. Manual mentions using ao records for this purpose) and the *2 versions being the records that take the VAL (via OUT of the first) and get it into the global struct for the station where it can be used in calcs. Llrf2-R1-1-3 Fixed rest of POC (ch1-3), all of AVC, APC, PWT and AWT ao records Added OSV and ZSV for binary outputs to be able to alarm when feedbacks are off and when send to PACs are disabled. Added calcs to use to set dynamic alarm limits on average actual phase and amplitudes as a function of the setppoints. Modified rf_tc0_main.edl for these alarms and to be able to set ACCESS PV (to toggle PAD to do udp send) Llrf-R1-1-4 Db/llrf.tc0_template new aos need flnk from source. This causes total pwt and awt to process, too. One more fix for this file is that the alarm limit calcs were bad when desired value is 0 because the lims are all mults of desired so this made MAJOR alarm when setpoint=actual=0, which is wrong. src/devAiLlrf.c read_ai gets more debug info src/drvLlrf.c llrfReport gets fix to dumping phase and ampl weightings Llrf-R1-1-5 Hybrid code for testing old and new code on one IOC in production. Old llrf.l0*, llrf.lsr_ref*, llrf.ph2* templates had to be brought over to this package and get DTYP column added for ao and ai records to bring them up to llrf2 compat. Llrf2-R1-1-5 retagging Llrf2-R1-1-6 Checkin all changes/fixes from 7/16/8 software test day. At this point, L1S and L1X BSA working with feedbacks working, too. Llrf2-R1-1-7 Checkin all changes in prep for 7/22/8 installation. PCAV1 and 2 and laser indep from PCAV1 Bring in all GUIs from production now Llrf2-R1-1-8 Checkin all fixes from 7/22/8 integration test Add IOC-IN20-RF01.cwConfig now. Add missing PSETs, too. Llrf2-R1-1-9 Checkin for 7/28/8 integration test Now with PCAV1 and PCAV2 finished and with their weighted averages feeding BSA Llrf2-R2-0-0 Fixes for PCAV1 and 2, changes to GUIs re: how streaming is launched Llrf2-R2-0-1 Fixes for 120 Hz testing 8/4/2008 Start on ao record changes where init_record returns status=2 for no convert and _*2 PVs can then be removed (since restore works if this change is done). Changing templates will be done NEXT rel In prod'n using event-2-6-4, but this wasn't yet in dev as of last night, so it appears as 2-6-2 for dev testing Change iocBoot/ioc-in20-rf01/st-prod-hybrid.cmd so L2 Ref comes up ENABLED on SEND to PAC Cleanup: remove subroutine, dbd def'n and commented out PVs with dbSubLlrfChangeOMSL since not used Add: new PSETs, new subrout "dbSubLlrfTcavPset", dbd definition, to look at PNET modifier to determine when TCAV is active and then NOT do feedback (but only put it there, don't use it for now) Llrf2-R2-0-2 fixes form 6aug2008 BSA integration of L0A&B and 7aug2008 minor fixes to PCAV1 and 2 Files are: M iocBoot/ioc-in20-rf01/st-prod-hybrid.cmd M iocBoot/ioc-in20-rf01/st-prod.cmd M llrf2App/Db/IOC-IN20-RF01evr.substitutions M llrf2App/Db/llrf.l0a_template M llrf2App/Db/llrf.l0b_template M llrf2App/Db/llrf.ph1_template M llrf2App/Db/llrf.tc3_template M llrf2App/Db/llrfIN20.ph1_substitutions M llrf2App/src/dbSubLlrf.c M llrf2App/src/dbSubLlrf.dbd M llrf2App/src/devAoLlrf.c M llrf2App/src/devWaveformLlrf.c M llrf2App/src/drvLlrf.c M llrf2App/src/drvLlrf.h M llrf2App/src/drvLlrfRF02.c M llrf2App/srcDisplay/rf_l0a_main.edl M llrf2App/srcDisplay/rf_l0b_main.edl M llrf2App/srcDisplay/rf_lsr_main.edl M llrf2App/srcDisplay/rf_ph1_vme_cal.edl Llrf2-R2-0-3 Add PCAV4 In order to make use of llrf.kly248_template for both PCAV3 and 4, migrate this to llrf.kly_ph_template Try to converge on PUNITS: PCAV3 is deg 2805 MHz; PCAV4 is deg 2856 MHz Llrf2-R2-0-4 changeL0 PAD to beam rate triggers: M llrf2App/Db/IOC-IN20-RF01evr.substitutions M llrf2App/Db/IOC-IN20-RF01trig.substitutions fix IPADDR1 of ioc-li24-rf01 (it conflicted with ioc-in20-rf01) Llrf2-R2-0-5 laser BSA changes (llrf.lsr_interim_template can go. instead load llrf.lsr_template (which combines llrf.lsr_ref_template and llrf.lsr_interim_template) Llrf2-R2-0-6 laser calculations and set/get of global lsr struct Llrf2-R2-0-7 more laser calculations removed refs to changeOMSL subroutine and its registration add DTYP field to llrfbo.db so that llrf.lsr_template can use LLRF. --> all templates need this change!!!!!!!!!!! changes to feedback calcs done at driver level incl'g fixes to alarm limits on actual ampl, new PV for actual ampl, new subroutine to get threshold into global struct: M iocBoot/ioc-in20-rf01/st-lab-hybrid.cmd M llrf2App/Db/Makefile M llrf2App/Db/llrf.lsr_template M llrf2App/src/dbSubLlrf.c M llrf2App/src/dbSubLlrf.dbd M llrf2App/src/devAiLlrf.c M llrf2App/src/devAoLlrf.c M llrf2App/src/devBoLlrf.c M llrf2App/src/drvLlrf.c M llrf2App/src/drvLlrf.h M llrf2App/src/llrfMacros.h M llrf2App/srcDisplay/rf_lsr_main.edl M llrf2App/srcRestore/Makefile Llrf2-R2-0-8 fixes after testing in lab re: zeroing factor and how it is saved/retrieved. Zeroing factor must be saved across reboots since running with 2856 source will have a zeroing factor and it is possible to come up after next reboot with 2856 and to want to keep using this factor. The only time zeroing factor is set to zero is when the source is set from 2856 to 119. One other change was to be able to save/restore LASR:IN20:1:LSR_SOURCE correctly, cwConfig needed to use RVAL Two PVs could be merged to one for case of _PWR_THLD now that it's a subroutine Llrf2-R2-0-9 st-hybrid-prod need PROC of ISCL, QSCL use st-hybrid-* to set OMSL for ISET,QSET to closed_loop Llrf2-R2-1-0 laser feedback rewrite complete. Calcs all done in driver (all the way to I and Q setpoints for PAC). PAC absorption of positions is done whenever phase loop enabled. VME monitors PAC position Phase jumps fixed when IOC is booted and when source is changed. Llrf2-R3-0-0 iocAdmin-R2-1-0 add S24,25 and 29 access PVs to indicate station health for PCAV3, PCAV4 and TCAV3" st-prod.cmd fix transmission of 32 bit values sent over 2nd eth from PAD; this applies to laser only. It's for the variances. Files are llrf2App/src/drvLlrf.c, llrf2App/src/drvLlrf.h, llrf2App/src/devWaveformLlrf.c Laser BSA Llrf2-R3-0-1: add special zeroing debug flag to limit what gets written; add writing out of phase setpt back-calcd from PAC if drvLlrfLSRFeedbackFlag is DP_INFO" llrf2App/src/drvLlrf.c add new access cw configs to build llrf2App/srcRestore/Makefile fix rec proc so that _3_PACT process every time udp packet arrives; this fixes BSA activation for PCAV3 llrf2App/Db/llrf.ph3_template fix to definition of IN for PCAV:LI29:100 P and A needed to get PCAV4 BSA to work llrf2App/Db/IOC-LI24-RF01bsa.substitutions increase trigger rate to beam rate (from 10 Hz) for PCAV 1 and 2 so that BSA gets every point and not just one out of three llrf2App/Db/IOC-IN20-RF01evr.substitutions fix what gets loaded for ACCESS PVs - i.e. stop loading access.db once per record and load the new .db files" iocBoot/ioc-li24-rf01/st-prod.cmd, iocBoot/ioc-in20-rf01/st-prod-hybrid.cmd per 11/18/2008 4:15 ops mtg, FJD wants the UNROTATED-BY-PDES laser phase to feed BSA; not the ROTATED-BY-PDES laser phase IOC-IN20-RF01bsa.substitutions fix the name of the PV for PCAV3 Amplitude that feeds BSA: was PCAV:LI25:300:PH3_3_A_0, now PCAV:LI25:300:PH3_3_AACT IOC-LI24-RF01bsa.substitutions: lower debug level for drvLlrfChangeSourceFlag, drvLlrfLSRSetZeroingFactor, drvLlrfLSRGetZeroingFactor from 4 to 2. st-prod-hybrid.cmd add dbpf("GUN:IN20:1:GN1_0_POC.PROC","1") because it was missing; restore /data/IOC-IN20-RF01access.sav and /data/IOC-LI21-RF01access.sav now that they exist st-prod-hybrid.cmd restore /data/IOC-LI24-RF01access.sav, /data/IOC-LI29-RF01access.sav and /data/IOC-LI30-RF01access.sav now that they exist. st-prod.cmd ensure all debug flags are 0. llrf2App/src/dbSubLlrf.c llrf2App/src/devAiLlrf.c llrf2App/src/devAoLlrf.c llrf2App/src/devBoLlrf.c llrf2App/src/devLongoutLlrf.c llrf2App/src/devMbboLlrf.c llrf2App/src/devMbboOnln.c llrf2App/src/devWaveformLlrf.c llrf2App/src/drvLlrf.c Llrf2-R3-0-2: add fast _PRV_PSET llrf.lsr_template update st-prod.cmd to st-prod-hybrid.cmd level in prep for gun BSA initial proc of _ZEROING and _ZERO_MON iocBoot/ioc-in20-rf01/st-lab-hybrid.cmd, st-prod-hybrid.cmd process _ZERO_MON when _SOURCE changes, feed _ZEROING from _ZERO_MON only at startup llrf.lsr_template add comments re: TO DOs and possible problem when source is changed when feedback is off llrf2App/src/drvLlrf.c drop save/restore of _ZEROING (the ao that sets) and add save/restore of _ZERO_MON (the ai that gets) llrf2App/srcRestore/IOC-IN20-RF01.cwConfig Llrf2-R3-0-3: fix name of phase cavity 3 ACCESS PV: P not A IOC-LI24-RF01access.substitutions aesthetic. contents of debug msg" llrf2App/src/drvLlrf.c set _ZERO_MON to Passive scan at start; change it to 2 second after init via startup.cmd. Return back to SOURCE FLNKing PDES and get ZERO_MON out of this chain. llrf2App/Db/llrf.lsr_template important steps to restore the _ZERO_MON val back BUT NOT process it, then set _ZEROING to ingest this val via DOL and OMSL, THEN fix up all the UDF/INVs and THEN start processing of _ZERO_MON to be every 2 seconds iocBoot/ioc-in20-rf01/st-prod.cmd iocBoot/ioc-in20-rf01/st-prod-hybrid.cmd iocBoot/ioc-in20-rf01/st-lab-hybrid.cmd ` Llrf2-R3-0-4: new: llrf2App/srcDisplay/rf_ph1_main.edl fix: llrf2App/src/Makefile: RF02 needs devMbboLlrf.c and devBoLlrf.c now new: non-invasive debugging added for laser. with an allow flag, you can now get one iter of calcs written to console each time feedback is turned on llrf2App/src/drvLlrf.c new: add mutex around laser phase setpoint access, add feature to write out first iter of calcs when laser fb turned on, improvements to llrfReport for laser llrf2App/src/drvLlrf.c fix: more GUIs with red as fgColor for ch0 Llrf2-R3-0-5: fix: phase cavity x offsets to desired phase need to be initially proc'd iocBoot/ioc-in20-rf01/st-prod-hybrid.cmd, iocBoot/ioc-in20-rf01/st-prod.cmd, iocBoot/ioc-li24-rf01/st-prod.cmd Llrf2-R3-0-6: changes for Gun BSA: replace DB += llrfIN20.l1s_interim_template DB += llrfIN20.gun_interim_template with DB += llrfIN20.fdbk_template and remove rules to build the "interim" templates, too in llrf2App/src/Makefile st-prod.cmd now back; no longer need st-prod-hybrid.cmd with recent chgs to st-prod-hybrid.cmd cp'd into st-prod.cmd uncomment /*#define LLRF_GUN_NG*/ in llrf2App/src/drvLlrfRF01.c Llrf2-R3-0-7: tag prior to changing to new event system, with smaller sized record sets revert back to PEND PV only because Matlab scripts use it iocBoot/ioc-in20-rf01/st-prod.cmd comment out the check that feedback must be on todo the zeroing llrf2App/src/drvLlrf.c fixes for the special case configuration of this klystron llrf2App/srcDisplay/rf_248_vme_kly.edl fixes for the special case configuration of this klystron llrf2App/srcDisplay/rf_kly248_vme_cal.edl fix so that PACs that don't have latest firmware don't draw the PVs that come with the new version. Phyiscists don't like the color purple llrf2App/srcDisplay/rf_l2_main.edl fix up related display name and macros launched from here llrf2App/srcDisplay/rf_ph1_main.edl add PCAV:LI29:100:P_ACCESS llrf2App/srcRestore/IOC-LI29-RF01access.cwConfig Llrf2-R3-0-8: change to IOCADMIN_MODULE_VERSION=iocAdmin-R2-1-1 and EVENT_MODULE_VERSION=event-R2-8-1 Llrf2-R3-1-0: move the start of PAD streams in st-prod.cmd out, i.e. to $IOC//startup.cmdAFTER post_st.cmd is run ioc-li24-rf01/st-prod.cmd new revision: 1.12; previous revision: 1.11 ioc-in20-rf01/st-prod.cmd new revision: 1.18; previous revision: 1.17 remove llrf.lsr_ph1_template changes to update phase cavity phases ONLY when ampl exceeds threshold M llrf2App/Db/llrf.ph1_template M llrf2App/Db/llrf.ph2_template M llrf2App/Db/llrf.ph3_template M llrf2App/Db/llrf.ph4_template M llrf2App/src/drvLlrf.c M llrf2App/src/drvLlrf.h M llrf2App/srcDisplay/rf_ph1_main.edl M llrf2App/srcDisplay/rf_ph2_main.edl M llrf2App/srcDisplay/rf_ph3_main.edl M llrf2App/srcDisplay/rf_ph4_main.edl M llrf2App/srcRestore/IOC-IN20-RF01.cwConfig M llrf2App/srcRestore/IOC-LI24-RF01.cwConfig add PROC of PCAV _PWR_THLDs to st-prod.cmds Llrf2-R3-1-1: llrf2App/Db/llrf.tc3_template fix LNK1 for TCAV:LI24:800:TC3_FAN. was TCAV:LI24:800:TCAV:LI24:800:EFP; now TCAV:LI24:800:EFP next: launch new rf_gn2_pad (was rf_all_pad) rf_guntune_main.edl make it clearer where the phase is rf_ph4_main.edl rf_ph3_main.edl L1-X now has ch3 connected up rf_l1x_vme_cal.edl fix bug in L1-X ch3 stream parsing. Q->I devWaveformLlrf.c -------------------------------------------------------------------------- For when PAC needs to get adjusts via 2nd eth: remove #ifdef NOT_YET's in dbSubLlrf.c and uncomment one line in dbSubLlrf.dbd