NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

sequence call performance

Hello,

 

I have simple sequence that later runs on process model with pre&post step callbacks

When I execute this sequence without pre and post step callbacks it takes 2 sec to execute.

When I add pre and post step callbacks execution grows to 80 sec!

I have removed all code from callbacks but this overhead did not decrease,

is there anything that can be done or I should move this functionality from TS to module calls?

 

Thanks!

0 Kudos
Message 1 of 2
(1,942 Views)

When you are executing 200,000 steps I would expect this kind of overhead.  One thing you can do is move the "step" sequence functionality to a different sequence file so that it won't execute the Pre and Post step code. 

 

You have to understand that TestStand is a scripting language after all.  Because of this there is overhead associated with tracking steps and engine movements, etc...  If efficiency is vital then you should move the functionality into the code module.  There is a true art to where to put your algorithmic code.  Just depends on your needs.

 

Hope this helps,

jigg
CTA, CLA
testeract.com
~Will work for kudos and/or BBQ~
0 Kudos
Message 2 of 2
(1,914 Views)