Measurement Studio for .NET Languages

cancel
Showing results for 
Search instead for 
Did you mean: 

XYCursor and multiple X-axis

In my application I have WaveformGraph containing one WaveformPlot, two X-axis and one XYCursor. The cursor
label X shows values from X-axis number one by default, but I want to use values from the second X-axis. Is there
a way to do this?  
0 Kudos
Message 1 of 2
(2,926 Views)
The XYCursor has a property 'Plot', and this the only property you can use to connect the Cursor with 'Real World':
    XyCursor1.Plot = WaveformPlot1

The
WaveformPlot has a property XAxis. You can switch between x-axes by assigning
    WaveformPlot1.XAxis = XAxis1
or
    WaveformPlot1.XAxis = XAxis2

After you reassigned the XAxis property for your WaveformPlot, your XYCursor will automatically use the XAxis you assigned.
   
0 Kudos
Message 2 of 2
(2,916 Views)