Hi Planar,
You have been trying hard!
I am not sure the following will help, but I would like you to try it out.
I have restructured your code to help reduce the work that is done while data is acquired.
1) I "pre-compute" the pictures at app start-up. This way only the pictures need updated and the pictures are rendered repeatedly.
2) I moved your config up front so it does not run while the flickering is going on.
3) I add a check of the backlog from the DAQ that looks at the number of scans waiting in the buffer WITHOUT reading the data. Only when the requested # of scan are ready is the data read.
4) While waiting for the buffer to fill, the daq loop will execute a wait, thereby freeing CPU for the flicker tasks.
Your code, w
ith my changes is attached (in LV 7.0).
A jpg is included for non-LV-7.0 readers.
Yes, the code is sloppy! I am woring fast and for free!
No, I do not have DAQ hardware to test so it may NOT work right out of the box.
I hope this helps,
Ben