Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

The system provides a way to adjust 3 regions for the signal. The leftmost region, shown as "Duration pre edge (ns)" on the picture below, integrates the background noise to be subtracted from the signal region. The rightmost region, shown as "Duration pos edge (ns)" on the picture below, integrates the signal. An optional "Duration inter edges (ns)" defines a region between the background noise and the signal where the integration is ignored. It is useful for removing the slope from the calculation. This middle region is not shown in the chart below.

Anchor
EDGE_ADJUST
EDGE_ADJUST

Both pre-edge and inter-edge regions have its zero nanosecond reference in the same place: the starting point of a trigger (corresponds to the beginning of the chart). That's why selecting an inter-edge with a value less than the pre-edge makes the middle region disappear. Check the diagram below to have things more clear. The post-edge zero reference starts at the end of the pre-edge or the inter-edge, which one is greater.

...

 

blenFilterDecoders.db

Contain mbbiDirect and mbboDirect records to encode/decode individual bits into integers that are read/sent to the firmware. Each bit represents a status for one of the filter positions or the actuator that commands one of them. Details on the bit mapping can be found in the section Control filters and check status of them.

blenFilters.substitutions

blenFilters.template

For status of filter position, read individual bits from the database blenFilterDecoders.db and translate them into single PVs. For filter actuators, provide single PVs to write to the mbboDirect record inside blenFilterDecoders.db. For a description of the filters, read section Control filters and check status of them.
blenMR.substitutionsThis is the file associated with all mapped registers of the FPGA. The mapping starts with the dictionary file yaml/blenMR.dict and entries of this dictionary are used in blenMR.substitutions to create the database blenMR.db.
calculatedWF.db

The records in this file fill 3 purposes:

  1. Maintain proportionality between equation coefficients A0 and A1 when the number of samples of the pre-edge and/or the post-edge is changed by the user. Details on this mechanism are in the sections Adjustment of the integration windows and Auto adjustment of weight factors A0 and A1.
  2. Provide PVs with TMIT calculated in pC, nC, or number of electrons, pC, or nC.
  
  
  1. .
  2. Create a squared waveform shape (shown in blue here) that represents the weight function, just for the sake of visualization on a chart.
manual.reqAutosave file for PVs without info fields. For this application, we are autosaving the coefficients of the equation. The PVs come from blenMR.substitutions and are based on the ycpswAsyn database.
processRawWFHeader.dbRemove the first 28 16-bit words from the raw signal stream because they are just a header and don't represent digitized data. Also reads the beam present flag from the header to update the waveform with digitized data only when we have beam.
streamControl.db 
weightFunctionXAxis.db 

 

Source code files

iocBoot files

...