Jump to content

Saving data table to csv file


chand345

Recommended Posts

Hello,
We are able to log sensor data to the data table, we record it once every 5 seconds. However, after 10 recordings we are trying to write the 10 lines to a csv file. (Ideally appending it) Firstly, appending just doesn't work (when we put the 1), the file doesn't update at all. When we put 0 to override, the values go in but only one and a half rows. Any ideas?

Thanks!

Link to comment
Share on other sites

Hey,

We fixed the issue by just changing the name of the file so it created a completely fresh one, maybe since we were changing the number of columns in the data table as we were building and testing the program the csv file didn't like it no matter whether it was set to overriding or appending.

I guess we will just create a fresh file for each time we decide to add a sensor value as an extra column.

Thanks.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...