11-23-2009 02:23 AM
Hello,
I am using NI USB-6229 to read analog inputs. Sample mode is set to continuous samples with onboard clock at 8000Hz.
I read 10 samples from 30 channels at a time (40ms steps). After several hours of correct function the analog values acquired from DAQmx Read VI stop changing. The VI indicates no error or warning. It just returns the same values from now on.
DAQmx Read property AvailSampPerChan tells 10 samples are available before the DAQmx Read is called.
If the task is closed and reopened the reading is correct again.
Alongside the AI operation the digital lines are set and read without problems.
Thanks.
Z.P.
11-25-2009 09:01 AM
Hey ZdenekP!
Could you please tell me what version of LabVIEW you use?
And some other questions:
I tried to replicate the error, but seemingly that doesn't behave like yours. Maybe we need to reconsider the timing of the reading process.
For example: DAQmx Read should be configured for Analog 1D Waveform, NChan, NSamp. Your sample rate will be (8000/30) 267 Hz/channel, to read only 10 samples per channel would be questionable, don't you think? Please, help me with sharing details!
Have a nice day!
Matyas
11-26-2009 04:07 AM
Hi Matyas,
The measuring is running on W2k, NIDAQmx 9.0 and LabVIEW 8.5. Besides USB-6229 (used 30 AI and 80 DI) there is also connected USB-6008 (used 4 DO) to USB 1.1 port!
I've tried to simulate the problem on another machine with WinXP and USB 2.0 but it didn't occur. But there was only attached USB-6229 and I read only 8 DI lines. During weekend I will try to connect this machine to the real application.
2/3ds of analog signals is DC voltage 5V +/- 1V, the rest is SMPS voltage with RMS 0-6V.
DI lines are read at the same speed as AI lines.
The pictures show how DAQmx is opened and cyclically read.
Thanks for your effort!
Zdenek
11-27-2009 08:00 AM
Hi Zdenek,
I have a few questions:
I wish you success... 🙂
Matyas
12-01-2009 05:54 AM
Zdenek