<!DOCTYPE article PUBLIC "-//NLM//DTD JATS (Z39.96) Journal Archiving and Interchange DTD v1.0 20120330//EN" "JATS-archivearticle1.dtd">
<article xmlns:xlink="http://www.w3.org/1999/xlink">
  <front>
    <journal-meta />
    <article-meta>
      <title-group>
        <article-title>DATA ACQUISITION AND DATA PROCESSING SOFTWARE FOR MAGNETIC MEASUREMENTS FOR NICA MAGNETS</article-title>
      </title-group>
      <contrib-group>
        <contrib contrib-type="author">
          <string-name>A.V. Bychkov</string-name>
          <email>abychkov@jinr.ru</email>
          <xref ref-type="aff" rid="aff0">0</xref>
        </contrib>
        <aff id="aff0">
          <label>0</label>
          <institution>Laboratory of High Energy Physics, Joint Institute for Nuclear Research</institution>
          ,
          <addr-line>6 Joliot-Curie, Dubna, Moscow region, 141980</addr-line>
          ,
          <country country="RU">Russia</country>
        </aff>
      </contrib-group>
      <pub-date>
        <year>2017</year>
      </pub-date>
      <fpage>105</fpage>
      <lpage>109</lpage>
      <abstract>
        <p>NICA and FAIR accelerator complexes need to create more than 600 magnets at all. All of them must be qualified. To complete this procedure the automated software was made, which has been used at the magnetic measurements test bench. The magnet measurement software controlled all the process of measurement process like data acquisition, sensor position or current supply management. RAW data were collected during magnetic measurements and needed to be filtered to get results that are more valuable. Filtering and smoothing algorithm based on wavelets and splines was developed as a part of the data processing software.</p>
      </abstract>
      <kwd-group>
        <kwd>NICA magnets</kwd>
        <kwd>DAQ software</kwd>
        <kwd>National Instruments</kwd>
        <kwd>NI LabView</kwd>
        <kwd>NI cRIO</kwd>
        <kwd>EtherCAT</kwd>
        <kwd>servo drive</kwd>
        <kwd>Kollmorgen</kwd>
        <kwd>signal filtering</kwd>
        <kwd>wavelets</kwd>
      </kwd-group>
    </article-meta>
  </front>
  <body>
    <sec id="sec-1">
      <title>1. Magnet measurement software</title>
      <p>NICA and FAIR are accelerator complexes presently under construction at the Joint Institute
for Nuclear Research (JINR) in Dubna, Russia and in Darmstadt, Germany, respectively. More than
600 superconducting (SC) magnets will be assembled and tested at the test facility at the Veksler and
Baldin Laboratory of High Energy Physics (VBLHEP), JINR. The magnets qualifying procedure
includes warm and cold magnetic measurements. Both types of test benches have the same
characteristics:
 24-bit ADC/DAC;
 200 000 samples/s per channel;
 Saving data type – RAW;
 Sensor positioning better than 1⋅10-4 rad;
 220 steps per rotation of a sensor.</p>
      <p>
        More details on qualifying procedure and construction of test benches are expounded in [
        <xref ref-type="bibr" rid="ref1">1</xref>
        ].
      </p>
      <p>The same software is used for both types of magnetic measurements and both types of test
benches, respectively. Automated software allows decreasing time of magnetic measurements; avoid
operator mistakes and the most important decreasing personal needed to qualify magnets. In addition,
the same software is used for most types of magnets.</p>
      <p>The user interface of the measurement program is presented in Figures 1 and 2.
is presented in Figure 3. Data acquisition and triggering is based on NI DAQmx modules. Kollmorgen
servo drives are used for the sensor positioning. Management of servo drive works on EtherCAT
infrastructure with the help of NI cRIO real-time controller. Communication between the real-time
controller and the measurement software is carried out by LAN. Other equipment is managed by GPIB
/ IEEE-488 and TIA/EIA-485 (RS-485) protocols.</p>
    </sec>
    <sec id="sec-2">
      <title>2. Signal filtering system based on wavelets and splines</title>
      <p>Gathering of RAW data allows using more sophisticated algorithms in order to preprocess the
data before getting any results from them. The data flow of acquiring data is given in Figure 4.
Wavelet filtration is used to filter RAW data of magnetic measurements as standard preprocessing
procedure.</p>
      <p>Wavelet filtration with some improvements gave good results with the highly noised signal.
The additions are wavelet peak detection and spline interpolation to replace the peaks. Wavelet peak
detection is used to find parts of a signal with the highest amplitudes of noise. Then the peaks are
replaced by spline for 4 points interpolation. The algorithm steps are given in Figure 5.</p>
      <p>
        Peak detection is based on multiresolution wavelet analysis. Continuous wavelet transform
coefficients of unfiltered data processed by series of undecimated wavelet transforms with
biorthogonal (boir 3.1) wavelet to get peak places [
        <xref ref-type="bibr" rid="ref2">2</xref>
        ].
      </p>
      <p>Effectiveness of the algorithm is confirmed on data that is presented in Figure 6. The results of
filtering are presented in Figure 7. Average accuracy of signal recovery is 10-6. Errors with values of
10-3 were got in the worst conditions.</p>
    </sec>
    <sec id="sec-3">
      <title>3. Future plans</title>
      <p>Creating distributed magnetic measurement system between several chassis synchronized
magnetic measurement software allows decreasing quantity and length of analog cable lines. In
addition, this allows processing qualify procedure simultaneous for several magnets by a single
operator without using any remote desktop software.</p>
    </sec>
    <sec id="sec-4">
      <title>4. Conclusion References</title>
      <p>The necessity to qualify more than 600 magnets of NICA and FAIR complexes required to use
highly automated test benches. Automated software has been used to achieve this goal. This allows
decreasing personal necessity. In addition, this decreases time of magnetic measurements and avoids
operator mistakes.</p>
      <p>Saving magnetic measurement data in RAW format allows using more sophisticated,
timedemanding and precise methods, like wavelet filtration and wavelet based algorithms, in order to
preprocess the data before calculation of magnet characteristics.</p>
    </sec>
  </body>
  <back>
    <ref-list>
      <ref id="ref1">
        <mixed-citation>
          [1]
          <string-name>
            <surname>Kostromin</surname>
            <given-names>S.A.</given-names>
          </string-name>
          et al.
          <article-title>Measurements of magnetic field parameters of NICA booster dipole magnet // Physics of Particles and Nuclei Letters</article-title>
          , ISSN:
          <fpage>1547</fpage>
          -
          <lpage>4771</lpage>
          , eISSN:
          <fpage>1531</fpage>
          -
          <lpage>8567</lpage>
          ,
          <year>2016</year>
          , vol.
          <volume>13</volume>
          , No.
          <issue>7</issue>
          , pp.
          <fpage>855</fpage>
          -
          <lpage>861</lpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref2">
        <mixed-citation>
          [2]
          <string-name>
            <surname>Wavelet-Based Peak</surname>
          </string-name>
          Detection. Available at: http://www.ni.com/white-paper/5432/en/ (accessed 03.11.
          <year>2017</year>
          ).
        </mixed-citation>
      </ref>
    </ref-list>
  </back>
</article>