.NET And Displaying Real-time Received Serial Data On GUI?

May 24, 2010

I'm having a bit of an issue receiving a stream of serial data and displaying the data real-time in my GUI. I am fairly new to VB.Here's what I'm trying to achieve: I have an I2C device (bank of LED's) connected to my Arduino. Using the VB.NET (2010) GUI I request which LED I want on (via buttons) and the I2C device then sends a reply confirming which LED actually turned on (basic feedback). Ok, sounds great right? Here's where I get issues. Well when I try to read the serial data sent to VB and display the real-time stream on the GUI, a) I get a bit of a mess as an output (values are ok, just spewn across GUI) and b) when I select a new LED to turn on, the GUI data does not refresh to this change. The stream being sent from the Arduino is ok, I looked at the data in a serial monitor.

[Code]...

View 2 Replies


ADVERTISEMENT

VS 2010 Displaying Real-time Serial Data In GUI?

May 24, 2010

connected to my Arduino. Using the VB.NET (2010) GUI I request which LED I want on (via buttons) and the I2C device then sends a reply confirming which LED actually turned on (basic feedback). Ok, sounds great right? Here's where I get issues. Well when I try to read the serial data sent to VB and display the real-time stream on the GUI, a) I get a bit of a mess as an output (values are ok, just spewn across GUI) and b) when I select a new LED to turn on, the GUI data does not refresh to this change. The stream being sent from the Arduino is ok, I looked at the data in a serial monitor.

Public Class Form1
Dim ticktock As Integer
Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles

[code].....

View 4 Replies

VS 2008 Displaying Data On More Than One Network Computer In Real Time?

May 2, 2009

I am busy with a VB2008 EXPRESS program that reads is data via a network cable. Saving the data on the same computer as my program is not a problem, but I must also make this data available to other users in the network and update their screens in real time. In other words I need a COPY of my running program on each networked computer when requested by the user in the network. I have looked at SQL, XML pages and inheritance. But I am confused, what is the best way???

View 13 Replies

Pass Serial Data From Serial Data Received Event

Dec 13, 2009

I'm trying to pass a data packet from the serial data received event.The code can capture the data without any issues.I'm spinning my wheels on getting the data packet out of the thread for further processing.[code]

View 4 Replies

Displaying 8-bit Numbers From A Microcontroller In Real Time If Possible?

Apr 26, 2010

I've already wrote a simple program for connecting to a serial port that can send data to the microcontroller, do some basic arithmatic and transmit it back to my Form. This was just to see if I could set up the conection.I have a PIC Microcontroller giving an 8-bit number thats is taken from an external sensor device.What I want to do now is to present this data from the microcontroller in a textbox as a number either in real time (as the sensor output changes) or if not possible, on request (using a button).

View 15 Replies

Sorting Received Data From Serial?

Apr 7, 2012

I am constantly receiving 2 lines of data via my serial port, example:

GPRMC, 151243.000 , A, 3723.2475, N, 10354.0208,E,1.26, 290.95, 9.0,,,A*67
GPGGA, 151244.000, 0122.4098, N, 10354.0212, E, 1, 04, 2.1, 71.4, M, 4.3, M,,0000*5F

Apart from the starting 5 alphabets which is the message ID, the other numbers are constantly changing every second. I wish to pick out specific values from these GPRMC and GPGGA and constantly update their respective text boxes, how do I go about doing that?

