NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

Getting sequence filename and sequence name in process model error handler

We are using the sequential process model and would like to log sequence step error information to a file.  We have an Error Handler callback in SequentialModel.seq and that is where we will write to the error file.  In the Error Handler callback, I can get the error container info for the step where the error occurs and the name of the that step thru the Error Handler Step parameter.  I would also like to record the sequence file and the sequence where the error occurred, but I have not been able to find those in the sequence context.  I know they are available because the TestStand RunTime Error dialog box displays them.  How can I access the name of the sequence file and the name of the sequence where the error occurred?

Thanks,
Hans

0 Kudos
Message 1 of 3
(3,324 Views)

Hey hans,

Use the API.  Since you already have the Step object reference coming in as a parameter you can just use a few ActiveX steps to get the Sequence File and Sequence from which the error was thrown.

Step.Sequence
Sequence.Name (gets the name of the sequence)
Sequence.SequenceFile
SequenceFile.Path (gets the path of the sequence file)

So basically just 4 activex steps.  I hope this helps.

Regards,

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

The 4 ActiveX steps worked perfectly.

Thanks for your help!
Hans
0 Kudos
Message 3 of 3
(3,300 Views)