04-08-2014 10:08 AM - edited 04-08-2014 10:10 AM
Hi all!
I'm working on a school project trying to collect data from an accelerometer with an NI 9201 module in a cRIO 9074 chassis. In Labview 2011 I wrote an FPGA VI which collects data to a FIFO and a RT VI which reads this data from the FIFO, displays it on a chart and saves it to a .tdms file on the cRIO. The problem is that I can colelct very less data, approximately 0-1000 data in a second which is very less to the max. 500kS/s what the NI 9201 can collect. the worst is it doesn't react at all if I try to change the samping rate in the FPGA VI (there is a flat secquence in it, which irst frame includes a Loop timer whith a control, to set the rate, and in the second frame there is the reading of the Analog input, and writing it to the FIFO).
We think the problem is that the RT VI does not run on the cRIO (it runs on the PC we think) and many elemnts are lost during the Ethernet communication. My question is how to pace the RT VI on the cRIO, so it can run on it, and not the PC? I think it could be done by building a Realtime Application, but I haven't done anything like this before, as like the rest of this project.
The alap_proba_1_fpga.vi is the FPGA VI, and the alap_jo_1_fpga. vi is the RealTime VI
Thanks for your help!
Regards,
Tschabee91
04-08-2014 10:29 AM
I mean that I get less data in a second is that if I view the tdms file in DIAdem, one arbitrarily picked detail of the wave (because before measuing the accelerometer's signal, first we're measuring a sine wave signal from a signal generator) consists of very less data.
04-08-2014 06:24 PM
Hi, i just looked at your files. I have 2 things for you to try:
1. put a FOR loop around the waveform chart. Charts accept 1 point at a time so wiring the array will cause problems and you wont get what you expect.
2. to execute the VI on the cRIO instead of the PC, in the project drag it on to the cRIO target. it is that easy! you dont need to build an .rtexe to run the code and you can still debug with probes and highlight. once on RT you will need to change the path of the tdms to use the C drive. YOu can get the file off the crio using FTP from windows explorer.
See how you get on.
MIchael.
04-09-2014
07:37 AM
- last edited on
04-05-2024
05:33 PM
by
Content Cleaner
Hi Tschabee91,
I would suggest you to start with Compact RIO Waveform Library. It is a reference architecture that includes detailed information about how to acquire data continuously and also helps you understanding basic concepts of FPGA application and RT application.
Best regards,
IR