Multifunction DAQ

cancel
Showing results for 
Search instead for 
Did you mean: 

NI 9263 Analog Output

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?

0 Kudos
Message 1 of 7
(548 Views)

Hi Sara can i see the program please

CLA
0 Kudos
Message 2 of 7
(542 Views)
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

0 Kudos
Message 3 of 7
(536 Views)

hi Sara , i am Ahmed , are yo writting it with other language rather than labview?

CLA
0 Kudos
Message 4 of 7
(525 Views)

Hello Ahmed,

I am using the Data Acquisition toolbox in Matlab.

0 Kudos
Message 5 of 7
(523 Views)

can you share block diagram pic ?

CLA
0 Kudos
Message 6 of 7
(519 Views)

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.

0 Kudos
Message 7 of 7
(514 Views)