From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.
We appreciate your patience as we improve our online experience.
From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.
We appreciate your patience as we improve our online experience.
09-15-2015 01:05 PM
I am writing a labview program to access teststand sequences' various properties to automatically grab the data out of the sequnce for documentation.
The step.limits.high property is very difficult to retrieve from the teststand sequence programmatically using just the sequence file as the input.
Does anybody know how to obtain the limits on a step from a sequence file?
Solved! Go to Solution.
09-15-2015 04:54 PM
Not all steps have that property. Are you seeing it error out?
You could do one of 2 things:
1- Check if the property exists first and then get it. use the Exists method of the Property Object class.
2- Check which StepType you are dealing with and then only get that property when it is a NumericLimitType. Step.StepType.Name will return the step type.
Regards,
09-16-2015 08:58 AM
Thanks Sir but I am still having problems. When I created a dummy sequence which has only a numeric limit test in it with limits and units populated in the step, I always get the "Exists" method returning a false.
I suspect that it may be my lookup string (Step.Limits.High). Any help on that may be my next benefit from you. See attached.
09-16-2015 09:46 AM
Only use the StepType stuff if you are trying to look at different step types. If you only care about the Numeric then look at what I've done below.
Hope this helps,
09-16-2015 10:24 AM
That works !
Now one more question - how do I get the Step.Description field...I do not see anything that looks like that lookup string. "Step.Description" does not work...
09-16-2015 11:01 AM
Check out attachment.
09-16-2015 12:31 PM
Thank You overy much....they both worked.
Now I am stuck again with the Step.Limits.Units...any help is appreciated and I promise I will close this after this one..this stuff isnt very intuitive
09-17-2015 09:40 AM
I got busy. Just saw this.
Units is stored in the Results container so you need to do Results.Units.
Attached is a screenshot of how you can find the lookup strings.
Regards,
09-17-2015 01:00 PM
Thanks alot sir. I will take it from here.