From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.
We appreciate your patience as we improve our online experience.
From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.
We appreciate your patience as we improve our online experience.
08-23-2011 05:19 AM
Hi All,
I'm maintaining an existing TS sequence, which creates a custom .csv test report by reading the value of Step.Result.Numeric for each step, converting to a string, and storing the results in a LabVIEW vi as an array of strings.
At the moment, it is using the default numeric format of floating point or engineering units, depending on the value. I've been asked to change the precision of every result to 4 d.p. floating point
I know you can edit the format of a numeric limit test, by editing Step.Result.Numeric > Numeric Format, I was wondering if there is a way to set this globally, so I can save some time by not changing 100's of steps!!
Thanks,
Martin
08-23-2011 08:34 AM
If you're using an unmodified or derivative version of the default process models shipped with TestStand, you should have a Report Options item under the Configure menu. Select it and in the dialog that pops up, there is a field "Default Numeric Format".
08-23-2011 09:26 AM
Another possibility is to use PropertyObject.GetFormattedValue() to convert the teststand number to a string. This method has an optional format parameter which lets you specify a numeric format directly.
Hope this helps,
-Doug
07-10-2012 11:12 PM - edited 07-10-2012 11:12 PM
Do we have an example of this somewhere? I am going to try to develop one if not.
Thanks,
08-13-2014 05:30 PM - edited 08-13-2014 05:52 PM
Is there a way to set the precision on a test by test basis AND have it show up in the report the same way? My customer requested to have "a reasonable number of digits" in the report. I went through and changed each Numeric Limit Test step to have a custom format and set the digits of precision to more closely reflect what was being measured but this doesn't pass through to the report.
Edit:
Well, I just tried this on my home laptop and it seems in my very quick trial to work as I expected. I'll have to see if there is something about the customers machine that is odd.