Jump to content

Johschr

Members
  • Posts

    3
  • Joined

  • Last visited

Everything posted by Johschr

  1. Yes indeed, that's exactly it. I've got two blocks "SD utility delimited line" : the first one is mostly for constant texts (my column titles) and the second one contains data such as date, hour (ML15 & ML10) and process values. I think you may be right on this one since when the key button is pressed, it writes titles on my CSV and then it writes values. So that could certainly explain the value changement of MI900... thanks for your explanations. It's not so obvious when you begin. That button is also used to start a process sequence. So it means I can find in my CSV the process beginning by looking for titles. But from what I know, data is non-stop written. I don't necessarily need to press the key to start recording data. When I extract data and then delete my file on SD card, if I look a few minutes after, I will have values on it. Basically, pressing the key button is only used to write titles in this code. I tried accessing the SD card (using unitronics SD card suite) for a while and then looked at the file but there wasn't any time gap so I'm not sure there's a conflict. Also, I can't really explain why SB41 is used to reset MB252 because, to me, MB252 is always set. If it wasn't, it couldn't be possible to write data continuously. I guess there's a better way of coding it but changing everything could be risky. Again, thanks for your support. At least, I'm learning and understanding better thanks to you. Take care.
  2. Hello Isakovic, Yes I looked at help files for every block which helped me understand what those blocks were for. But I'm afraid it still doesn't explain MI 900 value. You're right, it's difficult to interpret it. If I got it right : MI 900 - the start of my vector where my data will be stored ML 40 - the actual number of bytes sent to the vector ML 45 - a status message And then with my second block "Write->...", my data - which is previously stored in my MIs - is written to a CSV. My file is not that big... I'd say less than 3 MB depending on time spent recording data. I extract those data from my csv every one or two days. Also I'm using a 4GB micro SD card and I delete my file each time so that it doesn't gain too much weight. I believe if the default was due to my sd card, ML45 would turn to something wouldn't it ? I was thinking maybe my bug was caused by a non reset variable or something. The thing is, when SB41 was on (when someone pressed the key 1 of my V130), only column titles were written on my file and then nothing. Anyway, I really thank you for your time and for answering me.
  3. Hello everyone, I'm using SD functions to create a CSV file to save data such as temperature / pressure / date hour etc... and I would like to understand what the value of my MI900 means when I'm online mode. I kind of get my other operand purposes but this one is difficult to identify. Here is a screen capture for you When SB41 is activated this value turns to 24900 for a couple of seconds and then restore his previous value (here it's 14129 sometimes it's 14486 or 12200 and idk why). That's what I don't get. I'm asking you this because usually the program works very well until last time where everything kind of froze and I had to reinitialize my V130 to make it work again. Also my SD card was not full at all. Below you can see the entire subroutine when it failed to write data. Only my column titles were written on my CSV but then nothing more every minutes. Also, you must have guessed but I'm a complete beginner. The program is not even mine, but from someone who left and I'm trying to learn a bit. Anyway, I'm looking forward your support. Any suggestions will be appreciated. Thank you ! Model and software used : V130 & Visilogic 9.7.55
×
×
  • Create New...