NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

Custom Unattended Process Model Based Upon Duration of Test

I am looking to develop a test system that:

  • Runs the Batch Process Model
  • Displays a Custom UUT Serial Number dialog once upon start
    • This dialog will also display the desired test duration and various instrument settings
  • Loops on the MainSequence for a fixed amount of time OR Loops on the main sequence for a fixed number of iterations
    • This should be implemented in the process model
  • Does not display any pop-up dialogs during testing
  • The goal is for the test to run "unattended"

 

I started with a copy of the Test UUTs process model, but wanted to get some advice on how others would design this system.

 

A few questions:

  • What is the best method for implementing the looping on the MainSequence for a fixed amount of time in the process model?
  • What is the best method for avoiding pop-up dialogs from occurring during the test?

 

Thanks!

 

CLA, CTA
0 Kudos
Message 1 of 2
(2,783 Views)

Put the call to MainSequence inside of a While loop. Use Seconds() to get current time, store in variable and then measure difference between subsequent calls to Seconds() and that variable to determine if your timeout has been met. You can also increment a counter in this loop as well.

 

Use custom PreUUT, PostUUT, ProcessModelPostStepRunTimeError and ProcessModelPostStepFailure callbacks. All TestStand-based popups occur in those four areas. There are examples of handling run time errors and failures in the TestStand example folder.

 

CTA, CLA, MTFBWY
0 Kudos
Message 2 of 2
(2,777 Views)