LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Moving mouse speed up DAQmx

Hi!
Thanks for your answer. I will look at it as some of the logic is unknown to me. 

Regarding the folder Acquire. I do not use these VI 😬. I usually just go through my main VI and from there I open the sub VI. 

 

All the acquisition stuff up to date is from the Acquisition Message Loop sub_VI. COP calculations are done in another parallel loop. The main acquisition loop simply collects 30 data per channel, then pushes it in a queue to be analyzed in the parallel loop. Hope it is more clear! 

 

I guess I should remove useless/old files in the projects. 

 

Thanks again !

0 Kudos
Message 11 of 12
(56 Views)

I don't have time to look into your project specifically, but perhaps I can throw out a guess?

 

Moving the mouse around might direct Windows to give more time to your program. Do you have a bunch of things getting updated on your display? Updating the screen 75 times a second is expensive. Do you have anything doing mouse processing? Are you using a bunch of property nodes? Anything with property nodes or UI stuff runs in one thread. If Windows decides to not give your code priority, maybe moving the mouse on the window lets it know "hey this is important, you need to give thread priority to this screen."

 

Also, you could try upping the execution priority of your display VI.

Message 12 of 12
(48 Views)