NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

Loading an array of cointeiner using property loader

Hi I have a problem with loading a container of data using propery loader.

 

In sequence file I declared a new type. The container AA contains a number BB and an array of numbers CC.

 

In sequence I create the instance CCC which is array of AA type.

 

However, I couldn't load data from the file into FileGlobals CCC variable.

 

Probably there is a problem with the syntax.

 

Could anyone help me with that?

 

 screen.jpg

Download All
0 Kudos
Message 1 of 5
(3,804 Views)

The easiest way to get the syntax correct is to use the Import/Export Tool.

 

I would do this for you from your sequencefile but do not have access to TestStand (at the right version) right now. 

 

But it is and easy process.

 

Regards

Ray

Regards
Ray Farmer
0 Kudos
Message 2 of 5
(3,789 Views)

Dont you have to define the HBound?

 

regards

Ray Farmer

Regards
Ray Farmer
0 Kudos
Message 3 of 5
(3,785 Views)

Yes, it looks like a syntax problem.

 

To test the problem I created a new type in the sequence. I set the defaults values. Then I created a FileGlobals variable (QQQ). Then I exported data using Import/Export function to receive syntax.So, it seems to be not easy thing as Ray said. At least no easy to read.

 

I'm wondering is there more easy to read syntax to load properties?

Download All
0 Kudos
Message 4 of 5
(3,776 Views)
I've found similar posts here and here. However I couldn't implemen the 'dot' syntax which I'd like to have.

 

Is that syntax correct?

 

QQQ[0].A1        5

QQQ[0].A2[0]   6

QQQ[0].A2[1]   7

QQQ[1].A1        5

QQQ[1].A2[0]   6

QQQ[1].A2[1]   3

QQQ[1].A2[2]   7 

 

0 Kudos
Message 5 of 5
(3,772 Views)