chand345 Posted July 1, 2019 Report 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!
NoamM Posted July 2, 2019 Report 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.
chand345 Posted July 2, 2019 Author Report 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.
Robin P Posted July 5, 2019 Report 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.
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now