|
Post by ptpuser on Jul 7, 2014 14:39:36 GMT
I would like to use PTP sequencer but need to allow the user to enter different parameters for a given test.
I see you can place a test multiple times in a sequence. That is great. However, how would you allow the user to edit and run each occurence of the test with different settings? In your example you have a "Set Environment Temperature" test. How do you allow the user to set the temperature for each step? What if the user wants to add this test step multiple times but set a different temperature each time? One solutions is to anticipate the user need and create a test for each temperature... but not a very practical one.
Thanks in advance.
|
|
|
Post by Thoric on Jul 9, 2014 8:30:29 GMT
Hi ptpuser, In the Test Executive example project, and the Sequence Execution example VI, the Set Environment Temperature test retrieves a parameter from the parent loop called "Temperature". Loops can host arrays of values which automatically index for each iteration of the loop as is executes, therefore you can create an array of values, in this case the desired temperature, and provide that information to tests inside the loop. So in the examples provided, the "Temperature" variable is read from the loop by the "Set Environment Temperature" test each time it is called, such that it is effectively receiving a test parameter that is unique for each iteration of the loop. Loops can store any number of arrays of values, so you can host multiple parameters in a loop. There is an instructional video on our YouTube channel that you might find useful: www.youtube.com/watch?v=imSbm3-v_u0
|
|
|
Post by ptpuser on Jul 9, 2014 13:51:15 GMT
Thanks for the reply. Yes, I discovered the array settings in the right click loop property dialog. Seems like I tried playing with these for temperature test with no luck. Thanks for the video link. That clarified things. I will revisit this.
|
|