NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

new value in resultlist

Hi

I had a question. I found some solution in this forum, but i do not understand.
I want to add a new value to the resultlist. I had to expand the database table "STEP_RESULT" with the column "Seriennummer".
How can I add this new value to the resultlist and how can I set/get it?

best regarts

René
0 Kudos
Message 1 of 4
(3,735 Views)

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

 

0 Kudos
Message 2 of 4
(3,715 Views)

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

0 Kudos
Message 3 of 4
(3,586 Views)

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

 

0 Kudos
Message 4 of 4
(3,582 Views)