NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

Container variable has different order and different value compare with type definition

I am using Teststand 2010.

 

 

I created some custom data types which is container. I defined the order of elements as well as default values. I use this as enum since TS 2010 does not support enum. 

 

There are two problem I would like to verify. When I create variable from these custom data types. The order of the elements is changed. The default value also changed. The default value of variable are not set to 0 but to a random number. I can set this to specific value at setup but I still don't like that the value are messed up. But more importance is the order of element. I created these container to use in TS only not to pass data between TS and LabView. I tried to set "Allow Objects of this Type to be Passed as LabVIEW Clusters" but the order of element still changes.

 

Regards,

Thang Nguyen

0 Kudos
Message 1 of 2
(3,968 Views)

One of the solution I found to fix the problem with default value change is delete the current variable and recreate it again.

0 Kudos
Message 2 of 2
(3,891 Views)