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: 

DAQmxRegisterEveryNSamplesEvent buffer size question

Solved!
Go to solution

Hello? I'm testing DAQmxRegisterEveryNSamplesEvent function but it returns an error message. I set sample size 7200. 

Code.jpg

 

Code_gain.jpg 

 

 

Error message is

Error-NSample.PNG 

 

Which function set buffer size? Where did I get 100,000 size buffer in that code? 

I'm converting DAQ to DAQmx..from Parkoz.com
0 Kudos
Message 1 of 2
(3,400 Views)
Solution
Accepted by topic author anarkie

Ok, I figured it out. It is all about DAQmx_Val_FiniteSamps property of DAQmxCfgSampClkTiming. It should have DAQmx_Val_FiniteSamps property to use specified buffer size.

 

Thanks,

Message Edited by anarkie on 06-24-2009 12:45 PM
I'm converting DAQ to DAQmx..from Parkoz.com
0 Kudos
Message 2 of 2
(3,398 Views)