cancel
Showing results for 
Search instead for 
Did you mean: 

Multiple Numeric Limit Test Step without result

maxmont
Member

Multiple Numeric Limit Test Step without result

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

7 REPLIES 7
RayFarmer
Trusted Enthusiast

Re: Multiple Numeric Limit Test Step without result

Do a PropertyExist(“Step.Result.Numeric”)

? Do something if yes

: Don’t do something if no

 

 

 

Regards
Ray Farmer
maxmont
Member

Re: Multiple Numeric Limit Test Step without result

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.

 

Highlighted
RayFarmer
Trusted Enthusiast

Re: Multiple Numeric Limit Test Step without result

Where is this code? Is in your code module?

Regards
Ray Farmer
maxmont
Member

Re: Multiple Numeric Limit Test Step without result

this is the source code of "CommonSubsteps.dll" located in "C:\Program Files (x86)\National Instruments\TestStand 2017\Components\StepTypes\CommonSubsteps"

RayFarmer
Trusted Enthusiast

Re: Multiple Numeric Limit Test Step without result

Let’s go back to the beginning.

 

do you expect they to be numeric results in your step type?

 

 

Regards
Ray Farmer
maxmont
Member

Re: Multiple Numeric Limit Test Step without result

MyStep type is the same than Multiple Numeric Limit Test steptype.

But sometimes, I don't have any numeric result

RayFarmer
Trusted Enthusiast

Re: Multiple Numeric Limit Test Step without result

Are you able to post an example?

Regards
Ray Farmer