Displaying Data Graphically (Ultrasonic Radar)?

Mar 20, 2012

I'm working on an ultrasonic sonar and I would like to use the computer to display a standard green radar system detecting the objects.I'm using a micro controller with the software written in C to send out the sensor's angle and position and it works fine.On the computer side, I'm using Visual Basic 2010 to read the COM port which then contains the sensor's data in numbers (sensor's angle and distance between sensor and object) which is a constant stream. On the debug screen (Textbox) I can already see all the data coming through.

Now my question is: How do I convert those numbers into graphics?More explanations about these numbers I want to convert:I have a step motor to rotate the ultrasonic sensor, and it works that way: The motor advances 1 step forward, then measure distance between sensor and object, then send these 2 values out. So, if you see the attached file, those numbers on the text box mean:

000032 -> 000: step number & 032: 32cm between sensor and object
001031 -> 001: step number & 031: 31cm between sensor and object
002032 -> 002: step number & 032: 32cm between sensor and object
003007 -> 003: step number & 007: 7cm between sensor and object
and so on...

So those are the numbers I wish to convert into graphics. The scan line would need to rotate clockwise at same speed of the step motor. And then I would like to display dots when an object is detected.

View 14 Replies


ADVERTISEMENT

Interface And Graphics :: Displaying Data Graphically (Ultrasonic Radar)?

Mar 15, 2012

I'm working on an ultrasonic sonar and I would like to use the computer to display a standard green radar system detecting the objects. I'm using a micro controller with the software written in C to send out the sensor's angle and position and it works fine.On the computer side, I'm using Visual Basic 2010 to read the COM port which then contains the sensor's data in numbers (sensor's angle and distance between sensor and object)which is a constant stream. On the debug screen (Textbox) I can already see all the data coming through.Now my question is: How do I convert those numbers into graphics?

More explanations about these numbers I want to convert:I have a step motor to rotate the ultrasonic sensor, and it works that way:The motor advances 1 step forward, then measure distance between sensor and object, then send these 2 values out.So, if you see the attached file, those numbers on the text box mean:

000032 -> 000: step number & 032: 32cm between sensor and object
001031 -> 001: step number & 031: 31cm between sensor and object
002032 -> 002: step number & 032: 32cm between sensor and object
003007 -> 003: step number & 007: 7cm between sensor and object
and so on...

So those are the numbers I wish to convert into graphics. The scan line would need to rotate clockwise at same speed of the step motor. And then I would like to display dots when an object is detected

View 3 Replies

Show Sales Data Graphically?

Nov 6, 2010

I want to show the sales data graphically.

View 2 Replies

Draw A Dot (with XY Position) In Radar?

Jun 16, 2010

How to draw a dot (with XY position) in the radar?[code]..

View 11 Replies

Build A Radar Connected To Laptop

Feb 20, 2009

I'd like to build a radar connected to my laptop. I know there are computer programs that will allow me to do that, but as far as I know they require the radar to be operated via a built-in computer, but I want my laptop to act as its computer. How do I do this?

View 2 Replies

Reproduce Graphically The Level Of A Auido Wav?

Sep 16, 2009

I can not find an example of how to reproduce graphically the level of a Auido wav

View 2 Replies

DataGridView - How To Create Graph Or Radar System

Jul 12, 2010

I'm developing an application with Visual Basic. NET. How do I create a graph or a radar system that uses data from a DataGridView?

View 1 Replies

Interface And Graphics :: Draw A Dot (with XY Position) In The Radar?

Jun 16, 2010

how to draw a dot (with XY position) in the radar.

Code:
' Draw the radar plot.
Private Sub picCanvas_Paint(ByVal sender As Object, ByVal e As System.Windows.Forms.PaintEventArgs) Handles picCanvas.Paint
' Generate coordinates for the points.

[code].....

View 2 Replies

Load Unrelated Code Then Edit It Graphically Using Buttons?

Jan 16, 2012

I'm making a text Editor, that can load unrelated code then edit it graphically using buttons.So far my problem is with replace, I'm probably not using the right context some times it works, most times it does not.

[Code]...

View 1 Replies

