A Note about DAQ Assistant and 200279 Error in LabVIEW
Just a few days ago, I created a simple LabVIEW program which read about 32 channels at 2KHz and display the data and write the data into file. The program is quite simple, so I used DAQ Assistant and Measurement File Express VI to read and write the data in one loop as the following graph shows:
But when I run this LabVIEW program, there is always a 200279 error. I studied this error and found out that because I am trying to write file in the same loop which I am acquiring data, and the write to measurement file Express VI takes a lot time to open the file, write to it and then close it. Because of it, there comes the 200279 error.
The solution is either using basic file I/O functions to open the data file before the loop and close the file after the loop and write file in the loop or using a producer/consumer architecture to move the write file VI into another loop and transport data through queue between these loops.
At last, I created another loop and moved the write file VI into it. And after I changed the LabVIEW program’s architecture, there is no more 200279 error. It’s better not put other VIs in the DAQ loop.
No related posts.