TECHNOLOGY FOCUS - INSTRUMENTATION AND TESTING - Preferred Method: The method comprises measuring the voltage and current intensity, and supplying the power, voltage or current to the electrodes according to a threshold value, and calculating the amount of produced chlorine. The method further comprises: supplying current to the electrode using a photovoltaic generator; measuring the voltage and/or current at the terminals of the electrode; recording the value of current and stopping the production by disconnecting the photovoltaic generator to the electrode, if the conditions does not meet predetermined criteria (e.g. too low tension or voltage); measuring the period of time regarding the function of measured value (intensity) before making the connection; measuring the temperature of the solution subjected to electrolysis, and to cut the power supply of electrodes when the temperature exceeds a given threshold, e.g. 40 degrees C; calculating the amount of chlorine produced in the following parameters such as voltage and/or electrical current, temperature, density of salt (based on a threshold value imposed by the user), tank volume production (this value is determined by a user in a predetermined manner); establishing a set of laws or mathematical functions providing the chlorine content in the solution obtained, depending on the following parameters (a) resistive characteristics of the electrodes (voltage curve: f(current and conductivity of water)), (b) performance characteristics of the electrodes (yield curve: f(current and salt concentration)), (c) the current intensity, (e) density of salt in the solution subjected to electrolysis, and (e) the temperature of the solution subjected to electrolysis; measuring the following parameters such as current strength, the temperature of the solution subjected to electrolysis; and determining the chlorine content from the measurement of the parameters and the laws or mathematical functions. In the method, a subsequent measurement takes place within 5 minutes after a measured value of intensity of 8 A, and a subsequent measurement takes place 30 minutes later a measured value of 1 A. The lower the measured intensity value or the higher the time period is short. The electrically isolating a portion of the photovoltaic generator comprises measuring voltage of electricity produced by the portion (partial power), extrapolating the total power from the power part, and comparing the total power calculated at a desired value of power, and based on this comparison, either party is disconnected the means of generating and a new cycle is carried out above, after a period of time, or one electrically connects all power generation means to the electrodes. The value of desired power is determined by the characteristics of the electrode and the saline solution, so as not to trigger the electrolysis that if intensity and/or the voltage is greater than a given threshold value. The method allows a user to change or adjust certain parameters, or interfere with the measuring means and control. The polarity is reversed at the terminals of the electrode, or a regular basis, e.g. at a frequency of once a day, starting a new electrolysis. The stop production of chlorine is triggered either manually by the user or automatically by determining the amount of chlorine produced in accordance with a given target value. EXAMPLE - None given.