WebBrowser Control Printouts Graphically Corrupt With IE9 Installed

Mar 17, 2011

Having installed the IE9 update a couple of days ago, I'm left in the same boat that I found myself in when I tried the IE9 RC. Namely, documents printed via .Print() from a WebBrowser control in .NET no longer print correctly. What the user sees in screen is vastly different from what comes out of the printer. There will be missing characters and whitespace discrepencies virtually every time.

Here is an example:

The top is what inevitably comes out of the printer when the bottom is what the user sees on screen (outside of the pixelized part of the name & address--that was me).

If I uninstall IE9, the problem goes away.

View 20 Replies

VS 2008 : Data Bound List Box, Displaying Data Into Textbox?

Jan 3, 2011

I want it so every time I click an ITEM in the Listbox it displays ALL the data into the textbox. I know there's an easy way using table adapters and binding the listbox, but I'd prefer to do it this way for my project.

So this is what I got.

Lst.DataSource = ds
Lst.DisplayMember = "tblStudent.FirstName"
Lst.ValueMember = "tblStudent.StudentID"

[code]....

It only adds the first rows details to the text box when I click the second record the first rows details are still there.

View 2 Replies

.net - Displaying Data In Listbox In VB?

Mar 28, 2012

I want display data from database in Listbox...Here is my code, It is not working. In Listbox it is displaying as Object[,].Array..

[Code]...

View 1 Replies

.net - Displaying Data In Reports For ASP.net?

Jun 22, 2012

I would like to know if there's anything that can display data differently than what's stored in the DB.Here's my example. I have a column called Active and in the DB table, 0 represents Active, -1 represents InActive.In my report, when showing whether or not a listing is Active, I'd rather have the words Active and Inactive rather than 0 and -1.

View 3 Replies

DATA Not Displaying In Datagrid

Oct 15, 2009

It appears my connection to the db is correct when I select different options the datagrid displays the correct number of records. So I am not sure why I can not see the data in the grid.[code]....

View 4 Replies

Data Not Displaying On Datagridview

Oct 10, 2011

I want my mysql data to be showed on datagridview, i'm doing like this but it's not displaying. [code]....

View 4 Replies

Displaying Data In A Chart?

May 21, 2010

Can someone show a beginner how to display data in a chart.I am using VB 2010 and my form displays a datagridview.The Datgridview has 2 fields. Date and numberfield.I would like to show the date along the bottom of a simple bar chart with each number from the numberfield above the relevant date

View 2 Replies

Displaying Data In A Grid?

Dec 4, 2009

I am working on a program in VB 2008 that will generate a due list. What I need to do is look in a dataset for customers that are due this month and display it in a grid that can be orded by their city. I know how to do a query to that dataset and find the appointments, I do not know how to display the information in a grid from for sorting.

View 3 Replies

Displaying Data In List Box

Dec 1, 2010

What I am trying to accomplish is this: I have a login page were a student logs in. After the login the student will be taken to a student user page. This page has 2 list boxes. The first is showing the exams that he has passed and the other shows the exams he has yet to complete or fail. I can not get any data to display in my list box. If I can figure the first one out I can do the second one easily but I can not get the first one to work. Here is my code that I have so far:

Private Sub Student_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
Label1.Text = "Welcome " & _passedText

[Code].....

View 6 Replies

Displaying Data In Listbox?

Aug 10, 2010

i have problem in displaying data in list box after i click in any row in datagrid view
here is the code

Dim sql As String
Dim conn As New System.Data.OleDb.OleDbConnection
Dim lst, lst2 As New ListBox

[code]....

View 4 Replies

Displaying Data In TextBox

Nov 15, 2011

I want to Display My Table Data In Textbox.I Have around 20 columns in my Table and I want to display each of that on particular TextBox.I am using SQL Server as Database.

View 1 Replies

Displaying Same DataGrid With Different Data

Mar 27, 2011

I am attempting to display a datagrid with the results of two different queries. I want one to display, wait two minutes,display the second query, wait again then start over. I am unable to get either grid to display. If I run either query individually without the wait they display perfectly. How can I do this?

[Code]...

View 3 Replies

