Go Down

Topic: Real Time Plotting Tool ( Oscilloscope ) (Read 52 times) previous topic - next topic

RjPrimer

I'm getting values displayed in my serial monitor, now  I want it to be printed in the interface of my VB specifically in my Richtext

Code: [Select]

     Private Sub DisplayCharacter(ByVal displayChar As String)
        RichTextBox1.Text = displayChar
    End Sub

    Private Sub SerialPort1_DataReceived(ByVal sender As Object, ByVal e As System.IO.Ports.SerialDataReceivedEventArgs)
        Dim RxData As String
        System.Threading.Thread.Sleep(300)
        RxData = SerialPort1.ReadExisting()
        RichTextBox1.Invoke(New DisplayDelegate(AddressOf DisplayCharacter), New Object() {RxData})
    End Sub


But it wont display :c

PaulS

Quote
But it wont display

Are you sure that the method is even called?

If it is, why are you sleeping in the serial data callback? Doing so makes no sense.

pdasilva18

Is the VB source code available for SimPlot. I might like to modify. Will share any changes...

RjPrimer

How am i gonna re scale the plot for the Square Wave?

roweboat

Awesome work! We have been working on something very similar called MegunoLink. Does a similar job of monitoring and plotting arduino data. Can also log data and use it to upload hex files. Check it out at http://www.MegunoLink.com would love to hear any feature suggestions.

Go Up