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.

[General] how to plot a data? (UART)

Status
Not open for further replies.

Plotproblem

Newbie level 3
Newbie level 3
Joined
Feb 8, 2015
Messages
3
Helped
0
Reputation
0
Reaction score
0
Trophy points
1
Visit site
Activity points
21
Hey guys, i need a hand.

My movement sensor is sending data to PC through serial port ( UART )

Then i need to get that data and assemble to a variable and plot.
I need to receive the data and plot it.

I'm using Code Blocks to write the code, any ideias how to put it all together?

Thank you all!
 

My ideia was: trying to create a program, that plot the data in real time (while the data is collected).

My first ideia was to assemble the data to a variable, in the code, to make my program.

I need to write the program down, can't be ready made :(.

everything i tried it dont work, i tried to use koolplot library, graphics one, nothing worked.
 

I have used wxWidgets with Code::Blocks to plot graphs of data acquired from ADCs
https://www.wxwidgets.org/

the critial thing is how fast is the data arriving? if too fast (probably greater 200 or 300 samples/second) you could could start loosing data - I found that skipping elements, e.g. plotting every 5 or 10 samples, can hep but you loose information.
 
I'm also using wxWidgets, but i still dont know how plot using it.

yo're using wxwidgets to plot the data on real time?

How you do that?
 

it was some time ago but I seem to remember using wxPaint
https://docs.wxwidgets.org/trunk/classwx_paint_d_c.html

e.g.
Code:
void paintFrame::Paint(wxPaintEvent& event)
{
        wxPaintDC dc( Panel1 );
    dc.DrawLine( 0, 0, 100, 100 );
    printf("paint\n");
}

also worth looking at is wxSmith
https://wiki.codeblocks.org/index.p...al:_Drawing_on_the_Screen_and_Saving_Drawings

these days I tend to use Visual Studio either painting lines onto panels or using the Chart component
https://msdn.microsoft.com/en-us/library/dd489237(v=vs.140).aspx
 
Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top