Measurement Studio for .NET Languages

cancel
Showing results for 
Search instead for 
Did you mean: 

Is there a way to Scale X-Axis Data in .NET like there was in VB6 ?

 

Background:

In Measurement Studio (ver 8.6.11) for Visual Basic 6, there IS a way to scale the X-Axis data of a CWGraph.

...It's done in Properties > Format tab > X-Axis > Format String > (string type scaling)

 

 

Question:

Is there a similar way to scale X-Axis data

using Measurement Studio 12 for .NET  ??

 

I'm using Visual Studio 2010 & C#.

 

 

 

 

0 Kudos
Message 1 of 4
(5,557 Views)

Hi there,

 

You might want to look at the NationalInstruments.UI.FormatString type in NationalInstruments.UI.dll.

 

You may be interested in this forum post.

 

Hope this helps.

 

Vijet Patankar,

National Instruments.

Message 2 of 4
(5,552 Views)

 

 

Thanks Vijet,

 

It's helpful to know that the X-Scaling ability does not seem to exist in .NET (so I can stop looking for it).

 

A not for others...the two main alternative in this situation seem to be:

 

1: Scale your own X-Data, then use PlotY (instead of waveform) to plot the data

2: Hide the auto-generated Major & Minor X-Axis divisions, then use custom divisions

    and place them where you want them with the values you want them to have.

 

Again, Thanks Vijet!

 

 

0 Kudos
Message 3 of 4
(5,539 Views)

Hi there,

 

I was just wondering what do you mean by scaling ability?

 

Let us know if this following understanding is correct.

 

X-Axis range is (0, 10) and you have the labels like 0, 2, 4, 6, 8 and 10. But you want the range to be (0, 10), but you want the graph to somehow display a range from (0, 20), with labels like 0, 4, 8, 12, 16 and 20.
If that is so, there is a property you can set on the WaveformPlot to do this. Look at the WaveformPlot.DefaultIncrement and WaveformPlot.DefaultStart.

 

Hope this helps.

 

Vijet Patankar,

National Instruments.

0 Kudos
Message 4 of 4
(5,534 Views)