Multifunction DAQ

cancel
Showing results for 
Search instead for 
Did you mean: 

Wrong number of sample acquired with Matlab script

Hello everyone,

 

I'm using a NI 6229 to read a series of analog signals. On a matlab script I use to pilot the hardware, I set the rate at 50000S/s to read 5 channels on the DAQ, while moving a motorized stage. Everything works fine until NumberOfScans = 1000, if I increase the number of scans over that value I can acquire only 1000 points per channel plus series of 0s. I expected to be able to increase it until 50000.

I attach the script.

 

Thank you for your support

Marco Nardello

0 Kudos
Message 1 of 2
(1,199 Views)

Dear Marco,

 

Number of scans for operation when starting - MATLAB (mathworks.com)

 

Having looked at this article from MATWORKS's support page I assume that NumberOfScans value must be multiple to 1000. And 1000 is the number of scans per second.

 

Pater_Mater_Filius_0-1638537203206.png

 

Hope this will help you to understand the issue.

 

Best Regards,

----------------------------------------------------------------------------------------------------------------

Hitting the KUDO button is the best way to say "Thank You"

 

0 Kudos
Message 2 of 2
(1,102 Views)