AnsweredAssumed Answered

Reference Switches outside of loop

Question asked by ElwynnMartin on Apr 5, 2016
Latest reply on Apr 15, 2016 by pier-olivier.tremblay

I'm trying to figure out how I can declare a switch outside a loop and reference it once each iteration of the loop without the overhead of having to re-instantiate it every iteration. Is there some way to declare it like a 'Process._ _ _ _' variable(global variable) so I can create it once and reference it for the life of the process without having to recreate it every time?

I have two switches both of which are quite large and consume a lot of CPU to create and process every iteration of the loop.

 

Is there something else that I could use instead of switches that wouldn't consume as many system resources?

 

Thanks for any ideas or help!

Outcomes