The following code demonstrates what you want to do. The form should have a 2D Graph (CWGraph1), a DSP control (CWDSP1), and a command button. Your difficulty may have been in (not) using the Set statement to assign a plot to the cursor. The VB lines of particular interest are in bold.
Private Sub Command1_Click()
Dim phase
Dim x
Dim y
'Create one sine wave
phase = 0
x = CWDSP1.SineWave(128, 1, 0.01, phase)
'Create a second sine wave
phase = 30
y = CWDSP1.SineWave(128, 1, 0.01, phase)
'Remove any plots from graph
CWGraph1.Plots.RemoveAll
'Plot one
CWGraph1.PlotY x
'This line prevents the next call to PlotY from overwriting the first plot.
CWGraph1.Plots(1).MultiPlot = False
CWGraph1.PlotY y
'I added a cursor interactively, so it already exists on the graph.
'Tell the cursor to snap to points on a specific plot
CWGraph1.Cursors(1).SnapMode = cwCSnapPointsOnPlot
'Tell the cursor which plot to snap to. You MUST use a Set statement because
' CWGraph1.Plots(1) references an object (in this case a plot object.)
Set CWGraph1.Cursors(1).Plot = CWGraph1.Plots(1)
'Put the cursor at index 64 of the plot data.
CWGraph1.Cursors(1).PointIndex = 64
MsgBox "asdf"
'Attach the cursor to the second plot.
Set CWGraph1.Cursors(1).Plot = CWGraph1.Plots(2)
'Put the cursor at index 32 of the plot data.
CWGraph1.Cursors(1).PointIndex = 32
End Sub
I hope this helps,
David