From 04:00 PM CDT – 08:00 PM CDT (09:00 PM UTC – 01:00 AM UTC) Tuesday, April 16, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

What is the purpose of "loop callbacks" in the sequential model single-pass entry point?

Solved!
Go to solution

Why Single Pass entry point in SequentialModel.seq includes PreUUTLoop Callback and PostUUTLoop Callback? This entry point does not have a loop for sockets, so what is the point?

Michał Bieńkowski
CLA, CTA

Someone devote his time to help solve your problem? Appreciate it and give kudos. Problem solved? Accept as a solution so that others can find it faster in the future.
Make a contribution to the development of TestStand - vote on TestStand Idea Exchange.
0 Kudos
Message 1 of 3
(2,120 Views)
Solution
Accepted by topic author bienieck

I haven't been at NI long enough to know the exact historical reason, but my guess is just for parity with the Test UUTs entry point. Here's an example of where that might be useful:

  • I have some big LED/Indicator on my test station that i want to turn on whenever someone is running tests to express "somebody is using this test station"
    • I turn it on in PreUUT Loop and off in PostUUT Loop so it's not off periodically between each UUT.
  • I have some small LED/Indicator on the test fixture to let the operator know "this is the actual UUT that's being tested right now"
    • turn it on in PreUUT and off in PostUUT

Overriding both callbacks in a client file lets you get the same LED behavior with both entry points, without having to the modify the client file. My example probably isn't the best - i suppose ProcessSetup and Cleanup would work just as well for the big LED, but there are some other reasons those callbacks exist...

 

Hope that helps!

Trent

https://www.linkedin.com/in/trentweaver
0 Kudos
Message 2 of 3
(2,099 Views)

You might be right. I was analyzing a single pass entry point without thinking that it is a part of the process model that has two possible entry points. But now it makes sense.

Thanks.

Michał Bieńkowski
CLA, CTA

Someone devote his time to help solve your problem? Appreciate it and give kudos. Problem solved? Accept as a solution so that others can find it faster in the future.
Make a contribution to the development of TestStand - vote on TestStand Idea Exchange.
0 Kudos
Message 3 of 3
(2,092 Views)