NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

about dynamic test case name and test limit load

Hi,

I have a problem in TS.

What I except is test limit auto load by 'property loader'. A loop generate test case and also the test case name.

Of cause my test case name which auto generated match the name name in limit file.

But the problem is it looks like when property loader try to load limit file, it will also check following test case name to see if match. 

Of cuase when property loader run, the loop does not run yet so test cases name are not created so error happen.

I'm not sure what I'm feeling is the truth but I want realize this feature. Is it possible?

fist pic shows the seq and Pre-expression for auto generate case name.

second pic shows the piece of limite file.

 

Thanks!

Nemo

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

Sorry, I had some typo.

First of all I should say 'What I expect is...' but not 'What I except'

0 Kudos
Message 2 of 5
(3,188 Views)

Hi Nemo,

 

Can you post the structure of the ADC container?

 

(I'm assuming Locals.arrADC is an array of containers?)

 

Thanks,

Charlie Rodway | Principal Software Engineer | Certified TestStand Architect (CTA)

Computer Controlled Solutions Ltd | NI Silver Alliance Partner | GDevCon#1 Sponsor

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

Hi Charlie,

the arrADC is just an array of numbers.

I found it is hard to load by the property loader. So I use labview to load the file, then output to an array to TS.

That has worked for me.

Thanks,

Nemo

0 Kudos
Message 4 of 5
(3,154 Views)

Use the property loader to load your limits into an array.

Then in your ADC step you can use the pre-expession to setup the limits of the step from your array using the FOR index to index the values out of the array

ie Step.Limits.Low = Locals.ADCLimits[Locals.index][0]

 

regards

Ray

Message 5 of 5
(3,143 Views)