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: 

URGENT :Using AI_Read_Scan with VC++

I am using PCI-6052E to read 5 analog input channels simultaneously.
For some reasons, I want to use AI_Read_Scan function. "NI-DAQ Function Reference Help"
says that this function scans at half of the max rate of device. I don't understand what this exactly means.
After how many samples/ scan cycles will AI_Read_Scan return? Documents says that the array "read" will be having lenth equal to no of channels specified in scan_setup. Is the array "read" two dimensional?What will be the length of other dimension?

Thanks
0 Kudos
Message 1 of 2
(2,626 Views)
Hello,
From what the help says, it means that on a single channel the maximum rate R you can achieve is half the maximum rate specification Rmax. But for multiple channels in that case should be R/N.

My suggestions would be, in that case, use the low level functions. Many many examples are there in c:\program files\national instruments\ni-daq\examples\visualc folder.

The array dimensions will be (no. of channels, no. of samples per channel). If you are acquiring form 6 channels at 500 samples per channel, then the dimensions will be (5,500).

Sincerely,
Sastry V
Applciations Engineer
National Instruments
0 Kudos
Message 2 of 2
(2,626 Views)