I have an issue with my NIDAQ 9263. I'm writing a signal which has 40,000 samples to the output to send a dynamic voltage. however, i never seen the maximum voltage point produced which tells me some samples are being dropped. I currently have the sample rate set to 40kHz but so far changing the sample rate doesn't fix the issue. I also have it set to continuous mode so the write will continue in the background without holding up the rest of the program. Any idea what could be causing the data drops?
nidaq = daq("ni");
nidaq.rate = 40000;
addoutput(nidaq,"cDAQ1Mod1", "ao1", "Voltage");
Above is how the code operates. The data in the buffer changes which is why it is written continuously inside a loop. Also the write does not hold up the code. For some reason, not add the data in the buffer is written to the output
There's no block diagram as it's a simple code. I just continuously write to the DAQ after I get new data samples into the buffer.