A Note about DAQ Assistant and 200279 Error in LabVIEW

By Ralph - Last updated: Friday, July 17, 2009 - Save & Share - Leave a Comment

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:

DAQ Assistant and write file

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.

Related posts:

  1. A Better Way to Access Variables in Complex Programs in LabVIEW In some LabVIEW programs, we need to access the value...
  2. How to Run Several Instances of a VI at the Same Time in LabVIEW Sometimes, it needs to run several instances of a VI...
  3. How to Ignore CR LF ASCII Codes in Serial Receive with LabVIEW In one of my recent LabVIEW projects, my application needs...
  4. How to Change Combo Box at Run Time in LabVIEW It will be very useful if we can change the...
  5. How to Run a .msi file in a LabVIEW Application Installation There is no support of the running of .msi files...

Posted in DAQ, LabVIEW, VI Software • Tags: , , , , Top Of Page

Write a comment