Excellent discussion. I am eagerly waiting to try out LV2 globals.
I have some questions,which follow:
1) When does LV flush the copies of the globals and local variable it has made? Is it when the vi is closed? If yes, then let us assume my control was in a subvi and I created many copies due to a lot of local variable usage within that subvi. Now, when I close this subvi, do my copies get flushed?
2) Can I force flush copies of globals?
3) When I close my LV2 global subvi, what happens to the shift register containing my array? Will the data not get lost on closing the subvi? How about when I close all calling VIs?
4) Now, if I am inserting 5000 rows one at a time, will my LV2 global subvi get called 5000 times? Will that not affect the speed?
5) If I call my LV2 global vi a few times and on some occassions, i have reinitialised the array, will my previous arrays be lost?
6) When does the LV2 global first create the memory allocation for the array? At compile time or when it is first called?
Rgds and thanks,
Gurdas
Gurdas Sandhu, Ph.D.
ORISE Research Fellow at US EPA