NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

Cannot invoke API member LastStepResult on NULL object reference Step

hi guys,

 

I am using the Step list configurations  as "Execution Times"

 

& the Seq  during execution does not show execution time.

 

the  "Execution Times"  uses following code for modul time

 

(Step.LastStepResult != Nothing && Step.LastStepResult.Exists("TS.ModuleTime", 0)) ? Str(Step.LastStepResult.TS.ModuleTime) : ""

 

 

Step.LastStepResult  evaluates to  "Cannot invoke API member LastStepResult...."

 

 

it used   to function some time back......

 

 

 

0 Kudos
Message 1 of 4
(4,476 Views)

When does this error occur? While tracing? At a breakpoint? Always? only sometimes? Do you have an example which reproduces this problem? Also what version of TestStand are you using?

 

-Doug

0 Kudos
Message 2 of 4
(4,468 Views)

error occurs always

 

teststand 2012 sp1

 

i can send my step config file

 

i think it   depends on this file  as  the  module time cal is a  code in the  config.

 

 

i caqn send my file

0 Kudos
Message 3 of 4
(4,437 Views)

I'm having trouble reproducing the problem. Even in TestStand 2012 sp1, it seems to be working fine for me:

 

forum.png

 

I copied and pasted the expression from your forum post, so I'm not sure what's different. Here's a copy and paste of the expression I'm using:

 

(Step.LastStepResult != Nothing && Step.LastStepResult.Exists("TS.ModuleTime", 0)) ? Str(Step.LastStepResult.TS.ModuleTime) : ""

 

Perhaps you have another expression somewhere for a similar column that is leading to the error?

 

Hope this helps,

-Doug

 

 

0 Kudos
Message 4 of 4
(4,425 Views)