JaneliaSciComp / NIDAQ.jl

National Instruments Data Acquisition Interface
Other
47 stars 16 forks source link

Cannot get Available Samples Per Channel #36

Open tejasramdas opened 2 years ago

tejasramdas commented 2 years ago

I'm trying to read from my NI 6363 X Series card in continuous mode. I keep running into issues where the buffer overflows after some time even though I am reading faster than the low sample rate I set using CfgSampClkTiming.

I would like to use DAQmxGetReadAvailSampPerChan to get the number of samples in the buffer. However, it only returns 0 when the task is running and -200983 when it is stopped. In particular, I'm not sure what I should pass in as the data parameter. I'm currently passing in an empty Int32 array. Any help is appreciated.

bjarthur commented 2 years ago

probably best to search and ask for help on a NIDAQ forum as those will have much more traffic. please let us know if/when/how you get it fixed. sorry, and thanks.