Clarification of Question by
chris2002micrometer-ga
on
23 Dec 2002 10:14 PST
Dear mathtalk-ga
I am currently working with a file that looks like this (you may have
unwrap the lines):
TEST20021222221542,01,238,32107,00145,02,003,40524,00054,03,003,28709,00114,04,027,06966,00244,05,000,31818,00031,06,000,05069,00245,07,000,37617,00070,08,010,49056,00132,09,008,59209,00668,10,000,47148,00667,11,000,15074,00000,12,000,00132,00000,13,000,00170,00000,14,000,00234,00000,15,170,38231,00500,16,000,00139,00000,
TEST20021222221821,01,000,32107,00145,02,000,40524,00054,03,003,28712,00114,04,024,06990,00244,05,000,31818,00031,06,000,05069,00245,07,000,37617,00070,08,010,49066,00132,09,008,59217,00668,10,000,47148,00667,11,000,15074,00000,12,000,00132,00000,13,000,00170,00000,14,000,00234,00000,15,013,38244,00500,16,000,00139,00000,
TEST20021222222239,01,000,32107,00145,02,000,40524,00054,03,003,28715,00114,04,025,07015,00244,05,000,31818,00031,06,000,05069,00245,07,000,37617,00070,08,010,49086,00132,09,000,59217,00668,10,000,47148,00667,11,000,15074,00000,12,000,00132,00000,13,000,00170,00000,14,000,00234,00000,15,015,38272,00500,16,000,00139,00000,
TEST20021222225626,01,238,33301,00145,02,003,40536,00054,03,003,28754,00114,04,025,07364,00244,05,000,31818,00031,06,000,05069,00245,07,000,37617,00070,08,009,49212,00132,09,008,59265,00668,10,000,47148,00667,11,000,15074,00000,12,000,00132,00000,13,000,00170,00000,14,000,00234,00000,15,170,39221,00500,16,000,00139,00000,
TEST20021222225905,01,006,33307,00145,02,000,40536,00054,03,004,28758,00114,04,024,07388,00244,05,000,31818,00031,06,000,05069,00245,07,000,37617,00070,08,009,49221,00132,09,000,59265,00668,10,000,47148,00667,11,000,15074,00000,12,000,00132,00000,13,000,00170,00000,14,000,00234,00000,15,170,39391,00500,16,000,00139,00000,
TEST20021222232246,01,000,34027,00145,02,010,40552,00054,03,003,28794,00114,04,024,07618,00244,05,000,31818,00031,06,000,05069,00245,07,000,37617,00070,08,009,49306,00132,09,000,59289,00668,10,000,47148,00667,11,000,15074,00000,12,000,00132,00000,13,000,00170,00000,14,000,00234,00000,15,013,39988,00500,16,000,00139,00000,
obs date time id inst Lcum Hcum, 15 more like this
I have a long background in computers since early 70's and understand
many fundamental
concepts, that often seem (these days) to be "renamed, repackaged and
re-sold". The MS terminology
is difficult, like when you say COM (oh,yeah 8-bit no parity). I don't
know if I have used "active x"
unless it was some little object that I dragged onto a
form, sorta like i use tcpip all the time (whenever I surf the web). I
want to use the most
professional tools I can to develop with, and can generally learn from
working examples of code.
I tend to prefer code that contains the minumum statements (that I
must type, anyway) to do the job
with simple, short names that are clearly not reserved words so I can
tell what's mine and what's necessary in the
environment.
The above file comes from instrumentation that appends new lines at
the bottom. I would like to be able to read it into
storage (or pass it once) and select any 2 lines for further
processing. Once selected, the earlier (date,time) line should be
compared to the later one to ensure the 1st 4 bytes match, the second
date/time is not the same (or earlier). Then
format a new line the same way with the integer average of "inst" and
the (positive) differences of Lcum and Hcum (for all 16 chennels).
Just use the second date,
same id's, etc. Show the two lines and the resulting line on the
screen. Prompt for an "ok" and write (append) the derived line to a
new file.
There is certainly more to this app, but the above would get me
started. The example will need a file/directory object to establish
the working directory.
Can you build this easily with VC++? What would the wizard choices be
to get to the best starting point?
Chris