So this is a bit of a long explanation so bear with me. Attached images for reference.
I am writing a small program for reading TDMS data and displaying on a large graph.
Decided to go with QMH because it's what I know(ish).
I have a path that user defines on the UI to input the path to the tdms file, then I have them press the run button. That fires off a second loop which I have inside of another VI. As seen below the MHL on the main block diagram (TDMSreadermainvi.png).
In that vi I have the open and read tdms. Then this is where the issue begins.
If I run it as shown in the images, the graph does not load until I exit the program.
So I placed a true constant to end the loop once the data was read and displayed, works great as long as you don't want to use that TDMS reader loop again. Which I do with the export function (eventually) or read in another file without having to close the whole program and start over.
So my thought was even if I stopped the tdms reader loop which essentially ends and closes the sub vi, wouldn't hitting the run or export button again restart the sub vi because it's being called inside the MHL?