04-07-2008 10:10 AM
04-08-2008 04:11 AM
Hi Rene,
2 ways exists to adding values to result list. First you create an own step type and a a parameter to result list (you can copy a type from ni_types.ini to my_types.ini)
or you use the activex method addextraresult to adding a variable out of resultlist to the resultlist
Attached here screenshots from 2 points and links to that issue from colleagues
http://zone.ni.com/devzone/cda/epd/p/id/129
http://zone.ni.com/devzone/cda/tut/p/id/4428
Best Regards
Johann
06-12-2008 02:35 PM
Hi,
add here a *.doc with screenshots about adding Locals.Test2-StringProperty to Report. Once i used the AddExtraResultMethod direct as PreExpression (Runstate.Execution.AddExtraResult("Locals.Test2","meinsxy2") before i used the Locals.Test2 in the Expression of Statement Step and the other once i used it in SequentialModel -> SetupResultSettings-Subsequence(Modellsupport.seq) -> Statement-Expression (RunState.Execution.AddExtraResult("Locals.Test2","meinsxy3))
So when ever comes in followings Steps the Locals.Test2 (also with other values) - it will be added to ResultList as "meinsxy2" or "meinsxy3" Name.
So hope it helps to understand the AddExtraResult Method.
Note: The Advanced Flag of Locals.Test2 must set to "Include in Report" - therefore rightclick on Locals.Test2 in the VariablesPane of Sequence...
Best Regards
Johann
06-12-2008 03:02 PM
The Step_Result Entry in Configure -> Database Options -> Statements is for writing Values/Properties to a Database File like e.g. ACCESS *.mdb File.
When you want to read the Step_Result Table in you databasefile - then you should use the database example in e.g. "C:\Program Files\National Instruments\TestStand 4.0\Examples\Database\WritingAndReadingTableData.seq" -> SQL Get String Value or SQL Get Values Step explained how to read the values in your variables (Edit Data Operation in Data Operation Tab of Step)
So you can read the value(s) in e.g. Locals.String Property/Variable/Container and then use the AddExtraResult Method i explained before.
Best Regards
Johann