NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

teststand flexible custom type

Solved!
Go to solution

hello,

i creat a new custom data type in my sequence file name T_Machine contain

{
  name : String,
  IPaddress : String,
  index : Number,
  id : String,
  params : Container, // can contain many parameters different from machine to another, it is empty by default
}

see the image below

Capture.PNG

 

and in the fileglobals i create an array of T_Machine but when i try to insert filed into the params container i can't

 

Capture2.PNG

why ?

and the idea is i want to create a params of every machine for exemple : i want create params.Port for the first machine

and params.Data for the second machine.

 

0 Kudos
Message 1 of 2
(800 Views)
Solution
Accepted by topic author hakimS

karimS,

 

By default, the expectation is that, the structure of T_Machine (including its sub-container) will be same in all its instance. Hence, you are seeing the behavior which is expected.

 

If you really want to have different content under a container, you need to set the `UnstructuredProperty` flag. In your case, under T_Machine custom data type, right click on params container. Go to Properties. Click on advanced button and select flags to modify the flags. There, enable PropFlags_UnstructuredProperty.

 

By doing the above, you will get the behavior you want.

 

-Shashidhar

0 Kudos
Message 2 of 2
(694 Views)