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:
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:
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?