LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Error -200010 occurred at DAQmx Read

Hi,
 
I have a PXI-8196 Real-Time controller and am trying to read analogue signals from PXI-6133 cards.
 
I started with the standard project you get by clicking new real-time project on the getting started screen, then just replaced the acquire data VI with a DAQ assistant. It acquires 100 samples from 1 channel at a rate of 1000Hz. The problem is I always get:
 
Error -200010 occurred at DAQmx Read (Analog DBL 1Chan 1Samp).vi:1
Possible reason(s):
Onboard device memory overflow. Because of system and/or bus-bandwidth limitations, the driver could not read data from the device fast enough to keep up with the device throughput.
Reduce your sample rate, alter the data transfer method (from interrupts to DMA), use a product with more onboard memory, or reduce the number of programs your computer is executing concurrently.
Task Name: _unnamedTask<10>
 
I have tried reducing the sample rate right down to 10Hz but it doesn't make any difference.
 
I have recently upgraded from LabVIEW 8.0 and LabVIEW Real-Time 8.0 to LabVIEW 8.2 and LabVIEW Real-Time 8.2, it all worked perfectly before I did that!
 
Any ideas what I may be doing wrong?
 
Thanks,
 
Sarah
0 Kudos
Message 1 of 13
(8,025 Views)
Hi SarahW

It sounds like your DAQ assistant has an error, can you please delete it and then recreate it.

You have told us that the Assistant is setup for standard continous run (100 Samples at 1000Hz). However your DAQmx Read is setup for 1 Chan, 1 Sample Double.
The DAQ Assistant should create a DAQmx Read of N Chan N Samples 1D WFM.

I have attached the Target - Single Rate.vi code that the wizard creates with the DAQ assistan modification and it works for me, you might need to change the physical channel in the assistant. As my card is setup as Dev1 and yours might be different.

Regards
JamesC
NIUK and Ireland

Message 2 of 13
(8,000 Views)

Hi James,

Thanks for your reply.

The original error message I got was Error -200010 occurred at DAQmx Read (Analog 1D Wfm NChan NSamp), I had opened the front panel of the DAQ assistant and played around a bit before I posted my message.

I tried your vi, I first changed the physical channel and got the following error:

 

Error -200284 occurred at DAQmx Read (Analog 1D Wfm NChan NSamp).vi:9->Timed structure(s): L7600

Possible reason(s):

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: RelativeTo
Corresponding Value: Current Read Position

Property: Offset
Corresponding Value:


Task Name: _unnamedTask<22>

 

If I change from continuous samples to N samples I'm back to my: Error -200010 occurred at DAQmx Read (Analog 1D Wfm NChan NSamp).

Any suggestions would be greatly appreciated,

Cheers

Sarah

0 Kudos
Message 3 of 13
(7,995 Views)
Hi SarahW,

Something sounds very funny with your DAQ drivers, Please can you go into MAX and open "Remote Systems" find yuor RT device and then look at the software for it. Please can you confirm what versions you have installed of:
1) The Ethernet driver
2) LabVIEW RT
3) NI-DAQmx
4) NI-VISA
5) NI-VISA server

What physical channel are you using? so anymore examples I can try and provide you with code you don't need to change.
Please can you post your VI, so I can see if it work on my system, then we can start to draw conclusions as to what is causing the issue?
Corrupt VI or Bad DAQmx install

Regards
JamesC
NIUK and Ireland

Message Edited by JamesC on 12-19-2006 02:28 PM

Message 4 of 13
(7,979 Views)
Hi JamesC
Thanks again for your reply.
 
I have:
Broadcom 57xx Gigabit Ethernet Driver 2.1.0.3.0
LabVIEW Real-Time 8.2
NI-DAQmx 8.3.0
NI-VISA 4.0
NI-VISA Server 4.0
 
The physical channel I use is PXI1Slot3/ai0.
 
Like I said, I had it all working in LabVIEW 8.0 and LabVIEW Real-Time 8.0, I only started getting problems when I upgraded.
 
