Files
sf_databuffer/policies/llrf.policies
T
2023-12-01 11:41:56 +01:00

298 lines
6.5 KiB
Plaintext

/* LLRF basic configuration for data policy */
/* ======================================== */
/* IMPORTANT Workflow notice */
/* After merge request was generated, make an ELOG entry to the LLRF logbook at */
/* https://elog-gfa.psi.ch/LLRF with */
/* Section = All */
/* System = LLRF */
/* Subsystem = General */
/* Subject = New Data Buffer basic TTL policy */
/* Text = Describe what you have changed and place this link: */
/* https://git.psi.ch/sf_config/sf_daq_sources/commits/master/policies/llrf.policies */
/* Explanation of bsread data config for LLRF: */
/* 1. TMEM map Excel document column with bsread will generate a */
/* # bsread_info header comment in the template channels_uplink_data_ch...template. */
/* 2. script cfg/AutoStart.sh -> calls cfg/bsread_cfg_extract.sh */
/* 3. results written to /var/volatile/llrf_bsread.cfg on the IOC ramdisk. */
/* 4. llrf_rtapp parses this config file llrf_bsread.cfg on startup */
/* 5. In case GUI the STREAMING-RECONFIG checkbox pressed, this file is reloaded by */
/* the rtapp. So the way of manually adding new PV's would be to login to the IOC, */
/* and then edit this file (e.g. with nano or vi), store it and reload it. */
/* ------------------------------------------------------------ */
/* - override settings - */
/* - - */
/* - Each default setting will be overridden, when a better - */
/* - match (exacter match) is made. It is independant of the - */
/* - sequence in this configuration file. - */
/* ------------------------------------------------------------ */
/*
Examples for modulo settings:
"modulo":1 1 point every 10 ms (100 Hz)
"modulo":100 1 point every 1 second
"modulo":60000 1 point every 10 minutes
"modulo":3600000 1 point every 1 hour
Examples for ttl settings:
PT1M 1 minute
PT2H 2 hours
P1D 1 day
P2W 2 weeks
P1M 1 month
*/
{
"policies": [
/* ------------------------------------------------------------ */
/* - default settings which are generic for all RF stations - */
/* ------------------------------------------------------------ */
/* default setting for status channels of FPGA */
{
"pattern":"-RLLE-STA:",
"data_reduction":{
"default":[
{
"ttl":"P2W",
"modulo":1
}
,
{
"ttl":"P2M",
"modulo":100
/* 1 point every 1 second */
}
]
}
}
,
/* override for some specific channels, delete fully after ... */
{
"pattern":"-RLLE-STA:.*TIMER$",
"data_reduction":{
"default":[
{
"ttl":"P2W",
"modulo":1
}
]
}
}
,
{
"pattern":"-RLLE-STA:.*EVRPULSEID$",
"data_reduction":{
"default":[
{
"ttl":"P2W",
"modulo":1
}
]
}
}
,
{
"pattern":"-RLLE-STA:.*MSICNT$",
"data_reduction":{
"default":[
{
"ttl":"P2W",
"modulo":1
}
]
}
}
,
/* ------------------------------------------------------------ */
/* default setting for status channels of DSP / RT_APP feedback control */
{
"pattern":"-RLLE-DSP:",
"data_reduction":{
"default":[
{
"ttl":"P2W",
"modulo":1
}
,
{
"ttl":"P2M",
"modulo":100
/* 1 point every 1 second */
}
]
}
}
,
/* ------------------------------------------------------------ */
/* default setting for waveforms (AMPLT / PHASE / DAC I/Q */
{
"pattern":"-RIQM-STA:DAC",
"data_reduction":{
"waveform":[
{
"ttl":"P2D",
"modulo":1
}
,
{
"ttl":"P2M",
"modulo":100
/* 1 point every 1 second */
}
]
}
}
,
{
"pattern":"-AMPLT$",
"data_reduction":{
"waveform":[
{
"ttl":"P2D",
"modulo":1
}
,
{
"ttl":"P2M",
"modulo":100
/* 1 point every 1 second */
}
]
}
}
,
{
"pattern":"-PHASE$",
"data_reduction":{
"waveform":[
{
"ttl":"P2D",
"modulo":1
}
,
{
"ttl":"P2M",
"modulo":100
/* 1 point every 1 second */
}
]
}
}
,
/* default setting for ADCRAW, but typically not sent (extracted in cfg/bsread_cfg_extract.sh */
{
"pattern":"-ADCRAW$",
"data_reduction":{
"waveform":[
{
"ttl":"PT2H",
"modulo":1
}
]
}
}
,
/* ------------------------------------------------------------ */
/* default setting for 100 Hz scalars AMPLT-AVG and PHASE-AVG */
{
"pattern":"-AMPLT-AVG$",
"data_reduction":{
"scalar":[
{
"ttl":"P2W",
"modulo":1
}
,
{
"ttl":"P2M",
"modulo":100
/* 1 point every 1 second */
}
]
}
}
,
{
"pattern":"-PHASE-AVG$",
"data_reduction":{
"scalar":[
{
"ttl":"P2W",
"modulo":1
}
,
{
"ttl":"P2M",
"modulo":100
/* 1 point every 1 second */
}
]
}
}
,
{
"pattern":"^SINEG01.*-RIQM-STA:DAC",
"data_reduction":{
"waveform":[
{
"ttl":"P2W",
"modulo":1
}
,
{
"ttl":"P2M",
"modulo":100
/* 1 point every 1 second */
}
]
}
}
/*lab system OSFA Physiklabor in machine network*/
,
{
"pattern":"^SINEGTS-.*",
"data_reduction":{
"scalar":[
{
"ttl":"P4D",
"modulo":1
}
],
"waveform":[
{
"ttl":"PT6H",
"modulo":1
}
]
}
}
]
}