Hi Tyrone,
As already mentioned, you have a memory leak (of sorts).
AI Sample Channel is not intended to be used in a loop as you have.
If you take a look inside it you will see the VI it calls has a "iteration" input. The iteration input (when used) only configures the channel on the first call (when iteration = 0). In your code this is not wired so new I/O references are created on each iteration! After a while your system will run out of memory and crash (you know this!).
DO NOT just jump in there and wire up the iteration count to the connector pane. This VI is used elsewhere. Start by doing a "Save As" to a special name before you make chganges. Then go back into your code and replace the NI version with the version that you have modified.
Let us know i
f this does not fix the problem.
Ben