NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

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

0 Kudos
Message 1 of 8
(2,754 Views)

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

? Do something if yes

: Don’t do something if no

 

 

 

Regards
Ray Farmer
Message 2 of 8
(2,736 Views)

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.

 

0 Kudos
Message 3 of 8
(2,720 Views)

Where is this code? Is in your code module?

Regards
Ray Farmer
0 Kudos
Message 4 of 8
(2,716 Views)

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

0 Kudos
Message 5 of 8
(2,712 Views)

Let’s go back to the beginning.

 

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

 

 

Regards
Ray Farmer
0 Kudos
Message 6 of 8
(2,706 Views)

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

But sometimes, I don't have any numeric result

0 Kudos
Message 7 of 8
(2,699 Views)

Are you able to post an example?

Regards
Ray Farmer
0 Kudos
Message 8 of 8
(2,681 Views)