Hi,
I met very strange behaviour in LV8.2. I believe it is bug... but, maybe something is wrong on my PC or LV installation (Win2K, LV8.2 + DSC + RealTime). Attached zip file contains example VIs.
Run "Test Data Container 1.vi" with different value of "Value selector" control and pay attention to execution time ("Time elapsed" indicator). On my PC, I observe HUGE difference (ten times)! Looking at the code you can see that difference is only a value passed to "Data Container 1.vi" subVI (LV2-style global), the value is used as index of array element there.
I have no idea why time of access array element depends on element index, except a guess it may be a result of wrong compilation. Pay attention that "Data Container 1.vi" uses the same control for passing array size and element index in different modes. The attached file also contains 2 another VIs ("Test Data Container 2.vi" and "Data Container 2.vi") that use separate controls for array size and element index. These VIs work properly, i.e. time of access data element does not depend on element index.
Could anyone confirm and/or explain this?
Kind Regards