12-10-2004 09:49 AM
12-10-2004 09:58 AM
12-10-2004 11:22 AM
12-10-2004 11:33 AM
10-28-2008 09:44 PM
11-03-2008 02:12 AM
Hi kprovencher,
You should try setting the AutoSpacing property to false and the Mode property to Fixed Mode for the particular XAxis which you want to be configured, and whenever the range of the data changes, you should make sure that the Base and Interval proeprties of the MajorDivisions of the XAxis is correctly updated.
Meaning to say that, you should do the following at the beginning of the program,
waveformGraph1.Plots[0].XAxis.AutoSpacing = false;
waveformGraph1.Plots[0].XAxis.Mode = NationalInstruments.UI.AxisMode.Fixed;
and every time the data changes, (say, when your range changes from 0-1000 to 0-900)
waveformGraph1.Plots[0].XAxis.MajorDivisions.Base = waveformGraph1.Plots[0].XAxis.Range.Minimum;
waveformGraph1.Plots[0].XAxis.MajorDivisions.Interval = waveformGraph1.Plots[0].XAxis.Range.Interval / 10;
-Mahesh