Hi Baselerd,
Unfortunately that won't work in 8.1. You need to use 8.5 in order to have the x-axis labels to automatically track the gridlines.
You do have one possible workaround, although it's a bit clunky. In the UI editor, you can set the "enable label strings" option in the axis settings, and then add a few labels spanning the width of the axis (click the "Generate Values" button in order to distribute the labels uniformly). You can enter a time formatting string as each label (for example, "%X").
Then, as you plot, you can track how many points you've added, and every few points, you'll have to add a new label (and remove an old label). For example, the following code should work:
GetCtrlAttribute (panel, PANEL_CHART, ATTR_POINTS_PER_SCREEN, &pps);
if (counter >= pps && counter % (pps / NUM_LABELS) == 0)
{
DeleteAxisItem (panel, PANEL_CHART, VAL_BOTTOM_XAXIS, 0, 1);
InsertAxisItem (panel, PANEL_CHART, VAL_BOTTOM_XAXIS, -1, "%X", counter);
}
PlotStripChart (panel, PANEL_CHART, data, 1, 0, 0, VAL_DOUBLE);
counter++;
'counter' is a variable that tracks the number of points you've plotter. The code above plots one point at a time, but you could probably adjust easily it if you plot more than one point. 'NUM_LABELS' refers to the number of labels you want to show at any one time.
Luis