NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

TestStand API - Access to the result list

Hello Community,

I would like to dynamically load and start a sequence via the API. This works also so far. I can also access variables that contain the test result etc.. But I want to access the result list to get the measured values with limits of the tests. The problem is that the Resultlist exists only at runtime, so I can't really access it. Can someone give me a way to access the information? I access the API via ActiveX in Python.

 

Thanks in advance 😁

 

0 Kudos
Message 1 of 4
(1,199 Views)

Can you help us understand exactly what you need to do with the resultlist?  That will determine the best solution.  There are several ways of getting the resultlist but depending on your needs will change which one is the best.

 

Personally I think using UI Messages would be the best, not knowing anything about your situation.  It is the most guaranteed to get exactly what you want as well.

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

Thanks for the answer.

I would like to transfer the measured values with limits, execution time etc. via the API to another software that contains the main GUI. The software is based on Python. Can you give me an example how to handle the UI messages function works?

 

Thanks in advance.

0 Kudos
Message 3 of 4
(1,093 Views)

----------this step for your seq file

You need to create a callback in seq, such as SequenceFilePostStep, and then create a step to send Customized UImessage with

  • UIMsg_UserMessageBase + ?

in the callback, and send the test value, test time and other information you need as StringDataParam or ActiveDataParam.

In this way, when your seq file is run, relevant messages will be sent out.

 

----------this step for your application

The next thing you need to do is to collect these messages sent above and parse them through the event message mechanism or polling method during the execution process.

 

 

I don't know python, so I can't give you an example, but the method mentioned above must be feasible (has been practiced)

 

 

0 Kudos
Message 4 of 4
(917 Views)