[SOLVED] how can I make a program Usig VB?

Status
Not open for further replies.

decapitary

Banned
Joined
Jul 16, 2014
Messages
62
Helped
0
Reputation
0
Reaction score
0
Trophy points
6
Visit site
Activity points
0
I want to write a programm that can get data from virtual USb port and show it on a graph. any help or suggestions?

- - - Updated - - -

how can I activate Virtual USb port in VB 2012? I cant Find Components>Microsoft Comm Control
 

I assume you are looking to connect to a virtual COM port via USB
if you look in the Toolbox there is a SerialPort component which enables one to open a COM port and send/receive data
 
I assume you are looking to connect to a virtual COM port via USB
if you look in the Toolbox there is a SerialPort component which enables one to open a COM port and send/receive data

Found it.but how connect it to a graph?
 
Last edited:

as the data is received you can add it to a Chart component (available in VB's toolbox)
for a C# example of adding data to a chart have a look at post
https://www.edaboard.com/threads/325697/

how many samples /second to you expect to receive?

I receive more than 500 sample per second.

how should I replace Math.Sin with serial USB port?
 

I receive more than 500 sample per second.

how should I replace Math.Sin with serial USB port?
in the C# program a new data value is added when there is a Timer event
you can do this in the SerialPort DataReceived event handler

however, 500 samples/sec is a lot of data to display
is it continuous data? if so will you scroll it across the screen?
will you trigger the display of data like an oscilloscope?

do you need to display all the data or could you display 1 in every 10 samples?

to display a large amount of data/second you will probably need to use more sophisticated plotting techniques such as are used by PC based oscillosopes
 

yup there is a lot of data.I want like oscilloscope ... I really need help can you help me with a book or tell me what to should i do?
 

yup there is a lot of data.I want like oscilloscope ... I really need help can you help me with a book or tell me what to should i do?
try doing a web search for vb oscilloscope code you will get plenty of links
 
Status
Not open for further replies.
Cookies are required to use this site. You must accept them to continue using the site. Learn more…