There is a problem with the RPi's ability to run uninterrupted. The charge controller is not connected to the router by cable, but by WiFi. A problem occurs when the router/modem is powered up. Most of a line of data is lost. The data collection script collects fifteen data points. Fifteen for each line of the table, a CSV file. The collection is done every thirty seconds. When the router/modem is powered up, the first eleven or twelve are lost. This occurs for only one line during each power up, but is still troublesome. I intend to leave the RPi running continuously. I also have a script that publishes the data on a webpage. When the data gap occurs, the graphing script stops plotting. the page is blank. I've noticed, in the past, too many scripts running will cause similar interruptions in operation. The data collection script is in PHP.
Is there a way to disable the WiFi during a data collection operation?