Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - dwkw

Pages: [1]
1
Technical support / Re:serial connection
« on: October 22, 2008, 10:34:42 PM »
Is it something like this?

Public Class Form1
    Dim int As String
    Dim temp As String

    Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
        SerialPort1.Open()

        SerialPort1.Write("@nnRUnn00*")
        int = SerialPort1.ReadLine()
        temp = Mid$(int, 1, 4)

    End Sub
End Class

2
Technical support / Re:serial connection
« on: October 16, 2008, 07:34:37 PM »
So if i want to read from EEPROM,in my vb program i just have to connect to serial and send a host link command right?What is the response for?
I am using T100MD-1616+

3
Technical support / serial connection
« on: October 06, 2008, 07:59:02 PM »
Hi,i am doing a project on a chinup trainer.i am using a photo sensor to capture the number of chinups into a channel.I am also using vb.net to communicate with plc and store the record in access.i would like to know in what format the data is recorded?And also is this code sufficient to store number of chinups in variable 'int'?

Public Class Form1
      Private WithEvents serialPort As New IO.Ports.SerialPort("COM1")

    Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
        Try
            serialPort.Open()
       
            Dim int As String = ""

       

            'Read the corresponding value and store
            int = Me.serialPort.ReadLine()
            serialPort.Close()

       

        End Try

    End Sub

Pages: [1]