NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

How can I get RTE information in operator interface (LV) from TS API?

Solved!
Go to solution

Hi!

 

I have operator interface in Labview and use TS API to run tests.

I would like to eliminate RTE dialog and to show error messages directly in front panel control.

 

I have created callback for TS Application Manager BreakOnRTE event.

It works good and I can lock dialog apearance.

But if I try to get ErrorObject from event parameter (execution) is is empty (has no error information).

But this parameter is real execution which contains step with RTE.

 

When I allow the dialog appearance in this callback, it contains RTE information.

 

Where can I get error information from this callback or get it any another way?

 

Thanks in advance for any assistance.

0 Kudos
Message 1 of 2
(2,915 Views)
Solution
Accepted by topic author anpis

I have found the way to get RTE from callback BreakOnRunTimeError of ApplicationMgr.

 

This way is:

 Execution->GetThread[0]->GetSequenceContext[0]->GetRuntimeErrorMessageEx().

 

It was not clear for me: all Error fields in step and Sequence are not filled yet on callback time.

Only the context method can return error message.

 

The question is closed.

0 Kudos
Message 2 of 2
(2,894 Views)