NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

Include array of data in additional results

It seems not to be possible to use array of data in additional results? Anyone who knows if this correct?

 

Regards

Vagn

0 Kudos
Message 1 of 9
(4,187 Views)

Hi,

 

Just add the array in the Value to Log column eg Locals.MyArray. You dont need to add each element.

Add some meaningful string in the Name column and ensure the Include in Report is enabled.

 

All this will do is include the values of each element of the array in the report. I have noticed that if you are using XML or HTML report, the contents of the array are displayed as a graph and you will have to change the report options as to how you want the data to be displayed.

As a Text report the values get displayed as a list.

 

Hope this helps.

 

Regards

Ray Farmer

Regards
Ray Farmer
0 Kudos
Message 2 of 9
(4,171 Views)

Hi, 

 

I am sorry not to be specific enough.

 

I have a custom data type existing of an array (StepIDs) of container (StepID) which include 2 numeric values (StepNo, ErrorCode) and 1 string value (ErrorComment).

 

I would like to specify the "StepIDs" in the "Type" field. This is not possible as I see. The "StepID" container may be specified, but not StepIDs.

 

If I make a local variable using "StepIDs" I can use this, but can't use the data type directly.

 

Hope this help understanding my problem. 

 

Regards

Vagn

0 Kudos
Message 3 of 9
(4,167 Views)

Hi,

 

I tried your example, the first step I am seeing the extra result and when I add some values to your local I see them as well.

The second step doesn't because you haven't specified anything to report.

 

 

Regards

Ray

Regards
Ray Farmer
0 Kudos
Message 4 of 9
(4,159 Views)

Hi Ray,

 

Exactly my point. In the first step I show what is possible, but I don't want to do. In the second step I would like to specify "StepIDs" in the "Type" field. This is not possiple, and it is not possible to use an expression.

 

The reason I would like to use the "StepIDs" type is that in each step in the sequence a unique StepNo must be provided. This I would like to specify directly in the "additional results" pane.

 

(Alternative solution is to make a custome steptype and specify it in the result container to include it in the report. And make a smalle configurator for technician to key in Step No, Error code and error comment for each step.)

0 Kudos
Message 5 of 9
(4,154 Views)

Hi,

 

Select <ANY TYPE> and it will pickup StepIDs when you specify the Locals.StepIDs and it will use the size of the array to insert into the report.

Otherwise if you select StepID then you have to specify the individual elements of the array.

 

Regards

Ray

Regards
Ray Farmer
0 Kudos
Message 6 of 9
(4,149 Views)

Hi,

 

I think we misunderstand each other, I don't have data in Locals.StepIDs. This was only an example showing that additional results might operate with arrays. I need to key in information for each step in additional results. If I could settle for one stepNo in each test step it is possible to chose data type "StepID" (the container). If I need 2 or more step numbers I could include equivalent number of "StepID". The brilliant solution would be to have an array of "StepID". This is what I can't specify.

 

I have changed the example to use a number of "StepID". Instead of using a number of "StepID" I would like to use the "StepIDs" (array) but this seems not to be possible?

 

Regards

Vagn

0 Kudos
Message 7 of 9
(4,143 Views)

Hi Vagn,

 

If I am understanding, it does appear that you can not select an array of types and populate with data statically as you have in your example.

The only way would be use a variable which is an array of types such as a Locals and link this in the additional results as I did in my example.

 

regards

Ray

Regards
Ray Farmer
0 Kudos
Message 8 of 9
(4,123 Views)

Hi Ray,

 

I will just make a small modification to the standard NI test types and add a "StepIDs" array to the result container instead of using the "additional results". This solves my problem.

 

Regards

Vagn

0 Kudos
Message 9 of 9
(4,061 Views)