07-05-2010 12:02 PM
Hey all -
We're using a Producer-Consumer architecture to read strain data from two load cells using a NI 9237 and then write the strain data to a file when a simulated square wave goes above a certain threshold value (this is supposed to simulate a digital trigger). I keep receiving error code -200257 when I run the program; I have tried researching this error code online and in the forums, and have tried increasing the buffer size manually by adding in the Configure Input Buffer.vi. I've also tried increasing and decreasing the sampling rate, and increasing and decreasing the number of samples read per channel. However, if the program is allowed to run for a minute or two, it eventually stops and gives the -200257 error code.
I have attached my program below. Any further suggestions as to what I could try next would be greatly appreciated!
Thanks!
Rachel
Solved! Go to Solution.
07-05-2010 12:18 PM
Why do you have a Write to Measurement File in both loops? That could cause an error related to the buffer but that code does not refer to buffer size.
07-05-2010 12:43 PM
The Write to Measurement Files are not really necessary; we had added them in a while ago to verify if the program was working the way we wanted it to, and only saving select data. They can be removed. The only important file that needs to be written is the one using the Write to Spreadsheet File.vi.