In your while loop, you are performing two functions with your DAQ card (device #1): a buffered acquisition, and a non-buffered acquisition. You can't perform both of these at the same time. I suspect that you're setting up the buffered acquisition, then one of your non-buffered acquisitions runs, which sets up the card again. This will interrupt your buffered acquisition, giving you this error.
You will either have to make your single point (non-buffered) acquisitions part of your buffered acquisition, and just look at a single point in the buffer to get your values, or you'll have to put your DAQ VI's in a sequence such that you don't perform both at the same time.
Mark