NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

How to determine test sequence termination in plugin

Hi,

I have a custom report processing plugin, which generates test reports. Currently it generates reports file even if user terminates test. I want to skip report generation in "Model Plugin - UUT Done" if main test sequence is terminating. I tried to use GetStates method but it seems that I am using it with improper reference, becouse it always returns "normal" state.

Any idea how to check if test is terminated from model plugin?

Michał Bieńkowski
CLA, CTA, CPI

  1. Did someone devote their time to help solve your problem? Appreciate it and give kudos.
  2. Problem solved? Accept as a solution so that others can find it faster in the future.
  3. Contribute to the development of TestStand by voting on the TestStand Idea Exchange.
0 Kudos
Message 1 of 4
(2,982 Views)

OK I figured out that plugin has parameter called UUTStatus which I can use. But still it would be nice to know how to get reference for the main test sequence 🙂

Michał Bieńkowski
CLA, CTA, CPI

  1. Did someone devote their time to help solve your problem? Appreciate it and give kudos.
  2. Problem solved? Accept as a solution so that others can find it faster in the future.
  3. Contribute to the development of TestStand by voting on the TestStand Idea Exchange.
0 Kudos
Message 2 of 4
(2,976 Views)

I'm not sure, whether you can get directly reference to Main Sequence, but I beleive, that all needed parameters you can anyway get via test report plugin Parameters of Model Plugin - UUT Done callback. Just put there breakpoint, and check during run-time what parameters you can get...

By the way, what information you need for your plugin, from executed test sequence?

 

logos_middle.jpg

0 Kudos
Message 3 of 4
(2,948 Views)

I needed information on whether the test was terminated or not. 

In this particular case, you were right (kind of) - I could get this information from socket status.

Michał Bieńkowski
CLA, CTA, CPI

  1. Did someone devote their time to help solve your problem? Appreciate it and give kudos.
  2. Problem solved? Accept as a solution so that others can find it faster in the future.
  3. Contribute to the development of TestStand by voting on the TestStand Idea Exchange.
0 Kudos
Message 4 of 4
(2,930 Views)