12-07-2021 01:32 PM
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?
12-07-2021 01:48 PM
Hi Sara can i see the program please
12-07-2021 02:01 PM - edited 12-07-2021 02:06 PM
nidaq = daq("ni");
nidaq.rate = 40000;
addoutput(nidaq,"cDAQ1Mod1", "ao1", "Voltage");
write(nidaq,0);
While()
start(nidaq,"Continuous");
write(nidaq,buffer);
end
stop(nidaq);
Hello CLA,
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
12-07-2021 02:22 PM
hi Sara , i am Ahmed , are yo writting it with other language rather than labview?
12-07-2021 02:23 PM - edited 12-07-2021 02:24 PM
Hello Ahmed,
I am using the Data Acquisition toolbox in Matlab.
12-07-2021 02:28 PM
can you share block diagram pic ?
12-07-2021 02:30 PM
Hello Ahmed,
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.