NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

Time execution of a number of steps in a test sequence

Solved!
Go to solution

Hi,

I am wondering what is the best way to time the execution of a number of steps in my test sequence, so I can report it to a database.

Basically this time will be the boot time of the UUT and may differ from part to part so I want to capture it.

Thanks & Regards,

Don1.

0 Kudos
Message 1 of 3
(3,212 Views)
Solution
Accepted by topic author ShaneDonn

Hi Don1,

 

A very simple way to do it would be to use an expression before and after to capture the time and compare the difference, eg.

 

locals.startTime = Seconds()

 ...

steps

...

locals.bootTime = Seconds() - locals.startTime

Charlie Rodway | Principal Software Engineer | Certified TestStand Architect (CTA)

Computer Controlled Solutions Ltd | NI Silver Alliance Partner | GDevCon#1 Sponsor

Message 2 of 3
(3,199 Views)

Hi Charlie,

Works like a charm.

Many thanks,

Regards,

Don1.

0 Kudos
Message 3 of 3
(3,195 Views)