Measurement Studio for .NET Languages

cancel
Showing results for 
Search instead for 
Did you mean: 

how to scale(specify format string for scaling) Y axis labels on waveformgraph

Does anybody know how to scale Y axis labels on waveformgraph using Visual Basic .NET?
I know how to do it in Visual Basic using formatstring but whats the equivalent of formatstring here in Visual Basic. NET? There is something like labelformat in .NET but I couldn't use it for scaling.

I just want to multiply the Y Axis labels with a constant during run-time.


Thanx in advance
0 Kudos
Message 1 of 4
(4,289 Views)
I'm not sure what you mean by FormatString in Visual Basic since VB did not have a FormatString function. Are you talking about VB's Format method or the FormatString property on CWAxis in the Measurement Studio graph ActiveX control? If the former, the equivalent is the String.Format method. The format strings for String.Format can be standard numeric format strings or custom numeri
c format strings
, neither of which support scaling. If the latter, the equivalent is the LabelFormat property on Axis.MajorDivisions. The type of this property is FormatString, which uses the .NET format strings described above.

I will file a feature suggestion about this for a future release of Measurement Studio. In the meantime, you can workaround this by scaling the data before plotting it.

- Elton
0 Kudos
Message 2 of 4
(4,289 Views)
Elton:
Thanx for the reply. Sorry for not being clear about the formatstring. I'm talking about the CWAxis.FormatString in Visual Basic where we can specify the scaling factor. For example FormatString(".*2") prints the value 1.0 as 2.
I used to scale the labels instead of scaling the data in Visual Basic.
Thanx for putting it as feauture suggestion for future release.

Rajesh
0 Kudos
Message 3 of 4
(4,289 Views)


This was asked in 2004. 

Has there been a better answer in newer versions?

Is there a way to implement the VB6   .FormatString  functionality in the .NET Measurement Studio?

Specifically I'd like to scale a set of values by a factor (say * 10)

Thanks,

 

0 Kudos
Message 4 of 4
(3,023 Views)