Hi to all:
I have a project that receive data from an electronic board and in the same project this data received must send to annother apllicattion.
For that i had use this code for receive the data:
And for send data:Code:Private Sub SerialPort1_DataReceived(ByVal sender As Object, ByVal e As System.IO.Ports.SerialDataReceivedEventArgs) Handles SerialPort1.DataReceived ReceivedText(SerialPort1.ReadExisting()) End Sub
Like we know both this events have a constant cycle....Code:Private Sub Timer1_Tick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Timer1.Tick end sub
My doubt here is:
This is the best way to do this once this have 2 cycles? I mean this could run reasonably with a few lines of code in both events with no problem?
If possible please send me your opinions!
Thanks


Reply With Quote
