04-21-2004 10:32 AM
04-21-2004 12:40 PM
10-10-2012 07:20 AM
I see that this post is a couple years old. Has this functionality ever been implemetned.
10-11-2012 09:33 AM
@Kiebach wrote:
I see that this post is a couple years old. Has this functionality ever been implemetned.
Yes. As of TestStand 4.0, you can now access the entire TestStand API (including the numeric format) inside of an expression. For example: Locals.MyLocalNumber.NumericFormat
Hope this helps,
-Doug
10-11-2012 03:09 PM
But How do I adjust the Schema to include 'formatted data' and/or 'format string' in the database.
10-12-2012 03:53 PM
If you are using TestStand 4.1 or later you should be able to look at the PROP_RESULT table in the one of the default NI schemas, which has a column for data and numeric format.
10-15-2012 03:04 PM
I see the numeric format in the PROP_RESULT table, but that only seems to reflect the numeric format for the test result.
How do I find the numeric format for the test limits?
Is it possible to add other columns to the database table that would contain a string with the numeric value already formatted for the result and the limits.
10-16-2012 09:34 AM
Yes you can. I think it would be helpful if you explain in more detail what you are trying to do. Are you using an NI default schema or have you already customized it? If default, what about the schema is insufficient for what you want to do? Is the data and limits that you are trying to log custom properties or or is this for the NI numeric or multi-numeric step type?
10-16-2012 04:52 PM
Yes you can. I think it would be helpful if you explain in more detail what you are trying to do.>>>> Basically I am trying to reproduce the data sheet created by test stand by using the data in the database.
Are you using an NI default schema or have you already customized it?
>>>> I already have a custom schema that I created many years ago, But if I have to start with a 'newer' default schema it wouldn't be to much of a problem to incorporate my changes into it. (I had added Model number and Comment to UUT result table and provided support for custom step types, the custom step types are based on the default NumericLimit step type )
If default, what about the schema is insufficient for what you want to do?
>>>> In order to generate a datasheet from the data in the database that replicates the datasheet produced by teststand, I need the Formatted values for the test results and the test limits. So I'm thinking it would be easier for me to query the database for the formatted numbers (as strings) instead of having to query the database for the 'numeric value' and the 'format string' and then creating the string for my datasheet.
Is the data and limits that you are trying to log custom properties or or is this for the NI numeric or multi-numeric step type?
>>>> No using custom properties, just dealing with 'NumericLimit' step types
I had looked at how the 'SequentialModel.Seq' calls the modelsupport2.dll to to produce the data sheet entries.
ProcessModelPostResultListEntry >
Process Step Result >
Get Step Result Body (Sequence) >
Add Flagged Values >
modelsupport2.dll >
GetFlaggedValuesForReport_Html
But, alas, I don't understanding the whole traversing concept.
10-17-2012 12:12 AM
You seem to already know that you already have the numeric result and limit values, and the format, and you could create the formatted value with those. If you wanted to store a formatted value in the DB, you would need to add a new column for each numeric value to the appropriate table, and then alter the database options schema to log the formated value for that new column. The simple expressioin you could use is Str(Logging.StepResult.Limits.High).