Well Thank you for sparing the time slot from your schedule.
I have selected teentrant fro both of the VIs you said (Wait for Trigger and Fetch Waveform) but the problem persists.
I attach the schematic as well as the code.
Sorry I attached different version. Here you get the right version of code.