06-09-2010 08:55 AM
Some of my measurements from VIs are coming back with an exceedingly long string of decimal points. Is there a way to have TestStand globally trim it down globally or individually for the report?
Thanks,
jvh
Solved! Go to Solution.
06-09-2010 09:15 AM
06-09-2010 09:28 AM
I set the following in the ReportOptions within my ReportOptions callback:
Parameters.ReportOptions.NumericFormat = "%$.2f"
Or under Configure->Report Options select the 'Edit Format...' button near the Default Numeric Format control.
Help indicates:
"Determines how the report formats numeric values for which you did not specify a numeric format."
Thanks,
PH
06-09-2010 10:46 AM
06-09-2010 11:04 AM
Thanks folks. A big help as I must deploy today.....
06-09-2010 12:52 PM
Asbo wrote:
That was embarassingly straightforward 😉 Unfortunately, this field is disabled for ATML reporting (which I'm going to use as an excuse for not knowing about it) - the NumericFormat parameters still gets passed into the support DLL, but it doesn't affect anything. Anyone know a slick way of globally setting the numeric format for ATML reports?
I think the ATML report data is simply XML. XML is more of a database than a document, so a number would be recorded in the file as it's datatype (double,I32 etc...)
I suspect you would need to modify the ATML stylesheet in order to change the way the floating point values are presented in a browser...
06-09-2010 02:23 PM
Phillip Brooks wrote:
I suspect you would need to modify the ATML stylesheet in order to change the way the floating point values are presented in a browser...
Fair point, but why does XML reporting get to modify it then? 🙂
06-15-2010 04:09 PM
Numeric format of measurements displayed in the report can be modified both in generated xml and/or in the stylesheet. It is recommended for customers to modify the stylesheet to display meansurement data with the required numeric format rather than generating the XML with a specific numeric format. Using the recommended approach preservers the measurement data in case it is required in the future. But, we understand that not everybody wants to modify the stylesheet, hence TS provides a way for customers to modify the numeric format of the generated xml also.
Regarding ATML reports, there is a known bug which prevents users from setting the numeric format for the generated XML.
This will be fixed in a future version of TS.
Hope this helps
Regards
Anand Jain
National Instruments
06-15-2010 04:12 PM
Thanks for the info, Anand.
Anand Jain wrote:
Regarding ATML reports, there is a known bug which prevents users from setting the numeric format for the generated XML.
Is there any workaround in the interim, by chance?
06-15-2010 04:20 PM
asbo,
What version of TS are you using?
Regards
Anand Jain
National Instruments