NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

Stepping into DLL code from TestStand

Hi,

Is there any way to find out if a function in a DLL has been activated by the "Step Into" command of TestStand? (I am using the DLL flexible prototype adapter). I want my DLL function to behave in a different manner if you step into it than stepping over. In the first case, it should output some debug data in a special window. This has nothing to do with debugging the DLL in CVI, I know how to do that and it works fine. My question is: Is there any way to ask TestStand via the SequenceContext how it was called (Run, Step Over, Step Into etc....)?

Thanks

Mike
0 Kudos
Message 1 of 5
(3,340 Views)
Hi Mike,

You can obtain the run mode of a step from its hidden properties eg Step.TS.Mode

Under the Menu | Configure | Station Options - select Preferences Tab. You can enable the show hidden properties.

Regards
Ray Farmer
Regards
Ray Farmer
0 Kudos
Message 2 of 5
(3,340 Views)
Hi Ray,

the Step.TS.Mode property tells me only if the step is executed normal, is skipped or forced to pass/fail. The information about stepping over or into cannot be retrieved from this property. I also tried to use the Execution Run States (Paused, Running, Stopped), but it always says "Running". Hm.... any other idea?

Mike
0 Kudos
Message 3 of 5
(3,340 Views)
Hi Mike,

Unfortunately there is no way to extract this information. I will definitely make a note of this and notify the developers of the issue, so that we may implement it in future versions of TestStand. Sorry for any inconvenience.
0 Kudos
Message 4 of 5
(3,340 Views)
Did you find a solution to determine how a step was called ?
I want to write a custom step type with special behaviour when called with Step Into.
0 Kudos
Message 5 of 5
(3,340 Views)