LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Acquiring data in LabVIEW FPGA

Solved!
Go to solution

Hello,

 

I am working on LabVIEW FPGA where I have to acquire data from a source and take its average. One way to do that is to keep adding every new signal to the sum f the older ones and then average.

 

However, I wish to store all the incoming values into a file and save it. But when I tried doing so, it gives an error saying "array size cannot be changed". With this constraint, I am unable to write the data into an array.

 

Please suggest.

 

Thank you. 

Dheeraj Bharadwaj
IIT-Madras
0 Kudos
Message 1 of 2
(2,052 Views)
Solution
Accepted by topic author dheeraj2102

You need to acquire data, pass it to the RT, then log there. You cannot use build array on the FPGA because FPGA will not allow for dynamically allocating memory like this. You must preallocate the array then use replace array subset. A better way is to use DMA FIFOs. Have a look at the FPGA examples in LabVIEW for streaming data. Then, on the RT, you can just add in your file logging functions.

Message 2 of 2
(2,050 Views)