LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

DAQmxGetDeviceAttribute

Hi,

I would to get min and max sample rate my devide (NI 9239) can support. When I try to acquire with a higher sample rate I get the following message indicating the min and max value I desire to get.

I tried with the following code but I get different values.

#include <ansi_c.h>
#include <utility.h>
#include <NIDAQmx.h>

float64 min_rate[1];
float64 max_rate[1];

DAQmxGetDeviceAttribute ("cDAQ1Mod6", DAQmx_Dev_AI_MinRate, min_rate, 1); // min_rate[0] = 1612.903225806451700
DAQmxGetDeviceAttribute ("cDAQ1Mod6", DAQmx_Dev_AI_MaxSingleChanRate, max_rate, 1); // max_rate[0] = 50000.000000000000000

I would to extend the same method to other boards too and I would to use those values in a math formula. Could you help me? Thanks!

Download All
0 Kudos
Message 1 of 2
(3,137 Views)

Hi, 

I found some documents on the web that explain how to do that. It seems that they are using a diferent DAQmx property:

 

http://digital.ni.com/public.nsf/allkb/104E42830B2E2CE486256DBE005E68E4?OpenDocument

http://www.ni.com/white-paper/4320/en#toc2

 

Hope this helps,

 

Clara

0 Kudos
Message 2 of 2
(3,040 Views)