Method for controlling a system for measuring the fuel consumption of an engine, the engine being provided with a fuel supply circuit placed between a tank and the engine and a fuel return circuit from the engine to the tank, the system comprising an inlet flowmeter mounted on the fuel supply circuit, a return flowmeter mounted on the fuel return circuit, a first solenoid valve mounted in parallel with one of said inlet and return flowmeters, called first flowmeter, said method being characterised in that it includes the following successive steps: a) determining if the flow rate measured by the first flowmeter is less than a first predetermined flow rate threshold value (S1 or S2) and if the flow rate measured by the other of said inlet and return flowmeters, called second flowmeter, is greater than or equal to a second predetermined flow rate threshold value (S1 or S2); b) opening for a predetermined first duration the first solenoid valve if the flow rate measured by the first flowmeter is less than the first predetermined flow rate threshold value and the flow rate measured by the second flowmeter is greater than or equal to the second predetermined flow rate threshold value, said first predetermined duration being less than 300 s, preferably between 30 and 120 seconds c) closing for a second predetermined duration said first solenoid valve, said second duration being comprised between 0.5 s and 20 s, preferably between 2s and 5s; d) determining if the flow rate measured by the first flowmeter is still less than the first predetermined flow rate threshold value and if the flow rate measured by the second flowmeter is still greater than or equal to the second predetermined flow rate threshold value; and e) if the flow rate measured by the first flowmeter is still less than the first predetermined flow rate threshold value and the flow rate measured by the second flowmeter is still greater than or equal to the second predetermined flow rate threshold value, opening said solenoid valve. a) determining if the flow rate measured by the first flowmeter is less than a first predetermined flow rate threshold value (S1 or S2) and if the flow rate measured by the other of said inlet and return flowmeters, called second flowmeter, is greater than or equal to a second predetermined flow rate threshold value (S1 or S2); b) opening for a predetermined first duration the first solenoid valve if the flow rate measured by the first flowmeter is less than the first predetermined flow rate threshold value and the flow rate measured by the second flowmeter is greater than or equal to the second predetermined flow rate threshold value, said first predetermined duration being less than 300 s, preferably between 30 and 120 seconds c) closing for a second predetermined duration said first solenoid valve, said second duration being comprised between 0.5 s and 20 s, preferably between 2s and 5s; d) determining if the flow rate measured by the first flowmeter is still less than the first predetermined flow rate threshold value and if the flow rate measured by the second flowmeter is still greater than or equal to the second predetermined flow rate threshold value; and e) if the flow rate measured by the first flowmeter is still less than the first predetermined flow rate threshold value and the flow rate measured by the second flowmeter is still greater than or equal to the second predetermined flow rate threshold value, opening said solenoid valve.