12-03-2007 07:06 AM
12-04-2007 11:50 AM
Hello Ofer,
This is a good question. I want to first point out that the standard HTML report records the amount of time each test takes to complete when reporting is enabled in the standard process models (Sequential, Batch, and Parallel). If you are looking for extended functionality, I would recommend creating a step at the beginning of your sequences that records the start time and a step at the end of your sequences that records the stop time. You could store these two times in local variables and then take their difference. You could then add this time to a cumulative time variable that you store in StationGlobals or a file.
To get the time within TestStand, you can call Time() and Date(). For a great example of how to use these function, refer to the “Get Start Time” step in the “Test UUTs” sequence in the SequentialModel.seq process model. Also the expression browser dialog box gives a detailed description of how to use these function. You can find the Time() function in the express browser dialog box under the Operators/Function Tab » Functions » Time
12-04-2007 01:42 PM