NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

Use the data typ "array of container" in teststand

Solved!
Go to solution
Solution
Accepted by topic author Cabio

I think there are misunderstandings on both sides.

First off: An array is defined for one datatype. So the array element have to share the same type, in your case "container".

So, your array is already "Container"!

 

A container in TestStand is a datatype which enables you to add "fields". Container1, your local variable, defines several fields for a single container.

The Array_of_Container1 is an array with elements of type container, but it is not necessary that each container shares the same fields!

 

So what you essentially have to do in order to get an array containing lots of "container1"-container: copy your prototype into the array as many times as required. This will create new containers in the array sharing the same fieldnames and -types for each individual element. Then you can populate data for each field in each element individually.

 

hope this helps to clear things up,

Norbert

Norbert
----------------------------------------------------------------------------------------------------
CEO: What exactly is stopping us from doing this?
Expert: Geometry
Marketing Manager: Just ignore it.
Message 11 of 12
(1,698 Views)

Thanks a lot Norbert_B and hsm78,

I think, I have got the point.

 

my fault:

variable                           type

array_of_container         array of container

container1                      container1

 

the solution could be:

variable                           type

array_of_container         array of container

container1                      container

 

 

Regards

Cabio

0 Kudos
Message 12 of 12
(1,688 Views)