12-27-2022 02:50 PM
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 😁
12-28-2022 09:54 AM
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.
01-10-2023 02:36 PM
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.
03-12-2023 08:31 AM
----------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
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)