Hi!
I have a VI flushing queues and then put all data together and save it to the TDMS file if there is data in the merge WF. In the end (when the program stops putting data into the queue there shoudl be the same number of samples stored to the file. However when wiring my function checking if there is something to save to the first case-structure data is missed in the one named pers3 but when i wire true constant to the structure then the same number of samples is stored. I think that it might be that when putting data into the queues first data is added in pres3-queue so that might be the only available data and the first case structure do not occur if not have wire the true constand in the first iteration. However I can't see what is in the first case-structure that make it impossible to save pres3 data. Below I have attached a image of the VIs.
What Check if data existis do is to take the WF-component y and check if size is greater than 0. So whats happning in the first case-structure that needs to be done in order to save data in the following structures?