Hi,
Il be glad if someone can help with this.
Im working on a project which involves sending data (distance) from a sensor to my vb application. Im using vb 2005 so no MSComm!
I want my application to read the distance from the sensor once the port is opened and then plot the point on a graph (on the vb) relative to its first position.
I am using 2 sensors working as my x and y coordianates. Ill appreciate a quick response if possible as I have a time limit. Tanx
sending data (distance) from a sensor to my vb applicationCommunication with vb 2005...pls help!
Page 1 of 1
4 Replies - 1490 Views - Last Post: 18 July 2008 - 05:01 PM
#1
sending data (distance) from a sensor to my vb application
Posted 14 July 2008 - 01:14 PM
Replies To: sending data (distance) from a sensor to my vb application
#2
Re: sending data (distance) from a sensor to my vb application
Posted 14 July 2008 - 01:16 PM
[rules][/rules]
#3
Re: sending data (distance) from a sensor to my vb application
Posted 18 July 2008 - 05:02 AM
Tanx.
this is what I have written so far. This extracts the data from the sensor:
this is what I have written so far. This extracts the data from the sensor:
Private Sub DataReceived(ByVal sender As Object, ByVal e As System.IO.Ports.SerialDataReceivedEventArgs) Handles serialPort.DataReceived
txtDataReceived.Invoke(New myDelegate(AddressOf updateTextBox), New Object() {})
End Sub
Public Delegate Sub myDelegate()
Public Sub updateTextBox()
With txtDataReceived
.Font = New Font("Garamond", 12.0!, FontStyle.Bold)
.SelectionColor = Color.Red
.AppendText(serialPort.ReadExisting)
.ScrollToCaret()
End With
End Sub
End Class
#4
Re: sending data (distance) from a sensor to my vb application
Posted 18 July 2008 - 08:41 AM
Modified title to be more descriptive.
#5
Re: sending data (distance) from a sensor to my vb application
Posted 18 July 2008 - 05:01 PM
Page 1 of 1
|
|

New Topic/Question
Reply




MultiQuote










|