Hello
When you add a UI to an application, CVI's run-time has to be able to
detect and process any messages the UI might be recieving ( user
clicks, paint messages etc..) So basically, if you are trying to do
everything in one thread ( device aquisition, UI processing), i
would'nt be surprised at any overflows happeneing.
A couple of things you could do.
Replaced your call to RunUserInterface() with a while loop with some
delays and ProcessSystemEvents(). This way, you can slow down how
often the UI messages are being processed.
Another thing you could do is split up the task between multiple
threads. Have the data aqusition occur in a thread seperate from UI
thread. CVI has numerous multithreading functions. Use the thread pool
functions to make the task simpler. T
his way, none of the UI
processing would interfere with your aquisition task.
I hope this helps
Bilal Durrani
NI