09-25-2012 09:07 AM - edited 09-25-2012 09:26 AM
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#.
09-25-2012 10:06 AM
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.
09-26-2012 09:15 AM
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!
09-26-2012 11:57 AM
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.