2 g samples per second is gonna be tough, the first thing to check is whether you can get a while loop to spin fast enough to acquire the data before your buffer overflows (just try acquiring, don't worry about graphing or doing anythign else with the data). Whether it will work at all will probably depend on the speed of your computer, the size of the buffer on the board and how long you'll be acquiring the data for (presumably you're acquiring for a pretty limited period of time if you are doing 2g per second). Once you start thinking about displaying the data, don't bother to display it faster than a few times a second, the human eye can't detect faster updates than that, so you'd just be wasting processing time. If you can acquire fast enough, then you should c
onsider using something like a Producer/Consumer architecture. Your producer (one while loop) would just acquire the data and toss it into a queue, your consumer would run at a lower frequency or priority than the producer, and would dequeue the data and graph it.
This tutorial has more info on the producer/consumer architecture:
http://zone.ni.com/devzone/conceptd.nsf/webmain/C54BADADD8BBDE4286256C5200533B80?opendocument
Regards,
Ryan K.