ni.com is currently undergoing scheduled maintenance.

Some services may be unavailable at this time. Please contact us for help or try again later.

Multifunction DAQ

cancel
Showing results for 
Search instead for 
Did you mean: 

DAQmxBaseReadAnalogF64 function

Hi,

I am experiencing problems with the DAQmxBaseReadAnalogF64 function for the USB-6009 acquisition card. I am working on a project to build an electrocardiogram. There is an instrumentation circuit sending heart signals to the card. Then, using Borland C++ Builder 5, I set the numSampsPerChan parameter of the DAQmxBaseReadAnalogF64 to -1 to read all the available data. I set the smapsPerChanToAcquire parameter of the DAQmxBaseSampClkTiming function to 350 samples to acquire per channel. Is there a problem with this parameter or am I missing something?

Thanks,

Jean-Gabriel Maurice
0 Kudos
Message 1 of 9
(4,382 Views)
The problem I am experiencing is that the DAQmxBaseReadAnalogF64 function does indicate that it read all of the 350 acquisitions I set in the sampsPerChanToAcquire. When I display the sampsPerChanRead parameter, it indicates that only two samples were read.

Thanks,

Jean-Gabriel
0 Kudos
Message 2 of 9
(4,372 Views)
I have the same problem with NI-USB 6008.
In addition the function DaqmxReadBinaryI16 always return an error code -200248.
0 Kudos
Message 3 of 9
(4,355 Views)
I had similar problems like you!
Two weeks ago I was trying to port an existing application from DAQmx to DAQmxBase. After several days of experimenting I had to give up the development.
The functions DAQmxBaseReadAnalogF64 and DAQmxBaseIsTaskDone have bugs other important functions are missing, the speed of the application is slow and the stability is insufficient.

I hope that the devices currently supported only by DAQmxBase will be supported in the next NIDAQ (DAQmx or traditional) release.

Bela Torok
0 Kudos
Message 4 of 9
(4,351 Views)
FYI - It is being considered to port the USB-6008/9 over to NI-DAQmx in a future release of NI-DAQ.
-Alan A.
0 Kudos
Message 5 of 9
(4,337 Views)
> Alan A. wrote:
> FYI - It is being considered to port the USB-6008/9
> over to NI-DAQmx in a future release of NI-DAQ.

Thanks for the information!

Bela Torok
0 Kudos
Message 6 of 9
(4,328 Views)

Hi,

I have the same problem with USB-6008. When I set numSampsPerChan parameter of the DAQmxBaseReadAnalogF64 to -1 to read all the available data, I get only 2 samples per channel.
Will this problem will be fixed, when 6008 is ported to NI-DAQmx? Is there any delivery date for the new release of NI-DAQmx supporting the 6008?

Jörg Müller.

0 Kudos
Message 7 of 9
(4,179 Views)

NI-DAQmx 7.5 (link below) now supports the USB-6008 and USB-6009 devices on Windows.  I strongly recommend installing this much more powerful and robust driver.  For more information on how to switch your device to use NI-DAQmx, refer to the KB linked below.

NI-DAQmx 7.5
http://digital.ni.com/softlib.nsf/websearch/CF7ECCEA4C4CC7DE86257038004D88AE?opendocument&node=132060_US 

KB: 3NE7GJMY
0 Kudos
Message 8 of 9
(4,136 Views)

Thanks for your message!

> I strongly recommend installing this much more powerful and robust driver. 

> For more information on how to switch your device to use NI-DAQmx, refer to the KB linked below.

I already use NI-DAQmx 7.5. My program works without problems...
 
The functions DAQmxReadAnalogF64 and DAQmxIsTaskDone are working as expexted.
 
Regards: Bela Torok
0 Kudos
Message 9 of 9
(4,123 Views)