NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

How to get test result by each step

I want to use c++ builder just use TS Engine to build a UI interface.

I create a sequence file and use call backs(SequenceFilePostResultListEntry) to call PostUIMessageEx method(Set activeXDataPara is Parameters.Result).

The question is how to get step result by UI side, like numeric test value, test staut("Done"/Pass"/"Fail") etc.

if (!Engine1->IsUIMessageQueueEmpty)
 {
  UIMsg = Engine1->GetUIMessage();
  vMesCode = UIMsg->Event; 

  if(vMesCode == 10001)
  {
    sStringData = UIMsg->StringData; //return step name
    dNumericData = UIMsg->NumericData; //return 0
    //how to  analytic ActiveXData? type is IUnknow.


    }
  UIMsg->Acknowledge();
 }

 

Many thank

 

0 Kudos
Message 1 of 2
(3,457 Views)

Update stauts, I found some solution to get ActiveXData and analytic parameters.result.

PropertyObject ProObj = MyContext.AsPropertyObject();

PropertyObject ProObjResult = ProObj.GetPropertyObject("Parameters.Result",0);

 

The next question is how to get result by engine OnUIMessageEvent? Current is use timer loop.

Any ideas?

 

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