Measurement Studio for .NET Languages

cancel
Showing results for 
Search instead for 
Did you mean: 

Problem in graph with time axis in WPF

platform: MStudioVS2010( measurment studio for vs 2010)
the Adjuster is {FitLoosely}
the PreferIndexData property is set to False
The name of the time axis is xAxis
Set a new range by following code
xAxis.Range = newRange;
I set the range as 1 second, The axis on wfp show 19.

If I set the the Adjuster to RangeAdjuster.None.
The axis range on wfp show 1. however, the plots on graph were not updated.

0 Kudos
Message 1 of 2
(3,794 Views)

Hi cckyle,

 

The range will change if you have an Adjuster set, which would explain why you are seeing an axis of 19. However, if you set the Adjuster to None then you should not see a changing axis. That being said, your range should be more than one value. The range property should be set as follows 

<ni:AxisDouble Range="min, max, System.Double" />

What do you mean by a range of 1? Is that the min or max value in your range? What is the other value? Would you mind sharing that snippet of your code?

JD B.
Applications Engineer
National Instruments
0 Kudos
Message 2 of 2
(3,774 Views)