NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

Retrieve Path from Custom Step

Hello,

 

I'm working on an Error Handling Sequence. I'm trying to get the path from the Custom Step that fails, for example: C:\Myproject\Modules\TS\CustomSteps\MyCustomStep

 

So far, I can retrieve the path from the sequence file that calls the custom step (StationGlobals.Path =RunState.Caller.RunState.SequenceFile.Path) but I'm unable to get the path from the custom step itself.

 

Is there anyway to implement this?

 

Thank you.

 

 

 

0 Kudos
Message 1 of 2
(1,132 Views)

Steps do not have paths.  Their path is the path of the sequence file within which they are instantiated.

 

Are you talking about where the custom step type is defined?  Whenever you place a custom step type instance into a sequence file the type is copied to that sequence file.  So the sequence file path and the custom step type definition will be the same thing.

 

Maybe you could clarify a little what you are looking for specifically.... or rather what your goal is?

 

Cheers,

jigg
CTA, CLA
testeract.com
~Will work for kudos and/or BBQ~
0 Kudos
Message 2 of 2
(1,066 Views)