Get files and send them to excel

Hello, good morning. How are you?

I would like, while my application is running, to create an excel file capturing all the values ​​that are happening, such as “Speed”, “Temperature”, every second it is updated, I tried using C# and was not successful, could I to help?