Solution
This is happening because you are most likely writing data to your queue at a faster rate than you are reading. After an amount of time, the queue fills up and you run out of memory to perform the operation, stopping your program. You won't get an indication of this because the program is running on a Real-Time target (running this on Windows would return the popup below):
To get past this memory error, make sure you are writing data to your queue either at the same speed or slower than the rate at which you are dequeueing elements. You can accomplish this by implementing LabVIEW's native
wait functions.