From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.
We appreciate your patience as we improve our online experience.
Why don't you just use 1 for the numSampsPerChan? I have to warn you though if you do that you won't be able to run at very fast rates in your application.
Just to add to Stuart's suggestion, please take a look at the DAQmx C examples that install with the driver located at C:\Program Files\National Instruments\NI-DAQ\Examples\DAQmx ANSI C on your computer. In particular, navigate to Analog In >> Measure Slow Varying Signal >> One Sample.