04-03-2013 09:40 AM
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
04-03-2013 10:02 AM
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