You can use SetGraphCursorIndex to move the cursor also. You need to get the handle of the plot first. One easy way in a callback to get the plot handle is to use GetGraphCursorIndex. You can modify the callback from my previous comment like this. You'll see the cursor move based on the index you provide to SetGraphCursorIndex.
int CVICALLBACK ResetCursor (int panel, int control, int event,
void *callbackData, int eventData1, int eventData2)
{
int localError;
int plothandle;
int index;
switch (event)
{
case EVENT_COMMIT:
localError = SetGraphCursor (panel, PANEL_GRAPH, 1, 10, 10);
localError = SetGraphCursor (panel, PANEL_GRAPH, 3, 90, 90);
/* Figure out which plot and which point the C
ursor is over */
localError = GetGraphCursorIndex (panel, PANEL_GRAPH, 2, &plothandle, &index);
localError = SetGraphCursorIndex (panel, PANEL_GRAPH, 1, plothandle, 50);
break;
}
return 0;
}