High bandwidth, high spatial resolution measurements of electron temperature, density, and plasma potential are valuable for resolving turbulence in the boundary plasma of tokamaks. While conventional Langmuir probes can provide such measurements, either their temporal or spatial resolution is limited: the former by the sweep rate necessary for obtaining I-V characteristics and the latter by the need to use multiple electrodes, as is the case in triple and double probe configurations. The Mirror Langmuir Probe (MLP) bias technique overcomes these limitations by rapidly switching the voltage on a single electrode cycling between three bias states, each dynamically optimized for the local plasma conditions. The MLP system on Alcator C-Mod used analog circuitry to perform this function, measuring Te, VF, and Isat at 1.1 MSPS. Recently, a new prototype digital MLP controller has been implemented on a Red Pitaya Field Programmable Gate Array (FPGA) board which reproduces the functionality of the original controller and performs all data acquisition. There is also the potential to provide the plasma parameters externally for use with feedback control systems. The use of FPGA technology means the system is readily customizable at a fraction of the development time and implementation cost. A second Red Pitaya was used to test the MLP by simulating the current response of a physical probe using C-Mod experimental measurements. This project is available as a git repository to facilitate extensibility (e.g., real-time control outputs and more voltage states) and scalability through collaboration.
I. INTRODUCTION
In order to understand the physics behind plasma transport in the boundary of fusion devices, it is often necessary to have temperature, density, and plasma potential measurements resolved on the time scale of the turbulence driving the transport.1–3 A scanning Langmuir probe (LP) is a natural choice of diagnostic as it can simultaneously measure all three quantities. However, standard LP biasing techniques are not able to resolve the plasma parameters with sufficient temporal or spatial resolution to observe the fast transport processes. The Mirror Langmuir Probe (MLP) biasing method, first employed on Alcator C-Mod, allows LPs to sample at a much higher bandwidth.4 By optimizing the voltage bias applied to a Langmuir probe based on the real time plasma temperature, the MLP is able to accurately sample plasma parameters at 1.1 MSPS bandwidth. This enabled study of fast edge turbulence and led to improved characterization of the quasicoherent mode in Alcator C-Mod EDA H-mode discharges.2
The MLP control system used for C-Mod consisted of a complex system of analog electronic components that made implementation and setup time consuming and increased maintenance difficulty. This paper reports the first prototype of a digital implementation of Langmuir probe bias calculation and switching emulating the behavior of a mirror Langmuir probe system. This will significantly reduce the setup time of new systems, as well as improve upgradability, customizability, and scalability. Additional electronics will still be needed to drive the physical probe, and these will be specific to the plasma device on which the system is implemented.
This paper describes the design and implementation of a digital prototype of the MLP control scheme that we have built. A novel test procedure for the digital MLP is also described using a hardware platform that emulates the plasma current response (PCR). We consider this method analogous to synthetic diagnostics used to validate simulations.
II. BACKGROUND
A. The Langmuir probe I/V model
A Langmuir probe is a small conductive piece of material that is inserted into a plasma. In a fusion research plasma, the probes can generally only be used in the edge region (outside the last closed flux surface) as the high temperatures closer to the core would cause melting or ablation of the probe. Langmuir probes can be used to determine plasma parameters by performing an I-V characteristic reconstruction.5 The I-V characteristic, shown in Fig. 1 and expressed in Eq. (1), is a curve generated by measuring the current response of the probe to a series of applied voltages. The lower portion of the characteristic, in the vicinity of Vpr = VF, is then fit to the Langmuir probe equation,6
where ILP is the current collected by the probe, Isat is the ion saturation current, VF is the floating potential of the probe surface due to the plasma, and Vpr is the total bias on the probe. The plasma quantities of temperature Te, floating voltage VF, and saturation current Isat are determined by fitting this model function to the measured I-V characteristic.6 Since Te and VF can vary and are a priori unknown, a conventional Langmuir probe control system sweeps the probe voltage Vpr over a large range to be sure it obtains a well-conditioned I-V characteristic. Control systems based on this method tend to be slow relative to fast turbulence phenomena7 as many data samples must be collected per sweep and subsequently fitted. Alternatively, a double or triple probe configuration could be implemented,8 but as this makes use of spatially separated probe tips, the spatial resolution becomes limited compared to a single probe. By constantly optimizing the voltage bias levels relative to the plasma temperature, the MLP is able to report fitted parameter data at high speeds using a single electrode.
To maximize the sweep speed, as few points as possible along the I-V curve are measured. The minimum number of voltage states necessary to get an I-V characteristic reconstruction is three (the number of degrees of freedom in the model, with each voltage state corresponding to a sampled point). To capture the physics contained within the characteristic, the ion saturation current (Isat), the zero crossing voltage of the current (set by VF), and the curvature of the I-V characteristic for voltages above VF (set by Te) must all be accurately measured. However, since these quantities change in time, the optimum bias voltages necessary to sample them also changes in time. The aim of the MLP bias approach is to deduce these quantities (Isat, VF, and Te) dynamically in real-time as the data are collected and adjust the probe bias voltages accordingly. Of these, the most important parameters are Te and VF.
The bias control problem can be made somewhat easier by capacitively coupling the probe driver to the probe electrode and insisting on bias states that produce currents of I0 = 0, I+ = Isat, and I− = −Isat. If these conditions are upheld, the time-average current over the capacitor will be zero and it will charge to the floating potential, if the amplitudes of the positive and negative biases are suitably chosen. This allows the applied bias voltage, driven by an external voltage source, to be relative to the floating potential.
The desired applied bias voltages that accomplish this can be found by simultaneously solving the LP equation near I = Isat and I = −Isat and requiring that the difference between them be 4 times Te. This bias range ensures that a complete I-V characteristic will be sampled and appropriately adjusted as Te changes. The resulting nonzero applied biases sit on top of the capacitor bias, which should be approximately VF, and are given in terms of electron temperature as
The total probe bias is given by
where V±,0 are the externally applied driving bias and VC is the voltage across the capacitor (ideally the floating potential). The total probe bias is what is usually measured in experiment. Capacitor bias can be inferred from the difference in the known externally controlled drive and the measured total bias.
The current collected in the V− bias state is bounded by the value I = Isat, and the range of times Te is more-or-less guaranteed to be very close to this value. The chosen value of V− then constrains the value of V+ such that I− = I+ and the current through the coupling capacitor is averaged to zero.4
Fitting algorithms are too slow to allow a real-time calculation of Te, so the new MLP controller attempts to calculate the plasma temperature in real time using an alternative algorithmic approach.4 At each of the three bias states, the value of one of the plasma parameters is updated. The calculations are performed in terms of the total probe bias (applied plus capacitor), current, and old plasma parameters.
The negative applied bias (V−) is assumed to be sufficiently negative such that the probe is collecting the ion saturation current. The rearranged Langmuir probe equation provides a small correction and is shown in the following equation:
The positive applied bias (V+) is used to calculate the electron temperature. The rearranged Langmuir probe equation is shown in the following equation:
The final bias state places the applied bias to the probe to zero volts. At this voltage, the current to the probe should be close to zero. A residual current means that the charge on the capacitor is not quite equal to the floating potential. VF is computed using the rearranged Langmuir probe equation, as follows:
The bias state order is demonstrated in Fig. 2. It is worth noting that the original MLP did not explicitly implement these equations. Instead, analog electronics were used to mirror a probe response and thus implicitly implemented the equations4 by generating a mirrored I-V characteristic from high frequency bipolar transistors and high bandwidth operational amplifiers.4 When explicitly implementing these equations using digital electronics, care must be taken to assure that the algorithm converges to produce stable bias state values. In Secs. III A–III C, we discuss explicit implementation of these equations in digital electronics.
B. Field programmable gate arrays and the Koheron SDK
Field Programmable Gate Arrays (FPGAs) are reconfigurable integrated circuits. This makes them extremely useful for research where it is often necessary to develop new signal processing instrumentation which may need to change over time.
This project uses Red Pitaya (RP) FPGA boards.9 The Red Pitaya boards use a Zynq 7010 SoC (System-on-Chip) with 512 MB of RAM and an embedded dual-core ARM processor. This development board is particularly useful for signal processing applications as it incorporates two 125 MSPS Analog-to-Digital converters (ADCs) and two 125 MSPS Digital-to-Analog converters (DACs).
Facilitating communication between the ARM processor and the FPGA logic is the Koheron software development kit (SDK).10 The Koheron SDK is a software development kit for several Zynq 7000-based FPGA boards and provides basic instruments, which can be adapted for most purposes, with the requisite firmware, software, and Python libraries necessary for control pre-installed. This significantly reduces the amount of time it would usually take to develop an instrument, as well as abstracting control to Python, making it easier for collaborators to use in the future.
III. IMPLEMENTATION OF THE DIGITAL CONTROL SYSTEM
A. The Mirror Langmuir probe control system
The MLP control system is implemented using a Red Pitaya FPGA board. Current sampling and bias state calculation are accomplished on the FPGA chip, while the system configuration and data storage utilize C++ and Python code running on the ARM processor. As stated above, communication between the ARM processing system and FPGA is handled through libraries provided by the Koheron SDK. The interface with the ADCs and DACs on the Red Pitaya is handled by an imported module from the Koheron SDK. The calculation modules are triggered once for each bias state.
Digital electronics are well-suited to additions, subtractions, and multiplications, while divisions and more complicated operations such as the exponentials and logarithms found in Eqs. (2)–(4) are difficult and resource-intensive to implement. Xilinx provides a module to calculate divisions, but there is no module to calculate an exponent or logarithm. Instead, look-up tables have been generated for each exponential term where values outside the boundaries of the look-up tables are set to a standard value.
B. The plasma current response system
In order to test the MLP FPGA controller in a controlled and reproducible manner, a second Red Pitaya was used to create a synthetic Plasma Current Response (PCR). The PCR is given time series profiles of the plasma parameters and, taking a bias voltage (from the MLP) as input, produces a value of the probe current as output, according to the LP equation constrained by the input profiles. This configuration is shown in Fig. 3, in what we have chosen to call “duelling” mode, demonstrating the back and forth of the PCR and MLP as each calculates the appropriate response to an applied voltage. It is desirable for the MLP controller to be agnostic to the “plasma” it is connected to, and so the PCR was designed to be completely independent of the MLP except for returning the values the MLP would receive from a real probe in plasma. In contrast to the MLP, the PCR runs a calculation stream so that each input sample has a corresponding output sample and it is therefore independent of MLP triggering. The programmability of the Koheron SDK means arbitrary or nonrealistic plasma parameters may be set for diagnostic purposes, as well as allowing for more complex models and real data streams to be used to benchmark Langmuir probe control systems.
During these tests, there was no capacitive coupling between the MLP and PCR FPGA boards. As such the applied bias becomes the full probe bias. The effect of this on the algorithm can be seen by setting VC equal to zero in Eq. (3). These modified equations were what was programmed into both the MLP and PCR FPGA boards. Any future real plasma tests will include capacitive coupling and use the full forms of the equations.
C. Hardware and digitization
The test setup consists of two Red Pitaya (RP) boards connected together with SMA cables, as shown in Fig. 3, using the 125 MSPS ADCs and DACs integrated into the Red Pitaya board. Each input is terminated with 50 Ω to reduce reflections of the high speed switch signal, which would otherwise lead to inaccurate sampling of the input voltages.
Digitization of the data is performed by the RP MLP. The MLP includes modules for input calibration and input smoothing although smoothing of the incoming signal was found to be unnecessary for our test cases. The PCR calculates the plasma current for a given input bias voltage and then outputs the calculated current and the probe voltage. These signals are then processed by the MLP using digital filters and used to calculate the plasma parameters and set the bias states for the next voltage cycle. At each bias state, five measurements of the applied bias and the returned current from the PCR are recorded at equally spaced intervals. Only the final measurement is used to calculate the next bias state with the previous values used in postprocessing to confirm that the applied voltage has settled. The calculated temperature, current, and floating potential are stored each time a new temperature is calculated.
A basic calibration module is currently implemented within the test system. By looping the voltage out of the MLP back into the control system, the offset and scaling factor can be measured. These are then programmed into the control system using the Python interface to be applied to the incoming signal before the bias calculation modules.
A limitation of this first generation system is demonstrated in Fig. 6 where the ratio of V+ to V− is different to that given by the values in Eq. (2). This is due to the quantization of values necessary when using digital electronics. This has resulted in the use of 1 and -3 times Te instead of 0.625 and −3.325 for the positive and negative bias. However, this does not seem to have affected performance greatly as shown by the various figures in Sec. IV where the calculated temperatures still trace the input temperatures well.
IV. MLP EMULATION
This project has reproduced chief performance objectives (such as temperature calculation and real-time bias adjustments) in synthetic tests and therefore is shown to emulate the original MLP system with our current test setup. Three tests were used to confirm that the MLP was operating correctly. A step test in temperature confirms that bias values are adjusted correctly and triangular waveforms (of the artificial plasma temperature) show that the MLP can follow variations in plasma parameters. Finally, the MLP is tested against real data from past C-Mod shots to compare its accuracy against the analog system.
A. Temperature step change
The core feature of the MLP control system is that it can change bias states in real-time according to the plasma temperature. Figure 4 gives a demonstration of how the MLP calculates a step change in temperature (shown in red). The calculation time for a step change in temperature is equivalent to one full bias cycle, which in this case is approximately 3 μs. The application of a temperature step change also shows a systematic overestimation in the MLP temperature calculation, which varies between 10% and 20%. This does not seem to affect the postprocess parameter fitting, however (a calibration error has caused the offset in Fig. 4), as the corresponding currents are measured correctly (shown in blue).
B. Triangular waveforms
Figure 5(a) shows that the MLP can follow a triangular waveform for the majority of the range from 0 eV to 100 eV. The same can be seen for the floating potential, as shown in Fig. 5(b), and the resulting bias states, as shown in Fig. 6. These figures show that the MLP system can quickly react to changes in the plasma parameters simulated by the PCR system. In Figs. 5(a) and 5(b), the MLP was operating at a cycle speed of 1 MHz. A deficiency of the test system is demonstrated in Figs. 5(a) and 5(b) as failure to calculate plasma parameters for Te < 15 eV consistently. This is due to the PCR calculations diverging at low temperatures and outputting a nonphysical plasma current. The LP equation exponential is calculated using a preloaded look-up table, so when Te is small, the values of the argument of the exponential may go out of the range covered by the look-up table. This makes a fit impossible and causes the MLP parameter calculation to become volatile.
Beyond 1 MSPS, the settling time of the RP DACs and the latency of the PCR calculations limit performance. At a full rate of 320 ns per bias state (compared to 1 μs in Fig. 4), the PCR latency (240 ns) is a significant proportion of the bias state time. This means that the sampled current is mismatched to the applied voltage, and as a proportion of the sampling takes place during the 50 ns settling time of the DAC, the current is not well-defined.
C. Tests with C-Mod data
In the final test performed on the MLP controller, we provided the PCR with time series data (in Te, Isat, and VF) taken from operation of the C-Mod MLP. The C-Mod data were taken at a sampling rate of 1 MSPS; however, for this test, it was artificially slowed down by a factor of two to account for the PCR latency. The results of this test are shown in Fig. 7. It is immediately clear looking at the figure that large plasma fluctuations are present in the C-Mod MLP data. For most of this time-window, the real-time calculations (shown in green) track the real data well, only deviating by a few electron volts in several places. The postprocessed plasma parameters (shown in red) match even more closely, and the error seen is well below the 10% error normally associated with normal Langmuir probe operation. A 100-μs window is expanded in the inset figure, and individual points are shown to demonstrate the ability of the MLP to resolve real plasma fluctuations. This demonstration shows that the digital MLP controller is able to replicate the C-Mod MLP ability to resolve real plasma turbulence.
V. FURTHER WORK
We have now demonstrated the viability of a digital Langmuir probe control scheme that can adjust bias states in real-time with respect to a fluctuating temperature. Future studies will include testing on the linear plasma device DIONISOS, at the MIT Plasma Science and Fusion Center.11 These tests will be conducted by the team at PSFC and will work to refine device operation and further show the digital MLP viability. In parallel, a Ph.D. student as part of a Centre for Doctoral Training in Fusion will develop the MLP for operation on MAST-U.
Full implementation on fusion experiments will require power electronics to bias the Langmuir probe. As the switching speed is very fast, capacitance due to the cabling will become significant. Minimizing the capacitance to retain high bandwidth measurements in a full system is a nontrivial task. The bias algorithm could also be applied to future conventional Langmuir probe control systems,12 making them more information-efficient as they would be able to not only adjust their temperature sweep according to real-time plasma conditions but also provide real-time plasma parameter signals to other control systems.
VI. SUMMARY
Our tests show that it is possible to implement an MLP control scheme in digital electronics. This significantly improves portability and drastically reduces the time commitment needed for implementation of an MLP system. This new system also gives much greater scope for customization, with the difficulties of reproduction and maintenance reduced, thanks to the standardized FPGA development board and publicly available GitHub repository.13 The incorporation of Python (thanks to the Koheron SDK) also improves usability.
Testing has shown that the MLP can calculate changes in both temperature and floating potential and then make the necessary changes to the applied bias states. This demonstration has laid the groundwork for future customizable, reproducible, and maintainable MLP solutions to be developed independently for different plasma devices. This will significantly improve future studies of fast transport phenomena in the fusion plasma edge.2
ACKNOWLEDGMENTS
This work was supported by the Massachusetts Institute of Technology (supported by US DoE Cooperative Agreement No. DE-SC0014264) and by the Engineering and Physical Sciences Research Council (Grant No. EP/L01663X/1). This work has been carried out within the framework of the EUROfusion Consortium and has received funding from the Euratom Research and Training Programme 2014-2018 and 2019-2020 under Grant Agreement No. 633053. The views and opinions expressed herein do not necessarily reflect those of the European Commission.