NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

Odd behavior of array element in Custom Data Type

Hi,

 

I found an odd behavior of Custom Data Type when updating one of its array element.

If I update bounds of an array element in Custom Data Type, TestStand updates all instances but not bounds of that array.

If I update any other element it is automatically updated...

 

To make it more clear I will describe the topic in more details:

I have a custom data type that contains an array and some other fields.

The custom data type is stored in MyTypes.ini so it is available for any sequence.

Sequence1 is using my custom data type.

 

Case 1:

Update non-array field in Custom Data Type

I update a field, e.g. Boolean one.

Custom Data Type is saved.

All instances of Custom Data Type are automatically updated in all sequences (regardless if those sequences are open or not).

 

Case 2:

Update bounds of an array element in Custom Data Type

I update number of dimensions of an array element.

Custom Data Type is saved.

All instances of Custom Data Type are automatically updated in all sequences but the dimension of that particular array element does not change!

There is a checkbox "Apply Bounds to All Loaded Instances of the Type" but it works only for sequences that are loaded. If I use the type in a sequence which is closed during update the bounds of an array will not update.

 

Am I missing something here or is it a bug?



0 Kudos
Message 1 of 2
(1,652 Views)

Hi,

The problem that you was stated  is an expected behavior.

bhovhann
0 Kudos
Message 2 of 2
(1,369 Views)