Quantcast
Channel: LabVIEW topics
Viewing all articles
Browse latest Browse all 66748

Local Variables and INLINING

$
0
0

LV2013SP1

 

When making a VI that originates a TYPEDEF'ed cluster, I have always used a local variable of that output cluster, and a BUNDLE BY NAME function to insert the various pieces.

 

Like this:

 Pattern 1.PNG

 

Now, when I try to INLINE the VI that does this, I get an error message: "This object is not allowed in a VI on which you enable inlining".

 

I can replace it with a constant easily enough:

Pattern 2.PNG

 

 

My questions are these:

1... Why is the first method illegal?  I suspect something to do with thread-switching into the UI thread, is that it?  Or maybe there really isn't a front panel if it is INLINEd?

 

2... Is the constant pattern better, in terms of memory usage?

 

3... Is the constant pattern better, in terms of speed of execution?

 

4... Should I adopt that pattern anyway, regardless of INLINE or not?


Viewing all articles
Browse latest Browse all 66748

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>