NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

Loading limits for a dynamic step name using property loader

Solved!
Go to solution

Hi,

 

I am having a step whose name gets upadted in a for loop based on the loop index using the API "Step.Name". For this step i am trying to load the limits using the property loader step. Some reason for the first iteration the loop is working but for the next iteration it is failing to load the property limits.

 

Can Any one help me in this?

 

Regards,

Ramjee

0 Kudos
Message 1 of 12
(5,193 Views)

Hi,

 

The problem will probably be that you haven't defined the new names in limit file. I am guessing that you require different limits for each iteration.

 

You will need to define in the limit file different Start/End markers for each iteration eg

 

START 1

 

Step 1

 

END 1

 

START 2

 

Step 2

 

END 2

 

.....

 

START n

 

Step n

 

END n

 

Can you post a small example of what you are trying to do.

 

Regards

Ray Farmer

Regards
Ray Farmer
0 Kudos
Message 2 of 12
(5,187 Views)

Hi Ray Farmer,

 

Here with i am attaching a sample code what i am working on.

 

I am trying to get the properties to the step "Scanning Test Point-1" whose name is getting changed dynamically after that step execution.

 

Pl let me know the different values for this step after each iteration.

 

Regards,

Ramjee

Download All
0 Kudos
Message 3 of 12
(5,163 Views)

Hi Ramjee,

 

I haven't had a chance to look at your seq file, but looking at your limit file you would need to structure it differently

 

Start-1
<Step Name> Limits.Low Limits.High Result.Units
Scanning Test Point-1 500.00 500.25 "volt"
End-1

 

Start-2
<Step Name> Limits.Low Limits.High Result.Units
Scanning Test Point-2 500.01 500.025 "volt"
End-2

.....

Start-n
<Step Name> Limits.Low Limits.High Result.Units
Scanning Test Point-n 500.01 500.025 "volt"
End-n

where n is your index value.

 

hope this is clear

 

regards

Ray Farmer

Regards
Ray Farmer
0 Kudos
Message 4 of 12
(5,155 Views)

Could you repost the sequence file in an earlier version of TestStand, say TestStand 4.0 or 4.11? 

 

I am quite curious on your method of changing the step name dynamically and reading in the limits.  Normally I structure the test quite differently to accommodate reading limits for tests in a loop.

 

I think your limits file will work as you posted.

 

Thanks,

 

Paul Holzrichter

0 Kudos
Message 5 of 12
(5,148 Views)

Hi,

 

I don't have the TestStand version below 4.2.1

 

regards,

Ramjee

0 Kudos
Message 6 of 12
(5,137 Views)

Hi,

 

In this case what shall i give start and end markers in PropertyLoader step configuration?

 

regards,

Ramjee V

0 Kudos
Message 7 of 12
(5,132 Views)

sorry I didn't get a chance to look at your example last night, so I'll do it later to day.

 

You can you a Local ie Locals.StartMarker = ".....-1", Locals.EndMarker = "...-1". If you have a loop then use the loop index to provide the 1,2,3,5.....

 

 

If you try to use your posted limit file the way it is, I believe the PropertyLoader will error because it can not find some of the Step Name to load the limits because the step names don't exist until you change the name of your step.  

 

Regards

Ray Farmer

Regards
Ray Farmer
0 Kudos
Message 8 of 12
(5,126 Views)

Hi,

 

You are correct. I am getting errors as you mentioned.

 

I tried putting Locals.StartMarker in "Start of Data Marker". But i am getting errors.

 

Pl let me know how shall i start the propertyloader file and the step properties for "Start of Data Marker" also for the end of the Markers also.

 

Regards,

Ramjee

 

 

0 Kudos
Message 9 of 12
(5,124 Views)
Solution
Accepted by topic author ramjeev

try the following example

 

<TestStand Public>\Examples\PropertyLoader\LoadingLimits\LimitsFromTextFile\LimitsFromTextFile.seq

 

It's not exactually your requirement, but it should help you with the Start Marker/End Marker. (I hope)

 

 

Regards

Ray Farmer

Regards
Ray Farmer
0 Kudos
Message 10 of 12
(5,114 Views)