07 sportsman 450 no spark

Good morning I have a 07 sportsman 450 in the shop and it looses spark after running for about 5 minutes then dies. Check for spark and I have none if you let it sit over night it might start but as of quitting time Friday it had nothing battery is brand new and fully charged put a new trigger coil in it started and ran then it died again same thing no spark put a new logic box in it still nothing changed the CDI box still no spark I have gone through and cleaned all the grounds ohmed the trigger coil just to make sure I didn’t get a bad one I ohmed the stator and I get .3ohms and the book calls for 0.43 but not sure if that’s and issue or not I am stuck not sure what to do now I’m at a loss.Does the speedo unit have anything to do with it ? Any help would be greatly appreciated also before I forget it is carburetor