05-12-2010 01:07 AM
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
Solved! Go to Solution.
05-12-2010 02:54 AM
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
05-13-2010 01:18 AM
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
05-13-2010 07:03 AM
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
05-13-2010 09:51 AM
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
05-13-2010 11:13 PM
Hi,
I don't have the TestStand version below 4.2.1
regards,
Ramjee
05-14-2010 12:16 AM
Hi,
In this case what shall i give start and end markers in PropertyLoader step configuration?
regards,
Ramjee V
05-14-2010 12:41 AM
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
05-14-2010 12:52 AM
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
05-14-2010 12:59 AM
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