Measuring the magnetic axis alignment during solenoids working