Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

Need Graph on Computer through Serial Port

Status
Not open for further replies.

umery2k75

Advanced Member level 1
Joined
Apr 19, 2006
Messages
434
Helped
41
Reputation
80
Reaction score
15
Trophy points
1,298
Location
Pakistan
Activity points
5,748
graph serial port

I have incoming analog data through MCU to serial port of computer. I want to see the graph of it. I was told this could be done in Lab View or by using the Matlab, I read about matlab, but it can't go on Real Time. I tried couple of times to show the value with respect to time on Lab view, but it was asking for some driver.I installed that from the official website and that was an evalutation version. Anywayzs should I write myself a program that would do that or these software can also show graph simple? As LabView is designed for such kind of stuff. I think I better go for the programming, as I would have better control on it, but I just also want to use the labview just to see the graph. I'll make myself a program that would do, but it would take a time. Does anyone know how to setup a graph based on numbers coming from serial port.Doesn't matter how big or small the number of values are.
 

vb express+labview graph

Use VB or C sharp dot net to program your serial port.
 

labview serial port graph

Just take care of timing... only Windows is not the best solution if you're looking for a real time acquisition system, may be you need some dedicated hardware (buffering), but if the update frequency is not too high (every 100 ms or more) may be feasible.
I've did some test with cycling of 100 ms with 19200 bps serial transmission (8 bit) without loosing data byte (with VB6 coded application).

Bye
Pow
 

labview + serial port + real time graph

It can be done from Microsoft Excel using Visual Basic (within Excel). I describe how to do it in my book "Excel by Example: A Microsoft Excel Cookbook for Electronics Engineers " published by Elsevier/Newnes, ISBN:0750677562

You can also do it by writing a progam in a language like VB and either use a charting control within VB or you can use VB to open Excel and export the data to a worksheet where you can dynamically create the graph, or more simply have the data appear on an existing graph. I describe a similar technique (although the data is going in the other direction from Excel to the serial port) in my article "Generic Modbus Simulator " in the March and April 2007 editions of Circuit Cellar where I describe a Modbus Interface where some of the data is derived from an Excel workbook.
**broken link removed**
Circuit Cellar does charge a nominal amount for each article.

The actual description of the use of the serial port within VB2005 is covered in a separate article "Visual Basic 2005 and the Serial Port" in the December 2006 issue.

Jan Axelson did an article on the same topic (serial port in VB2005) more recently in "Nuts and Volts".

And as TekUT says, "real time" is a very subjective term when using Windows. It is neither fast, periodic or predictable.

-Aubrey Kagan
 

This should be the simplest thing to do but due to the insanity of both mat lab and lab view when it comes to serial ports the task is unnecessarily difficult. I should not blame the apps since the OS is screwed but that’s not limited to Windows, same with Linux – its serial driver (read kernel integration) is horrible - once you get into the signal() bullshit and how the kernel handles it one would think that Microsoft is not so bad since real time and multi-tasking are mutually exclusive objectives.

In the past a PEG approach had worked but its expensive – you do get a real real time in exchange of the cost. An LCD development board is around $300 and then the PEG compiler – you figure the numbers
 

Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top