Hi,
Here's a bit of code which demonstrates some of the "basic" graphics methods you're likely to require. (Just draw a Picturebox - Picture1 and a Command Button - Command1 , copy and paste, run and click the Command Button
Option Explicit
Private Sub Command1_Click()
Dim sngSin(0 To 360) As Single
Dim sngCos(0 To 360) As Single
Dim sngSinD(0 To 360) As Single
Dim sngScaleX As Single
Dim sngScaleY As Single
Dim sngX As Single
Dim sngY As Single
Dim PI As Single
Dim intI As Integer
PI = 22# / 7#
'
' sngScaleX and sngScaleY as their names imply, are scaling factors
' so the plots fill the Picturebox
'
sngScaleX = Picture1.Width / 360
sngScaleY = Picture1.Height / 2
'
' Draw an X axis
'
Picture1.Line (0, sngScaleY)-(Picture1.Width, sngScaleY)
'
' Put something in the arrays to plot
'
For intI = 0 To 360
sngSin(intI) = Sin(intI * PI / 180)
sngCos(intI) = Cos(intI * PI / 90)
If intI <> 0 Then
sngSinD(intI) = sngSin(intI) - sngSin(intI - 1)
Else
sngSinD(intI) = sngSin(intI)
End If
Next intI
'
' Plot the Sine and Cosine waves using Pset
'
For intI = 0 To 360
sngX = intI * sngScaleX
sngY = sngScaleY * (1 + sngSin(intI))
Picture1.PSet (sngX, sngY), vbBlue
sngY = sngScaleY * (1 + sngCos(intI))
Picture1.PSet (sngX, sngY), vbRed
'
' Draw tick marks on the x-axis every 90 degrees
'
If intI Mod 90 = 0 Then
Picture1.Line (sngX, sngScaleY)-(sngX, sngScaleY + 100)
End If
Next intI
'
' Plot the Sine wave using the Line method and relative points
' (ie (sngx,sngy) are relative to the last point plotted
' so sngx will be constant, and the values in sngSinD were
' set up as relative values above)
' The Picture1.Pset statement below defines the starting point
'
Picture1.PSet (0, sngScaleY)
sngX = 1 * sngScaleX
For intI = 0 To 360
'
' Plot the Sine Wave with a third of the amplitude
'
sngY = sngSinD(intI) * (sngScaleY / 3)
Picture1.Line -Step(sngX, sngY), vbBlack
Next intI
End Sub
For a very simple plot, just putting the info from your ADC into an array and using something like to above should get you going.
Hope tis helps
Regards
Doug