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
Do a PropertyExist(“Step.Result.Numeric”)
? Do something if yes
: Don’t do something if no
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.
Where is this code? Is in your code module?
this is the source code of "CommonSubsteps.dll" located in "C:\Program Files (x86)\National Instruments\TestStand 2017\Components\StepTypes\CommonSubsteps"
Let’s go back to the beginning.
do you expect they to be numeric results in your step type?
MyStep type is the same than Multiple Numeric Limit Test steptype.
But sometimes, I don't have any numeric result
Are you able to post an example?