drawing a square wave
i'm really a beginner here, so hopefully somebody can help me. i'm currently doing a dialog application for a IC tester(hardware). In this application, it will send some vector(series of '1' and '0' ) to the IC tester(hardware) and then after the testing it will return back a result vector(series of '1' and '0' ) to the computer. Therefore, in the dialog, it will hv a button to start the testing. Once the button is pressed, the testing will begin and later in the dialog, it should display the input vector and also the output vector( which looks like a square wave to represent 1 or 0). The data for the vector can be taken from a file saved in text format.
The problem now are:
1)how do i display the vector in my dialog box? Should i create and list box or picture to display the graph in certain area in the dialog?
2) is there anybody who knows how to draw a square wave by getting the data from a file( the file contains a series of 1 and 0, and if 1, the wave amplitude is high and if 0 it will show low). Which function do you recommend me to use?
3) i also need to be able to zoom in/out to view the vector.
Thanks.
Thanks in advance.
|