08-31-2005 05:26 PM
09-01-2005
09:02 AM
- last edited on
04-23-2025
01:07 PM
by
Content Cleaner
Thank you for your question. With cRIO, you will need to program the FPGA to get data flow from the 9215 to the host RT controller, and then to the host Windows Controller. Here is a link to an excellent tutorial on the basics of LabVIEW FPGA, which includes transferring data to the RT controller:
http://zone.ni.com/devzone/conceptd.nsf/webmain/62B388DB80B557028625703700639B89
09-01-2005 09:59 AM
09-01-2005 11:02 AM
Thanks for the replies. I see that in order to use the CRIO I MUST use the FPGA. I will look at that example.
Regarding the USB module, since I need 16 channels, would I need to buy 4 of those units and plug in to 4 USB ports? How would this affect throughput?
I've had bad luck with USB data acq. , both NI and others.. not sure why but usually when doing high speed data.
Regards
jeff
09-01-2005 11:23 AM
09-02-2005 07:03 AM
Thanks for all the help.
I've been able to get the examples to work but I have only one problem. I can't seem to get the acquisition speeds that I should get. There is another example called recommended by the NI support crew called "CompactRIO Continuous Buffered Readings" which is a good example, but when I try to set the acquisition to 10KHZ, it doesn't appear to acquire at that rate. I feed a sine wave in and it appears to alias. When I slow it down to 100HZ then it appears ok. (I'm trying to acquire at 10KHZ on all channels).
Is there a way to confirm the actual acquisition rate?
I'm a little frustrated with this and not sure what to do.
I appreciate any help.
Thank you,
Jeff
10-24-2005 06:21 PM
10-31-2005
10:15 AM
- last edited on
04-23-2025
01:07 PM
by
Content Cleaner
Hello Jeff,
Without DMA support to transfer the data from the FPGA to the LabVIEW Real-Time host, you will not be able to achieve the transfer rate required for your application. Without DMA the maximum effective continuous data transfer rate you can achieve is about 100 kB/s. The exact rate depends on the amount of data processing and handling you need to do in you LabVIEW RT host application.
DMA data transfer from FPGA to RT host is not supported in LabVIEW FPGA 7.1, but is a new feature added in LabVIEW 8. You will not need to change any of your hardware for this to work. You can get more information about the new features in LabVIEW FPGA 8 at the following location.
http://www.ni.com/labview/upgrade.htm
Message Edited by Christian L on 10-31-2005 10:16 AM
12-09-2005 02:36 PM
Thanks for the replies.
An update. I just upgraded to LV8. Beginning some benchmarking now using DMA. So far with 8 analog input channels, I'm maxing out at about 43K samples per second (on each of 8 channels). This is about 8 or 9 times faster than with LV7, so I'm VERY happy! The only thing I don't know is if I'm doing it correctly or if there is a more efficient method. I started with the demo program available here and messed around with things such as FIFO size, (on both the Host and FPGA), channel count, number of samples to read, etc..
I'm a little confused as to what values should be used for FIFO size on either the host or FPGA. Not a big deal since it works great right now.
My next benchmark will be to stream the data to disk. Is it easy to convert the binary streaming data demo from FIFO to DMA?
Thanks!
Jeff
12-12-2005 02:17 PM