Jump to content

Recommended Posts

Posted

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!

Posted

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.

Posted

It is my experience that if you make any change to the struct from which you generate the CSV file append, you must delete all 3 files of that name on the SD before the PLC can write again to it.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

This site uses cookies. By clicking I accept, you agree to their use.