NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

Flow Control "For Each" / Array in a DataType Container

Hi,
 
Is there a bug reported concerning the use of Flow Control "For Each" with an array define in a DataType Container ?
When we use this kind of configuration, the "Current Element" is not affected an no error is reported !
I have noticed thatr during the flow control loop, an hidden variable is temporarily created "__ElementSibling0" ; this one can't be created in the DataType Container !!
I join a TestStand Sequence example to show this problem.
 
If someone can help me or give me an explaination...
 
Best regards
Emmanuel
0 Kudos
Message 1 of 4
(3,061 Views)

Hi,

I changed your sequencefile slightly and instead of using Locals.MyContainer.ElementNum I used an one outside of your container.(Locals.currentElement).

This worked as expected.

For some strange reason it doesn't want to store in the property of your container.

Regards

Ray Farmer

Regards
Ray Farmer
0 Kudos
Message 2 of 4
(3,045 Views)

Instead of using your datatype. I created a container with the same structure as your data type (called it Locals.MyContainer2), so my variable is just a container and not an instance of..

Modified the For Each step and the Message step to use MyContainer2.

It works just as your would expect.

Therefore the is a problem if you use a instance of a datatype.

Regards

Ray Farmer

Regards
Ray Farmer
0 Kudos
Message 3 of 4
(3,043 Views)
Hello,
 
Thanks for this feedback. I have notified the R&D about this issue. I will let you know if I have any news about this.
 
Regards,
0 Kudos
Message 4 of 4
(3,021 Views)