Host Engineering Forum

General Category => Do-more CPUs and Do-more Designer Software => Topic started by: OrionHE on August 29, 2017, 05:21:06 PM

Title: File System and I are getting to know each other
Post by: OrionHE 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.
Title: Re: File System and I are getting to know each other
Post by: BobO 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.
Title: Re: File System and I are getting to know each other
Post by: OrionHE 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.
Title: Re: File System and I are getting to know each other
Post by: BobO 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.
Title: Re: File System and I are getting to know each other
Post by: OrionHE on August 31, 2017, 04:24:27 PM
Thank you. I'm getting it exactly where I wanted it to be.