‎05-15-2007 05:22 AM
‎05-16-2007 03:31 AM
Hello Kreuters,
Can you explain in greater detail what you mean when you say 'label format'? What do you wish to have displaying as the X axis scale and what does it show at the moment?
Also which Measurement Studio objects are you working with in particular and which version do you have installed?
Tom
NIUK
‎05-16-2007 09:11 AM - edited ‎05-16-2007 09:11 AM
Hi Kreuters,
I assume you are talking about the LabelFormat property associated with XAxis objects. That property is part of the MajorDivisions or MinorDivisions property of the particular x-axis object that you are working with. Now that we are clear on that, to change the LabelFormat programmatically, you could say:
// Remember that XAxes collection is zero-based
sampleWaveformGraph.XAxes[0].MajorDivisions.LabelFormat = new FormatString(FormatStringMode.Engineering, "ee0");
In the NI Measurement Studio Help, navigate to NI Measurement Studio Help >> NI Measurement Studio .NET Class Library >> Reference and then find the FormatString Class section. This has additional code snippets for you.
Hope this helps!
Best Regards,
Message Edited by Jonathan N on 05-16-2007 09:12 AM
‎05-17-2007 02:28 AM
‎06-02-2011 09:14 AM
Thanks Jonathan. Very clear and complete explanations !
Éric