|
I am using VB Express 2008 to create a small program. When using the script below to change variable values it works perfectly.
Private Sub Button7_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button7.Click Dim changeVariable As String changeVariable = "+V990088"
SerialPort1.Open() SerialPort1.Write(changeVariable) SerialPort1.Close() End Sub
However I want to beable to recieve information from the leopard so i feel the "Old" ASCII Protocol is limited. I created a new scipt showen below to try to change a timer value but with no sucess
Private Sub Button6_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button6.Click Dim byteBuffer(8) As Byte byteBuffer(0) = 200 byteBuffer(1) = 41 byteBuffer(2) = 5 byteBuffer(3) = 1 byteBuffer(4) = 0 byteBuffer(5) = 1 byteBuffer(6) = 0 byteBuffer(7) = 248 SerialPort1.Open() SerialPort1.Write(byteBuffer, 0, 7) SerialPort1.Close() End Sub
I am very new to vb express 2008 so any advice/help would be much apreciated
Tom
|