The 4th, 6th & 8th values of the GPRMC message (in this case '3723.2475' 10354.0208' and '1.26')The 10th value of the GPGGA message (in this case that value is '71.4')

View 1 Replies

Using The Received Data From Serial Port?

Oct 6, 2011

the problem I am having is probably mainly because of I am very new at VB.net, anyway, the thing is, I am able to receive data from microcontroller successfully. The format of the data coming from the Microcontroller is shown below

0,2 1023,1023 1023,1023 1023,1023
1,5 1023,1023 1023,1023 1023,1023
2,8 1023,1023 1023,1023 1023,1023

[code].....

View 2 Replies

Close Serial Port After Data Received?

Feb 22, 2009

I have the following code that listens to a serial port and writes the incoming data to a listview control (the serial data are a delimited string taht arrives once per second that I parse into separate listview subitems). I would like to be able to close/disconnect the serial port once a specific value in the incoming string is detected. For example, in this case one of the columns of data in the incoming string represents depth, I would like to close the serial port when the depth falls below a given number. I have tried the code below, but my program crashes on the SerialPort.CLose method.

dim m_strOBS() as string
Private Sub SerialPort_OBS_DataReceived(ByVal sender As Object, ByVal e As System.IO.Ports.SerialDataReceivedEventArgs) _

[code].....

View 4 Replies

Incorrect Data Is Received From Serial Port?

Nov 10, 2010

I am current using VS2008 to write a little app to transmit hex data via the serial port to the target device and receive back data from it and display that on a text box.

The problem i am facing is receiving "read" data "hex" back from the serial port and displaying it. I am able to send data to the target system without any problem. For example, if i send this command "&H10, &H0, &H1, &H7E, &HFF, &H49" The LEDs on the system blink 10 times and it works every time. If i send this command "&H10, &H0, &H0, &HFF, &HD" i should get 5E back and I use Realterm to verify the communication and it works great. When i use my VB app it fails, instead of getting back 5E.I get "&H35, &H45, &HD, &HA" on the buffer

Private Sub sendbutton_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles sendbutton.Click
Dim send_Buffer() As Byte = {&H10, &H0, &H0, &HFF, &HD}

[Code]...

View 1 Replies

Serial Port, Data Received Handler?

Oct 1, 2009

I am writing a program to read data from the serial port using the data received event. But, I realised that My data received event run more than 1 time when there is a data received at the com port and this actually makes my reading command reads the wrong data. The correct procedure is whenever I send a "+++" over to my device. It should responses with "OK."message.

Why the DataReceived Event will read more than 1 time?
Below is my coding for your reference.
Public Class ControlProgram

[code].....

View 8 Replies

VS 2008 Serial Data - Make Sure The Correct Data Is Received?

Jun 28, 2009

I am using Visual Basic express to create a serial interface to a multi-room audio controller. I have started by creating a form that can connect to the controller and I can receive data from the Controller and display Zone status, volume etc in corresponding texts box thaks to help from Stanav and Tassa in my previous thread.

My next problem is to do with receiving lots of data from the serial port and my application getting out of sync. This is mainly caused by turning the volum control as each time it is turned a little bit the controller sends out the new status of the Zone being effected

eg
****Turning Volume knob on Zone 1***
Status returned from Controller:
#Z01PWRON,SRC3,VOL05<CR>

[Code].....

View 7 Replies

Send XML Commands In Vb To Get Data Received Over A Serial Port

May 5, 2011

How do I send XML commands in vb to get data received over a serial Port?

I know the commands I'm just not sure how to send them.

View 2 Replies

Serial Port Data Received Event Not Executing?

May 17, 2010

I don't know why this is. I am using VB 2008.net and I am trying to receive data on the serial port.

For some reason, the following event is not executing. Here is the

[Code]...

Just simple as of right now for debugging purposes. I have a breakpoint at getMe and it doesn't hit it at all. I know for sure that the serial port should be receiving data as I am using RealTerm to monitor serial port input data before I run my program.

View 8 Replies

Check Serial Port Data Received Event Status?

Oct 2, 2009

I am trying to write something through serial port to my device. Before that, I added the data received handler to read the data when the device response with some data. The problem now is how can i check the status of the data received event? I need to know when the data received event has started or has ended before I can proceed to do some other task like check if the result is successfully receive.

View 2 Replies

Graphical Interface - Need To Filter Data Received From Serial Port?

Jun 4, 2010

I'm doing a project and want to do a graphical interface using V. Studio 2010. I want to use VB.NET as a programming language.
- Do I have to add any software to define VB.net?
- What is the function that reads the data from the serial port?
- If I want to receive more than one type of data, and I want to put/read them in separate text boxes, what is the function to filter the incoming data?

View 4 Replies

Read From Serial Port And Parse Received Data On Event Serialdata.eof?

Nov 2, 2011

I'm having trouble with parsing an XML data from serial port.Actually I need to parse it automatically after all data is received from serial port.I can display all the data in a richtextbox control and all data is received perfectly but my problem isit seems that serialdata.eof function seems like it's not firing.

here's some of my code:

Private Sub frmMain_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
'set serial port properties
With COMPort
.BaudRate = 19200

[code]....

what i need to know is how can i automatically parse the XML data from serial port after all data is received.

View 8 Replies

Displaying Current "Real" Date And Time In Windows Form?

Jan 28, 2011

how you display a live or current date and time on a Windows for application.

I am working with Visual Basic 2008(VS Studio 2008).

Example: January 28, 2011 8:00AM.

I have several books, strangely this subject is not properly covered.

This is my

Private Sub lblDisplayDateTime_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles lblDisplayDateTime.Click
Dim currentDateTime As Date = #8/2/2007 1:02:00 PM#

[Code]....

Finally, how do I make the time load when the form runs? I can't seem to find an event, that allows the time to display when I run the form. Currently, I have to click the area containing the label to get the time to display.

View 5 Replies

How To Cache Real-time Data

Jan 14, 2009

I'm working on a windows forms application (.NET 4.0).My form contains a 'Fast Line' chart using the Microsoft chart control included in VS2010.The chart gets filled with about 20,000 datapoints.My application then starts receiving market data from a server via DDE (Dynamic Data Exchange) in real-time and adds it the chart.

View 5 Replies

How To Send Real-time Data Over UDP

Sep 19, 2010

I have to send a sequence of video frames over UDP as fast and real-time as possible and while I got the basics working, I am running into all sorts of difficulties. Some of my goals:Data will normally be sent over dial-up (hence UDP instead of TCP), but also needs to support fast Ethernet.It's OK to occasionally drop frames (hence UDP instead of TCP).Need low latency. The frame the remote receives should be one that was recently sent (no more than a few frames waiting in buffers).I need to be able to detect the effective bandwidth so that I can compress the frames more or less to keep frame rate up.I break up frame data into one or more datagrams of about 500 bytes and each has a sequence number and other info. The receiver reassembles the entire frame and detects if any datagrams are missing.If the receiver detects more than a certain percentage of dropped frames (e.g. 50% over the last 10 frames), I send a TCP message to the sender to slow down by 50%. Sender than slowly increases speed by 5% each subsequent frame.Using System.Net.Sockets.UdpClient to send and receive the data.I have a separate TCP channel used for control messages back to sender.My main difficulty right now is detecting the effective bandwidth and dealing with latency, especially over dial-up (max ~4,000 bytes/sec). For example, if I try to send 100,000 bytes/second using TcpClient.Send() they ALL seem to arrive (no dropped datagrams) but with large latency by the time last datagram arrives. I think the TcpClient.Send() function is blocking until the buffer is able to send which messes up my current algorithm.

Can anybody point me to any sources of information for how to:Detect actual bandwidth over UDP.A better algorithm for dynamically adjusting bandwidth to suit the available pipe.Send data smoothly at the desired bandwidth.A way to detect and keep latency down to a minimum.I have been spinning my wheels over the last week and every time I solve one problem it seems another rears up is head.

View 1 Replies

Real Time Data Display?

Jan 11, 2012

are there any ways that i can extract my data from database and display it into my listbox in real-time? which means that whatever is updated in my database must immediately be inserted into the listbox without the need of refreshing or pressing any buttons. Immediate display.

View 3 Replies

Real Time Data From App To Web Server?

Jun 24, 2012

methods/procedures for sending real time data from a VB.net app to a web server (asp.net) for real time display. My question relates to the best method to send the data from the desktop app and the best way to receive and handle the data on the server. I'm not asking for sample code, just some idea of what methods to research. I am currently using a text file upload method but I'm sure there is a more efficient way of achieving this.

View 2 Replies

Real Time Data Tables/Data Grids?

May 25, 2012

I have been trying to find and/or think up a way for data to automatically update a data table.I have a log that shows all the customers that came in today with various information. There could be twenty or thirty employees adding to this log or updating or doing things with that customer. This information is in a Data Table on a ASPX page in Visual Studio 2010 that the code is binded in the aspx.vb page that is calling a page in my APP_CODE database file that calls a query in my Database to get the information.My question is could someones actions on a different computer make my computer refresh or to re-bind that data.I have thought of some kind of timer/counter maybe that looks to see if the count of the log is different.

View 2 Replies

Entity Framework 4.1 Data Real Time

Mar 9, 2012

I'm using EF version 4.1, and would like to have the data from the database in realtime, i.e. if you open the application it detects if there is new data in the database, and update the above it! is It possible to do this? I am using EF 4.1 code first time

View 1 Replies

Excel Automation For Real-time Data

Jun 5, 2012

i have a program that function as a DAQ System.i have input channel to gather information from sensors. The reading of each sensor such as voltage, current and temperature are displayed in the textbook. As we all know, DAQ system is involve taking data real-time measurement.My problem is:

1. how to update each row automatically as time goes on. the value in the textbook is updated by each second.Below figure shows how the excel can be written automatically row by row, as time ticking for a sec. this update will stop as the timer stop.

View 12 Replies

Reading Data From USB Port In Real Time?

Sep 29, 2011

I have a driver for the device and I already have it integrated into an application.

It is a Human Input Device with buttons.

Controlling the device is not the issue nor is receiving button presses.

I want to retrieve the actual data that is being sent from the device to the computer and from the computer to the device.

I have seen a lot of hardware approaches but not any software approaches(that work right).

View 3 Replies

Sending Real Time Data To A Table

May 25, 2010

Basically I have a program that receives real time data from microcontroller and displays it in a text box. What I would now like to do is to store the values received into a table that can be viewed when the receive program finishes. However I still want the values displayed as they are received in addition to being stored in a table of some sort.

View 3 Replies

Displaying Serial Port Data In A TextBox?

Apr 12, 2009

I can read data from the serial port (GPS receiver). Its just 2 lines of data every 0.5 seconds. Whats the best method to read the data and display it in a TextBox?
If I use:

DLdate = SerialPort1.Readline()

Then I don't get the new line character, and it just over writes on just one line of the TextBox.

Also, should I time the grab of data, or is there a better way? Should I create a buffer, and when the buffer is full then do a write?

View 2 Replies

Create Application That Can Download The Real-time Data?

Jun 15, 2011

I've use VB net to create a application that can download the real-time data from a device for every second. Now I want to upload the data to a website in real time. (So some who is far away, can also check the data through the website)

View 3 Replies

Pass Data Bewteen Forms In Real Time?

Jan 30, 2009

HBasically I will have two forms. Form1 will control form2 which is the media display. Form2 will give back the media status and info back to form1 in someway. I was thinking of creating properties in form2 and having form1 polling these values to display the elapse run time etc... ideally i wish to have form2 somehow send events back with data when it values gets updated.

View 1 Replies

Transfer Real Time Data From Vb 2005 To Excel?

Nov 24, 2009

I am working on a project that is able to display real time data from sensors from micro-controller. I am able to do so by sending the data through the serial port and then use vb 2005 to show the data. However, I want to save those data from vb 2005 to excel. How am I able to do it ? I am able to use vb to insert data to excel step by step, cell by cell using the following codes.

Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
Dim oExcel As Object
Dim oBook As Object
Dim oSheet As Object

[code]....

Lets say TextBox1.Text and TextBox2.Text is my real time data. How do I save it to the excel sheet displaying the data in cell A2, A3, A4 when the time goes by. Eg. If I want to save TextBox1.Text to excel it would be, the data in the 1st seconds in cell A2, data in the 2nd seconds in A3, 3rd seconds A4, 4th seconds in A5, A6 and so on...

View 3 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved