News:

  • June 28, 2026, 05:50:59 AM

Login with username, password and session length

Author Topic: File System and I are getting to know each other  (Read 7148 times)

OrionHE

  • Sr. Member
  • ****
  • Posts: 90
File System and I are getting to know each other
« on: August 29, 2017, 05:21:06 PM »
I'm using the @RamFS for now. I want to make a report that will be emailed daily with the details of each load that goes through a cooling machine.

Using FileLog, I don't seem to have a choice in whether or not it puts the tag name as the first row. If I did, my problem would be solved.

Since I seem to be stuck with the file being generated with tag names and their values, I'd like to be able to delete rows programmatically. I figured this could be done with FileSeek maybe, but could use a suggestion or two on how to go about it. Thanks for listening.

BobO

  • Host Moderator
  • Hero Member
  • *****
  • Posts: 6164
  • Yes Pinky, Do-more will control the world!
Re: File System and I are getting to know each other
« Reply #1 on: August 29, 2017, 06:14:02 PM »
Nothing magic about the log instruction, just a quick method of doing simple logging. Use STRPRINT and file output instructions to write the format you want.
"It has recently come to our attention that users spend 95% of their time using 5% of the available features. That might be relevant." -BobO

OrionHE

  • Sr. Member
  • ****
  • Posts: 90
Re: File System and I are getting to know each other
« Reply #2 on: August 29, 2017, 06:15:49 PM »
I did that, but it forcibly includes the tag name as the first row. I just want the values, not the names.

BobO

  • Host Moderator
  • Hero Member
  • *****
  • Posts: 6164
  • Yes Pinky, Do-more will control the world!
Re: File System and I are getting to know each other
« Reply #3 on: August 29, 2017, 06:19:56 PM »
I did that, but it forcibly includes the tag name as the first row. I just want the values, not the names.

FILELOG does. Don't use it. Use FILEOPEN, STRPRINT, FILEWRITE, then CLOSE.
"It has recently come to our attention that users spend 95% of their time using 5% of the available features. That might be relevant." -BobO

OrionHE

  • Sr. Member
  • ****
  • Posts: 90
Re: File System and I are getting to know each other
« Reply #4 on: August 31, 2017, 04:24:27 PM »
Thank you. I'm getting it exactly where I wanted it to be.