Hi,
I'm using MATLab software to communicate with NI-DAQmx 6251 using C libraries. I want to acquire a analog voltage signal at each Digital Trigger input so that i acquire a data point per trigger. The way I defined it in my program is, I set PFI0 at the falling edge to get the digital Trigger input and then DAQmxReadAnalogScalarF64 to acquire the data. But when it ran, the following error appears. "DAQmxErrorTrigWhenOnDemandSampTiming" .
The whole program is working when I acquire multiple data points using DAQmxReadAnalogF64 function.
I do not understand how to solve this issue. Any help would be appreciated.
Thank you.
I'm attachting the matlab code below.
I'm using spincore Pulse-blaster to give the trigger input to the DAQ PFI0 and as for now battery to supply the input voltage to the AI0.