10-17-2007
03:45 PM
- last edited on
08-15-2025
01:24 PM
by
Content Cleaner
Hi Jos,
Correct. The speed limitation is not the DAQmx driver. The equivalent PCI-6251 is also limited to 1.25 MS/s (1-channel) or 1 MS/s (multi-channel), so that’s the limit of this particular product family. A 3-year old computer should be able to handle this amount of data, depending on how often overhead operations, such as reading data, are performed. If you are calling a read function for every sample, that is going to create a lot of unnecessary overhead that could slow down any computer.
The last point I want to make is that the sampling rate of 1.25 MS/s seems to be a USB limitation as indicated by this page, found from www.ni.com/dataacquisition by clicking on “Compare Product Families” in the upper left.
10-18-2007 01:36 AM
Hello Mark,
Thanks! I know now enough to (let) buy me some new toys.
Regards, Jos
03-14-2008 11:51 AM
03-17-2008 05:13 PM
Hi Pierre,
I’m assuming that since you are trying to emulate a SPI memory you have a read, write and clk line. The clk line controls the timing for when you need to read and write. For your digital read and write tasks what type of timing are you currently using?
I would recommend trying a continuous acquisition with an external sample clock. In this case the sample clock could be the spi clk line. This way your read and writes are hardware timed and you can possibly run your application faster. This will also force your card to use its built in buffers to store data before outputting it or writing it to buffers in the computer’s memory.
Below I’ve included the path to a couple of examples that show how to set up a digital task for continuous external clk acquisition. The examples should be at these locations on your computer. They were installed with the DAQmx drivers.
Continuous Digital Read – External
CLK
C:\Documents and Settings\All
Users\Documents\National Instruments\NI-DAQ\Examples\DAQmx ANSI C\Digital\Read
Values\Cont Read Dig Chan-Ext Clk
Continuous Digital Write –
External CLK
C:\Documents and Settings\All
Users\Documents\National Instruments\NI-DAQ\Examples\DAQmx ANSI
C\Digital\Generate Values\Cont Write Dig Port-Ext Clk
Let me know if you have any questions and have a great week.
Thanks,
03-20-2008 04:49 AM
03-21-2008 02:11 PM
Hey Pierre,
As long as you are not trying to read and write from the same line then both tasks can be started at the same time.
Also they can both use the same sample clock. Just specify the same sample clock source for both tasks in each tasks’ DAQmxCfgSampClkTiming function. With the same source selected and both tasks started at the same time. When you have a rising edge on the sample clock it will read a sample from the read line and write a sample to the write line.
Let me know if you have any questions. Take care.
Thanks,