![]() Sw = New IO.StreamWriter(Application.StartupPath & "\" & pname.Text & ".txt") Private Sub Button1_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles Button1.Click ![]() Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load Private Sub Form1_FormClosed(ByVal sender As Object, ByVal e As ) Handles Me.FormClosed ![]() I have application which is a microcontroller send a string of 20 bytes (numbers as text separated by comma) over UART in rate of 140 string/second and save the result into text file, i try using visual basic 2010 with serial port control component, the serialport component properties are ReadBufferSize = 20 & ReceivedBytesThreshold = 20, it is work fine but some times it receive more than 20 byte in single line which cause an error like this : 382 ,387 ,387 ,172 ,
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |