05-07-2019 10:15 AM
Hi all,
I created a steptype which inherits from mutiple numeric limit teststep of NI.
In a sequence, I Have to call this steptype without output result (code module manages PASS/FAIL test)
But, after code module execution, PostStep "DoMultiNumericMeasEvaluationUsingExpr" is executing and fails because there is no numeric results.
How can I do to skip poststep when there are no output result in a step?
Thanks for your help
05-07-2019 11:41 AM
Do a PropertyExist(“Step.Result.Numeric”)
? Do something if yes
: Don’t do something if no
05-09-2019 02:14 AM
I don't see that in the source code :
measurementAr = stepPropObj->GetPropertyObject(measArrayLookupString, 0);
//Force runtime error if no measurements are defined.
int elements = measurementAr->GetNumElements();
if property “Step.Result.Numeric” doesn't exist, the substep goes into rnutime exception.
05-09-2019 05:34 AM
Where is this code? Is in your code module?
05-09-2019 07:25 AM
this is the source code of "CommonSubsteps.dll" located in "C:\Program Files (x86)\National Instruments\TestStand 2017\Components\StepTypes\CommonSubsteps"
05-09-2019 03:15 PM
Let’s go back to the beginning.
do you expect they to be numeric results in your step type?
05-10-2019 01:49 AM
MyStep type is the same than Multiple Numeric Limit Test steptype.
But sometimes, I don't have any numeric result
05-14-2019 02:15 AM
Are you able to post an example?