Hi Killer,
Opening the data file and appending to it is not the problem. Is just where to put the code to write to the file while the serial port is outputting data. For example
when the serialport read.existing happens then do a file writeline. That's all I need.
Thanks for your reply....
User Profile
Collapse
-
Saving Serial Port Data To File
Hello everyone,
I generally look at Google and other websites before I post a question, but trust me I still cannot find and answer to this problem.
I'm using VB.net. My problem being is that I don't know how to redirect the serial port output to a selected file. I looked in the forum but no luck.
Here is the sequence of events.
User selects a file to write to. No problem here.
Sends... -
Try this.
Chr(26) is the "CTRL-Z" code of ASCII/ISO646 keyboards
I use this in my program
MainForm.UserPo rt1.WriteToComP ort(Chr(26))
Hope this helps.Leave a comment:
No activity results to display
Show More
Leave a comment: