ni / semi-test-library-dotnet

Semiconductor Test Library
https://ni.github.io/semi-test-library-dotnet/
MIT License
3 stars 3 forks source link

Optimize DCPower On-Demand Measure #63

Closed lornazh closed 4 months ago

lornazh commented 5 months ago

What does this Pull Request accomplish?

Detect and measure all DCPower channels that are configured to measure OnDemand with a single Measure driver call to reduce test time. We will rely on driver to decide how to deal with multiple channels across instruments and models.

Keep the logic untouched for OnMeasureTrigger and AutomaticallyAfterSourceComplete cases since for these cases, Fetch can only happen on single channel.

Why should this Pull Request be merged?

The change improves performance.

What testing has been done?

  1. Auto tests added to make sure all channels are handled.
  2. Manually tested with @Mattjet27 's benchmark program to make sure test time is on-par with low level implementation and customer implementation.