ORSO2001 Posted March 24, 2016 Report Share Posted March 24, 2016 Dear All, I have to store a DTI table, when it is full (1000 rows and 8 columns), in the SD card...and after I have to clear the table to start again with the recording of the data...how much time is needed to store compleately the table to enable the "clear DTI" ladder function? in the "help" I found an extimated time only if I use this function followed by a "load from file" function. thanks Link to comment Share on other sites More sharing options...
Sam_ry Posted April 12, 2016 Report Share Posted April 12, 2016 i do it in real time. every time i save something in the DTI, in writing also in the CSV show the image on in the attachement hope it was useful. 1 Link to comment Share on other sites More sharing options...
ORSO2001 Posted April 13, 2016 Author Report Share Posted April 13, 2016 Dear Sam_ry, thanks for your answer; in the next days I will test it (my function). Link to comment Share on other sites More sharing options...
Saragani Posted April 13, 2016 Report Share Posted April 13, 2016 Hi, reading or writing rows from/to data table is immediate. Storing or loading data to data table from a file takes time. You should better look at the status of the Store DTI (it will change to "In Progress", which I think is 1). The status will change to 0 upon success, or to an error code if there was a problem. You should not clear the data in the table before the store was completed. Link to comment Share on other sites More sharing options...
ORSO2001 Posted April 13, 2016 Author Report Share Posted April 13, 2016 Dear Saragani, yes, I have seen that the DTI store "give" an output status as 0,1,-1...and I have used it to know if the action is done or not...but I need to know, more or less, how much time will be needed because it will put in "pause" the checking of the external devices...I calculate that a complete check of all external device will needs 9 sec...if the store action will need 15 sec, during which the check will put in pause, will be lost 2 checking cycles and it is too much for me...otherwise I have to create a second DTI and switch the saving when one is in store mode.... Thanks Link to comment Share on other sites More sharing options...
Saragani Posted April 13, 2016 Report Share Posted April 13, 2016 The time it takes to save the table to a file depends on its total size, and also on the internal SD Card itself (different cards have different performance). If the Panel is busy, it may increase the time even more, and if the SD Card is being read or written by something else, then it would also increase the time. (for example, an online/debug process during the time you try to save, especially when viewing Data Tables, or even Data Table Widgets on HMI and Web Server will also slow down the process) The max size of a retained table is 262,124 Bytes. I've made some test on how much time it takes to save such a table, and it took 1.5 seconds (The test application doesn't do anything else). I also created a non retained table with the size of 2,000,000 Bytes. The save took 5 seconds. It looks like 9 seconds should be more than enough if your table is not huge. Link to comment Share on other sites More sharing options...
ORSO2001 Posted April 13, 2016 Author Report Share Posted April 13, 2016 Dear Saragani, Thanks...It is clear. Link to comment Share on other sites More sharing options...
Gugulanov Posted April 15, 2016 Report Share Posted April 15, 2016 Hi,Just for info, it's not connected directly with the topic, but is connected with saving of table into file.If I'm not wrong, my observation is, that when if there is a saved DT file once, if you meanwhile change the table struct, and try to save (in my case with overwright), status of "Store DTI to file" function gives error code. Deleting the old file helps, and further saves are OK. It's not a big issue, but someone may wonder what's hapening. Regards. Link to comment Share on other sites More sharing options...
Saragani Posted April 18, 2016 Report Share Posted April 18, 2016 Hi Gugulanov, this is by design. (Data Table structure signature is being checked when data is written to the file, on either append or overwrite). I will raise this issue for you again. Link to comment Share on other sites More sharing options...
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