Help with logging to a .csv file at a user-alterable time-base

Hi Martin, welcome to the forum.

Frankly, the picture of your flow is of very little use without an export of the code.

You can export your code by selecting Export from the hamburger menu (or CTRL-e).
Make sure that "Current flow" is selected and click "Copy to clipboard"
There is an explanation of how to paste the code in the forum at https://discourse.nodered.org/t/how-to-share-code-or-flow-json/506

That said, here is a snippet showing one way you can "switch off" the flow of sensor data. It uses a non-standard node - node-red-contrib-simple-gate which has to be installed. Also inject nodes to simulate the dashboard switch settings.
It does not address the issue of configurable log frequency, though that is cerainly possible.

Here is the code. Copy from here and import it to Node-red via the hamburger menu.

[{"id":"63e15978c5f11334","type":"inject","z":"1ff7a51a41da7b57","name":"Sensor data (every second)","props":[{"p":"payload"}],"repeat":"1","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"","payloadType":"date","x":240,"y":100,"wires":[["0426f7dde454aa0d"]]},{"id":"2214edb78e4af385","type":"inject","z":"1ff7a51a41da7b57","name":"Start Log","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"control","payload":"START","payloadType":"str","x":300,"y":180,"wires":[["0426f7dde454aa0d"]]},{"id":"8b1b26305066a13b","type":"inject","z":"1ff7a51a41da7b57","name":"Stop Log","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"control","payload":"STOP","payloadType":"str","x":300,"y":220,"wires":[["0426f7dde454aa0d"]]},{"id":"0426f7dde454aa0d","type":"gate","z":"1ff7a51a41da7b57","name":"","controlTopic":"control","defaultState":"closed","openCmd":"START","closeCmd":"STOP","toggleCmd":"toggle","defaultCmd":"default","statusCmd":"status","persist":false,"storeName":"memory","x":490,"y":180,"wires":[["c1ba9b89973d643b"]]},{"id":"c1ba9b89973d643b","type":"debug","z":"1ff7a51a41da7b57","name":"debug 318","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","statusVal":"","statusType":"auto","x":670,"y":180,"wires":[]}]