How do I display a graphic waveform on BTHQ 128064AVC-SMN-06-LEDwhite-COG? Any sample code?

>How do I display a graphic waveform on BTHQ 128064AVC-SMN-06-LEDwhite-COG?
Depends on how you want to display it. If you're planning to do it at the console, you're going to have to find a console graphics library or use the one built into the WinAPI...

For GUI graphics you have to create a window first and then draw your graphics on top of that. See this:
http://www.winprog.org/tutorial/

oh.. I need to display a waveform on the LCD using C++ coding..

Have you take a look at the LCD? Its a dot matrix based LCD.. and i'm using a chip call C8051F to process the C langauge code to display it on the LCD.. That's y i am not sure how to display on it..

>oh.. I need to display a waveform on the LCD using C++ coding..
Yes, but how do you want to display it? Do you want it on the black console window that you run your text-based applications in? Do you want it in a window? If that's the case, just check out the link I posted before to learn the basics of WinAPI GUI programming.

sorry.. i'm a novice in that.. i dun really get what u mean..

I have take a brief look at the link that u have gave me.. But i dun understand what it says..

>sorry.. i'm a novice in that.. i dun really get what u mean..
Do you want it displayed on something similar to this (sorry, this is Mac OS X, but Windows' Command Prompt is alike):

[attachment]3079[/attachment]

Or do you want a whole separate fancy window where you draw the wave?

Attachments Picture_1.png 13.28 KB

I think i'm using a software call Silabs to write the programme.. Can u help mi take a look at this link? http://www.silabs.com/tgwWebApp/appmanager/tgw/tgwHome?_nfpb=true&_pageLabel=interactiveGuide&col=dgio

Ctrl+F to find F000.. look at the data short and data sheet.. This is the software I using to do the code..

The pdf I show u is exactly the LCD I'm dealing with.. Take a look at that too..BTHQ 128064AVC1-COG

That data sheet talks about parallel or serial versions, you need to figure out which one you've got.

Read the appropriate one of these, for the type of operating system you're running on your development PC.
http://www.lvr.com/parport.htm
http://www.lvr.com/serport.htm
I'm assuming this device is plugged into your PC in some fashion.

For serial line interfaces, you need to read the data sheet (what you posted was a sales leaflet, not a programmers data sheet) to find out such things as
- baud rate
- stop bits
- parity
So that when you start to write your programs, then you can set up the serial port on the PC to match what the LCD module expects.

The first programming step is to find an example which the manufacturer has provided, and try to make it work on your platform. When you're confident of that working, then you can try other things in the data sheet such as perhaps plotting pixels.

If the manufacturer has been really nice, you make have a library which does a lot of this stuff for you, in which case you need to go read all about that as well.

Then (and only then) would you be in a reasonable position to be able to plot your graphs.

That data sheet talks about parallel or serial versions, you need to figure out which one you've got.

Read the appropriate one of these, for the type of operating system you're running on your development PC.
http://www.lvr.com/parport.htm
http://www.lvr.com/serport.htm
I'm assuming this device is plugged into your PC in some fashion.

For serial line interfaces, you need to read the data sheet (what you posted was a sales leaflet, not a programmers data sheet) to find out such things as
- baud rate
- stop bits
- parity
So that when you start to write your programs, then you can set up the serial port on the PC to match what the LCD module expects.

The first programming step is to find an example which the manufacturer has provided, and try to make it work on your platform. When you're confident of that working, then you can try other things in the data sheet such as perhaps plotting pixels.

If the manufacturer has been really nice, you make have a library which does a lot of this stuff for you, in which case you need to go read all about that as well.

Then (and only then) would you be in a reasonable position to be able to plot your graphs.

\\

The development device used an USB cable to plugged into the PC for the programme.. I supposed it is a serial port.. Then wat shall i do next?

This article has been dead for over six months. Start a new discussion instead.