08-07-2008 01:56 PM
08-08-2008 09:54 AM
Hi sthompson,
Somewhere in your program, you are setting the range of your waveform graph. It probably looks something like this:
this.xAxis.Range = new NationalInstruments.UI.Range(0, 20);
Instead of passing two numerics, we need to pass two DateTime objects:
.xAxis.Range = new NationalInstruments.UI.Range(DateTime.Now, TimeSpan.FromSeconds(10));this
Also, you must change the default start and increment so it reflects this new range. You need to make sure your increment value matches your timer tick interval as well (if you are using a timer):
this.waveformPlot.DefaultStart = (double)DataConverter.Convert(DateTime.Now, typeof(double));
this.waveformPlot.DefaultIncrement = (double)DataConverter.Convert(TimeSpan.FromMilliseconds(100), typeof(double));
I hope this helps. Let us know if you have any questions!
08-08-2008 10:09 AM
Thanks you for the help. Having read quite a few of the questions posted to this forum, it seems there are quite a few
lost souls out there seeking information. I only wish there were some good textbooks on Measurement Studio available.
Regards,
Sthompson.