Hi,
I think you're looking for some sort of parallel loop architecture, where one loop would be doing the talking to the oscilloscope, and one would be doing the anaylysis, with the data passed through some sort of queue, or handshaking.
The tricky part is that if your processing is taking longer than your re-acquisition time, then you're building up a permanent backlog of data. This obviously cannot go on forever, so you would have to make a decission to either stop acquiring, or dump some of the data to play catchup. (Another possibility would be to analyse a larger chunk of data in one go, but that might not be appropriate)
A second is quite a long time when it comes to code execution.
Have a look here for information on optomising your code.
http://z
one.ni.com/devzone/learningcenter.nsf/webmain/5E017F18A8D3FCEA86256EE80056C707?opendocument&node=200064_us
http://zone.ni.com/devzone/learningcenter.nsf/03f7c60f17aad210862567a90054a26c/d4708bc2f1e4100586256c2c00505344?OpenDocument&node=200064_us
Hope that helps
Sacha Emery
National Instruments (UK)
// it takes almost no time to rate an answer