Hi All,
I am having a weird problem with a VI I use to view data. I've attached the VI for reference and a few screenshots of it being used with data, but unfortunately I cannot upload the data itself. This means you will not be able to try to replicate the problem, but I have verified it on two separate (and very different) windows machines so I don't think it is related to my PC or particular LV installation. (LV2017.0f2 in both cases).
The VI reads data from N files and plots a bunch of different metrics computed from the data. The front page has 5 tabs as described below:
1) XY Main View: lots of datapoints graphed per file
2) Linearity: lots of datapoints graphed per file
3) Time Domain: lots of datapoints graphed per file
4) Rbr Comp: only 1 datapoint graphed per file
5) Statistics: only 1 datapoint graphed per file
When reading in a small number of files (~10), the front panel is quite responsive when switching between tabs. I have an event structure used to trigger a re-draw of the graphs on the tab being switched to (which has been necessary for the data to display correctly, no big deal).
When reading a large number of files (~100), the front panel is quite laggy when switching among tabs 1-3 (the ones with lots of datapoints per file on their graphs). Fair enough; I am asking a lot of the drawing engine. This doesn't bother me much. Switching among tabs 4-5 is still speedy.
However, the problem that is bugging me greatly is that: if you stop the VI after reading a large number of files, and run it again to view a small number of files, the lagginess that was originally only present for the large number of files remains! Again it is only among tabs 1-3, but still! All of the graph objects are cleared both at the end of running (if stopped by my stop button) and at VI initialization before files are selected.
The only way that I have found to get the front panel to become as responsive as it should be with the small number of files is to close the instance of LabView on the machine completely. I have tried just closing the VI, closing the project completely (leaving only the LV initialization/splash screen), and neither are enough. LV must be completely completely closed.
I have no idea how to approach fixing this problem. Any advice is appreciated.