LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

Ni6120 exceed recomended sample rate error

Hellow there

I am using Using Ni6120 under CVI 7.1 with traditional ni_daq
When i am trying to use the device in max sample rate 800KS/s
by calcualting the time base & interval with the daq_rate function i get the following params:
Time base = -1 , intervals = 6 , after calculating it gets to 833ks/s
when i pass this params to the scan_start function i get an error of exceeding max recomended sample rate.
Using the MAX test panel at 800ks/s all is ok.

How can i program the 6120 to sample at the max sample rate

Thanks in advance

Gabel Daniel
0 Kudos
Message 1 of 4
(3,078 Views)
Hello,

I found an entry of the forum that deals with the same question. You can check it out at http://forums.ni.com/ni/board/message?board.id=180&message.id=7307&requireLogin=False .
Good luck with your project.

Serges L.
0 Kudos
Message 2 of 4
(3,070 Views)
Hello again,

I just realized that the link in that entry does not work. The reason you cannot use CVI to go to the full rate is that for the moment, only LabVIEW uses the onboard memory which allows for faster acquisition. Like that entry says, support for this is being considered and could be included in a future release, but for the moment, if the maximum rate is required, LabVIEW is the way to go.
An idea is to use LabVIEW to build a DLL that does the acquisition and call the DLL from your CVI application. However, you will need to have access to LabVIEW and have the LabVIEW runtime engine in the target machine.

Hope this helps.

Serges L.
0 Kudos
Message 3 of 4
(3,067 Views)
hellow Serges

In the time ellapced i have already solved the problen IN CVI...
The function Daq_Rate does not calculate the SampTB & the sampInterval to feet the needs of the 6120
So i wrote my own function that calculate the parameters on the base of the 20MHz internal clock.

It Works Fine under CVI in 800KS/s

Gabel Daniel
0 Kudos
Message 4 of 4
(3,062 Views)