chand345 Posted July 1, 2019 Report Share Posted July 1, 2019 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! Quote Link to comment Share on other sites More sharing options...
NoamM Posted July 2, 2019 Report Share Posted July 2, 2019 Hi chand345, Open a ticket on Unitronics "Help center" at https://support.unitronics.com/index.php the Support team will assist. Quote Link to comment Share on other sites More sharing options...
chand345 Posted July 2, 2019 Author Report Share Posted July 2, 2019 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. Quote Link to comment Share on other sites More sharing options...
Robin P Posted July 5, 2019 Report Share Posted July 5, 2019 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. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
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.