I will attach part of a vi I was working on in 8.0 that won't now work.
 
Thanks very much for your help.
 
Sarah
Download All
0 Kudos
Message 5 of 13
(7,971 Views)
Hi Sarah,

Sorry but you have provided the wrong read.vi, the one you sent has VISA commands and not the DAQmx Read.
Please can you send the correct version.

Regards
JamesC
NIUK and Ireland

Message 6 of 13
(7,966 Views)
Hi JamesC
 
Sorry about that, not sure where that vi even came from!
 
Lets try again, how's this one?
 
Cheers
Sarah
0 Kudos
Message 7 of 13
(7,960 Views)

Hi,

If I provide a list of all the software installed on my RT controller can you confirm that I have everythin on there I need (and if I have anything installed I don't need).

I basically want to read analogue data from PXI-6133 cards syncronised by a PXI-6651 timing module, do a few sums & stuff then write to some networked variables.

On my PXI-8196 RT controller I have:

Broadcom 57xx Gigabit Ethernet Driver 2.1.0.3.0

DataSocket for LabVIEW Real-Time 4.4

LabVIEW Real-Time 8.2

Language Support for LabVIEW RT 1.0.0.2

NI-1394 External Drive Support 1.4.0.3.0

NI-488.2 RT 2.4.3

NI-DAQmx 8.3.0

NI-IrDA RT 1.0.2

NI-RIO RT 1.3.0

NI-Serial RT 3.1.0

NI-Sync 2.0

NI-VISA 4.0

NI-VISA Server 4.0

NI-Watchdog 2.1.5

Network Variable Engine 1.2.0

Traditional NI-DAQ 7.4.1

Variable Client Support 1.2.0

(Available on my host I have: Intel 8254x Ethernet Driver 2.1.0.3.0, Intel 8255x 10/100 Mbps Ethernet Driver 2.1.0.3.0, LabVIEW PID Control Toolkit 8.2, Modbus I/O Server 1.2.0, NI-DCPower 1.1.0, NI-DMM 2.5.1, NI-FGEN 2.4.1, NI-HSDIO 1.4.3, NI-IMAQ RT 3.7.0 NI-IMAQ Server 2.0.0, NI-Motion 73xx Controller Support 7.4.0, NI-Scope 3.2.0, NI-Switch 3.3.1, USB Support 1.0)

Cheers in advance for your help!

Sarah

0 Kudos
Message 8 of 13
(7,929 Views)

Hi Sarah

It sounds to me as James mentioned before that when you upgraded to LV and LV RT 8.20 the drivers did not update correctly. When you upgrade LV you need to reload the drivers AFTER loading on LV.

Looking over the software that you have installed on your Real Time controller, it seems that everything should be ok, but if you could try a couple of things.
Uninstall all the software on your Real Time target through MAX, this should take about 15minutes. Then try loading it all back on in order of LabVIEW >> Modules >> Drivers
If you have no luck with this try repairing your DAQmx from your host machine, the info that downloads to the RT target is originally on your host machine so repairing this might do the trick

Let me know how you get on.

YatinM
NIUK & Ireland
Applications Engineer

Message 9 of 13
(7,922 Views)
Hi YatinM,
 
Thanks for your reply, unfortunately i'm still having no luck.
First I uninstalled everything from the RT system, then re-installed it. Then I tried a repair on the host, then an uninstall & re-install on the RT system. It still doesn't work!
 
The order I installed things onto the RT system was:
Broadcom 57xx Gigabit Ethernet Driver 2.1.0.3.0 & LabVIEW Real-Time 8.2
Language Support for LabVIEW RT 1.0.0.2
NI-DAQmx 8.3.0, Network Variable Engine 1.2.0 & Variable Client Support 1.2.0
NI-VISA 4.0
NI-VISA Server 4.0
NI-Sync 2.0
 
Is this right?
 
Thanks for your help & Happy New Year!
 
Sarah
0 Kudos
Message 10 of 13
(7,755 Views)