Multifunction DAQ

cancel
Showing results for 
Search instead for 
Did you mean: 

Intermittent 200284 error on 9188 Ethernet Compact DAQ Chassis


I am getting this error randomly in a few of my test cells.  I can't help but think that is has more to do with noise or momentary loss in power as it works most of the time using the same code that always works for USB and SCXI chassis.

 

I read 100 S/ch at 1000 S/s/ch at a continuous rate.

 

Here is the stack trace:

 

11:51:30    EndRead - Task 3
NationalInstruments.DAQmx.DaqException: Some or all of the samples requested have not yet been acquired.

To wait for the samples to become available use a longer read timeout or read later in your program. To make the samples available sooner, increase the sample rate. If your task uses a start trigger,  make sure that your start trigger is configured correctly. It is also possible that you configured the task for external timing, and no clock was supplied. If this is the case, supply an external clock.

Property: NationalInstruments.DAQmx.DaqStream.ReadRelativeTo
Corresponding Value: NationalInstruments.DAQmx.ReadRelativeTo.CurrentReadPosition
Property: NationalInstruments.DAQmx.DaqStream.ReadOffset
Corresponding Value: 0

Task Name: Task3

Status Code: -200284
   at NationalInstruments.DAQmx.Internal.AnalogMultiChannelReaderImpl.EndReadMultiSample(IAsyncResult asyncResult)
   at NationalInstruments.DAQmx.AnalogMultiChannelReader.EndReadMultiSample(IAsyncResult asyncResult)
   at DEER_DAQ.modCallbacks.AnalogInCallback(IAsyncResult ar)

 

I also received this message from the other chassis.

 

01:25:41    EndRead - Task 2
NationalInstruments.DAQmx.DaqException: Connection to the network device was lost. This can indicate an unplugged network cable, a failing network component, or a network device that is reserved by another host.

Task Name: Task2

Status Code: -201390
   at NationalInstruments.DAQmx.Internal.AnalogMultiChannelReaderImpl.EndReadMultiSample(IAsyncResult asyncResult)
   at NationalInstruments.DAQmx.AnalogMultiChannelReader.EndReadMultiSample(IAsyncResult asyncResult)
   at DEER_DAQ.modCallbacks.AnalogInCallback(IAsyncResult ar)

Programming Data Acquisition and Control in Measurement Studio and Labwindows/CVI
0 Kudos
Message 1 of 5
(4,582 Views)

Hey SCXI_and_MS_2k3-VB.NET,

 

This error is explained in depth in this knowledge base article here Why Do I Get Error -200284 from my DAQmx Read VI?

 

If you have any further questions feel free to post them.

 

Have a great day!

J Newk
Systems Engineer
National Instruments
0 Kudos
Message 2 of 5
(4,564 Views)

It isn't a programming or sample rate issue.  It has to do with a power glitch or network connection as these units are in harsh environments.

 

If I could tell the time that the unit last booted up I could debug power or network, but for now we moved to a cleaner power source and replaced all of the networking components.

 

Is it possible to see when the device last booted up?

Programming Data Acquisition and Control in Measurement Studio and Labwindows/CVI
Message 3 of 5
(4,553 Views)

Hey SCXI_and_MS_2k3-VB.NET,

 

I have checked into this issue some more for you.  Currently this is not a feature of the DAQmx Drivers to determine the boot times of the system.  It would be possible to write a piece of code that continually monitors the status of the 9188 and saves the data to file.  You could then reference the file to check for changes in detection of the system.

 

I hope that helps!

 

 

J Newk
Systems Engineer
National Instruments
0 Kudos
Message 4 of 5
(4,544 Views)

Thanks.  We'll just settle for better execution of power and network lines for now.  I'm not sure how I would resolve loss of communication with the device when it could be comm or power.

Programming Data Acquisition and Control in Measurement Studio and Labwindows/CVI
0 Kudos
Message 5 of 5
(4,542 Views)