1. Can a house with solar panels use a generator?
The answer is yes, especially for some off-grid areas or families that need more power, it is difficult to meet the daily needs of the solar panel power alone, the importance of generators at this time is self-evident.
The principle of using solar panels and generators at the same time is very simple. First, connect the output cable of the solar panel to the direct current (DC) terminal of the solar inverter, and then connect the output cable of the generator to the backup power input of the solar inverter, and then set the limited use of solar panels to generate electricity according to the instruction manual of the solar inverter, in this way, the generator will supply power to your equipment normally when the solar panels are unable to generate electricity normally.
It is worth mentioning that in order to ensure the safety of the whole solar system, you should install a circuit breaker between the generator and the solar inverter.
After the above work, you need to connect the load, and then observe whether the solar panel and generator can freely switch power supply under the work of the inverter, if everything is normal, then it means that both the generator and the solar panel can supply power for your equipment at this time, which greatly improves the stability of power supply.

2. Which one is better, solar panel or generator?
The answer to this question is not fixed, and will be affected by many factors. For example, if you are located in an off-grid area, not normal use of utility power, and the local environment of cloudy and rainy days, then the solar panels produce electricity obviously can not support your normal life, then the use of generators will be a better choice.
Of course, for most of the areas with normal light, solar panel power generation compared to generators have the advantages of non-pollution, high security, free energy source and low maintenance costs, obviously, solar panel power generation will be a good choice for long-term power generation. All in all, the choice of power generation depends on your specific situation.
Summary
Solar panels and generators are common means of power generation in life, through the two means of power generation why can not be used in conjunction with a deeper understanding of the solution to this problem, to a certain extent, not only to protect your life and property safety, but also make these two means of power generation to better serve you.