-
How hard can this be?
Greetings
I am looking for a ?simple? module..
I am trying to collect ASCII data from Com1, 19200,8,n,1.
Up to 5000 lines of ASCII text is being sent to Com1 when I dump the buffer on the meter reader.
The collected text is saved into a .txt file
There is no need for a full blown Term program or module as there is NO communication being sent, just received.
Anyone have such a module tucked away somewhere?
Thanks
Steve
-
well to make things easier for VB coders, the MSComm control should be used, which means a form will be needed instead of a module. i might see if i can do request soon. i will post it here if i do! but just to clarify things, how many lines exactly will be received? and when do u want the code to stop receiving data?
-
Thanks for the info regarding MSCOMM and your possible offer to try this.
While I've never counted the exact number of lines of data, I would guess that 2000 lines of data is stored each day.
A manual button to shut down the capture or a timeout of 90minutes in case I am working on another unit while the buffer is being dumped would probably be the best.
Thanks
Steve
-
just one last question, very important! how is each line seperated? i ask this because the module will have to know when an entire line has been received. after i know this, i can begin working on it.
-
The ASCII data is sent in Delimited text, has a <CR> at the end of each line.
That make any sense?
Thanks
Steve
-
yup makes perfect sense. i will have the module ready in a few days.
-
1 Attachment(s)
all done. test it for me and i will fix it if any bugs come up.
-
Works fine.
Perfect
Thank you
Steve
-
-
One minor alteration?
How hard would it be to allow the user to name the directory and filename of the saved text?
Steve
-
1 Attachment(s)
not hard at all. here is the modified module. anything else, just post.