03-09-2011 12:33 AM
Hi all,
I'm relatively new with DAQmx. I'm getting the following error:
Possible reason(s):
Attempted to read samples that are no longer available. The requested sample was previously available, but has since been overwritten.
Increasing the buffer size, reading the data more frequently, or specifying a fixed number of samples to read instead of reading all available samples might correct the problem.
Property: RelativeToCorresponding Value: Current Read PositionProperty: OffsetCorresponding Value: 0
Task Name: _unnamedTask<45>
I've read many posts about this, and most of them recommend modifying the N samples and/or rate. However, I've tried different combination with no success. The code is attached, I'm measuring temperature, flow, and pressure and at the same time logging the data into a spreadsheet.
I would like to log data for cycles of 10 to 20 minutes at a time but I'm getting the error after just (approx.) 13 seconds. All my tasks are set as: Samples Read 100, Rate 1k Hz.
Also, I'm working on adding a PID control for the pressure to this code. I have a transducer constantly measuring pressure and would be controlling a relief.. valve via DAQ analog output. I'm hoping to modulate the relief valve analog output in order to maintain a pressure setpoint thru the PID. I already designed the PID vi but I'm not sure how to implement it via DAQ. Any suggestions?
All help will be greatly appreciated. Thank you!
03-09-2011 04:27 PM
Hi Nones,
It looks like you may be running into error -200279 --is that correct?
Remember, when you're searching error codes on ni.com, you should enter them without the minus sign. That is, search for -200279 as
"200279"
NOT
"-200279"
From the description, I think this KnowledgeBase is what you're looking for. Try running through that information and see if it helps!
Regards,
Andrew