Real-Time Measurement and Control

cancel
Showing results for 
Search instead for 
Did you mean: 

Overhead of sub vi's on cRIO

Hi,

 

Simple question that most likely has a complex answer.  On the cRIO system, is there a rule of thumb for the overhead associated with breaking down the code into sub vi's?  I once heard that it is generally better to keep the code flat on the real time in order to keep the overhead associated with sub vi calls down.  This may be a wives tale, since I cannot find any literature to enlighten me.

 

Anyone care to weigh in on the topic?

 

Thanks.

0 Kudos
Message 1 of 2
(5,233 Views)

Maybe a long time ago it might have mattered.  But with modern hardware, even in the Windows environment, the subVI overhead is quite neglible.  If you need something more reliable (less jitter), then you should probably try to move that code into the FPGA.



There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
0 Kudos
Message 2 of 2
(5,228 Views)