Multifunction DAQ

cancel
Showing results for 
Search instead for 
Did you mean: 

Scaling Data on a waveform chart while scaling the x axis

I am monitoring a number of Thermocouples for an extended period of time.  I plot the readings that are taken every minute onto a waveform chart.  I added the capability for the user to specifiy how many hours and how many x axis markers he would like to see on the chart.  The problem is that the data does not scale with the chart.  For example if my data covers half my chart when the x axis span is 1 hour, it will still cover half the chart when the x axis span is changed to 2 hours or 4 hours. 

 

I am attaching a snippet of the code that changes the x axis scale and markers.

 

 

0 Kudos
Message 1 of 2
(2,809 Views)
Of course the appearance does not change. Changing the offset and multiplier is just the wrong thing to do since all that you are doing is changing the apparent dt. If you want to keep the dt constant but display more/less points, you need to be changing the Range.Minimum/Range.Maximum.
0 Kudos
Message 2 of 2
(2,795 Views)