Displaying XML Data In A TextBox?

Jan 19, 2011

My code is below. What I "hoped" it woudl do is when I press the button on my form it would open / load my xml data and display the data in my TextBox.

What it does - it compiles fine and runs but when I press the button nothing appears in my TextBox.

[Code]...

View 23 Replies

Displaying XML Data In Textbox

Jan 20, 2011

My code is below. What I "hoped" it would do is when I press the button on my form it would open / load my xml data and display the data in my TextBox. I have on my form one TextBox and one button. What it does - it compiles fine and runs but when I press the button nothing appears in my TextBox.

Visual Basic Express
Code:
Imports System
'Imports System.IO
Imports System.Xml
Public Class Form1
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs)
[Code] .....

View 3 Replies

Not Displaying Any Data From Database

Jun 22, 2010

I tried the same.. but its not displaying any data from database[code]...

View 2 Replies

Site Is Not Displaying The Right Data?

Mar 6, 2009

I have a textbox where a user enters a code that is connected to their account. It will then display a welcome message in place of the textbox where they entered their information. It used to work up until I added more code for it to query another database. That ended up messing up my page and since I have deleted that code, I must've forgotten something, or maybe my code was messy to begin with....but now my welcome message is always the wrong person's name. In fact, no matter what code you type in, it displays the same person's name.This person doesn't even have a code in the database. I tried adding IS NOT NULL and ISLIKE 'B%' so that i

View 1 Replies

VB NET Site Is Not Displaying Right Data

Mar 9, 2012

I have a textbox where a user enters a code that is connected to their account. It will then display a welcome message in place of the textbox where they entered their information. It used to work up until I added more code for it to query another database. That ended up messing up my page and since I have deleted that code, I must've forgotten something, or maybe my code was messy to begin with....but now my welcome message is always the wrong person's name. In fact, no matter what code you type in, it displays the same person's name. This person doesn't even have a code in the database.

[code]...

View 1 Replies

Way Of Displaying / Entering Data

Jan 5, 2010

Now, when the user starts typing values (limited to numbers only), I want it to go like the following:[code]As you can see, when you start typing the values, start with the space on the far right and then move towards the left with each additional number entered; I guess it's similar to the way a calculator accepts values, only I need it for entering time (i.e. mm:ss).Right now I have to enter all the numbers including the ":" between the values and the values entered are saved to a database.Also, should I be using a TextBox for this or is there a better way of displaying/entering the data.

View 6 Replies

DataGrid Not Displaying Data From Source

Jan 12, 2011

Take text data from a small file and display it in a form using a DataGrid.

I am trying to make the program so it will allow the user to choose which file to open (this part already works). I have stepped through the code and found that the rows are being added to the table, but when the action runs to completion my form has no data on it. Here is my code (forgive any code shortcomings as I have exactly three days as a VB.NET programmer).

[code]...

View 7 Replies

DataGridView - Displaying Data From TCP Stream

May 24, 2012

I am using a Data Grid View to display data that come in from a tcp stream. When the stream receives data, the data is parsed and placed at the top of the grid. These are my top 3 lines of the cell clicked event of the Data Grid View.

Code:
If SpotsGrid.CurrentRow.Index = Nothing Then Exit Sub
i = SpotsGrid.CurrentRow.Index
tempFreq = CStr(SpotsGrid.Item(1, i).Value)

I placed the top line there to prevent errors when a user clicks on a blank grid before any data has been placed in the grid and to stop selecting anything if a user clicks on a column header. But my problem is as data is added to the to the top line that line of data is not click-able because the index=0 or Nothing. So my question is what would be the best way to code this so it is protected from the user clicking on a blank grid and the column headers but still allow the user to click on the first line of data?

View 1 Replies

DataGridView Not Displaying Data In ToolStripDropDown

Mar 12, 2010

I'm utilizing the code posted by Jesper Palm here: url...It works great with a PictureBox showing its information. But for some reason I cannot get the DataGridView to display anything when it is in the popup. If I pull the grid out of the popup it displays all of its information fine. If I pause during debug, the grid shows that it has all the data in it. It's just not displaying anything.

View 2 Replies







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