This is an admission that I wasn't very smart when my generator would run for a few minutes, then quit.
I took it to Cummins/Onan, and they did a $450 repair, installing a new voltage regulator.
The next month, it was doing the same thing. Another $450 repair. Last week, I took a different problem to them, which I had called them about in June. They replaced the voltage regulator, AGAIN, and told me it was out of warranty, since it was past 90 days.
I think the only thing wrong with the generator, initially, was that the generator's fuel pickup in the vehicle's fuel tank was higher than I had thought. When the gauge reads a little below 1/2, the tank is less than 1/4 full. Since the generator's pickup is above the engine's pickup, it quits before it runs the tank dry and leaves you stranded.
Check your fuel level. Fill the tank and try the generator again. It would have saved me $900!