LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Can't seem to measure above 1k S/s, please help

Thanks Norbert.

After reading your tutorials, and getting help from Irit, another NI representative, I now have a labview project which successfully reads data at 750 k S/s without reaching buffer overflow.

 

However, when I use the "write to file" object it does reach overflow, so instead of writing to a file I am trying to write to an array (to the RAM so to speak) and in the end of the data acquisition process write the entire array to a file.

The way it is now, my program indeed creates a file with 750k lines, but they are all 0's except for the last few k's. I believe what is happening is that the array is only really filled with the data acquired in the loop's final iteration.

 

Could you please help me fix this so that my file will contain all the data, not just the last iteration?

 

I've attached both the host and the fpga although the fpga.vi seems to be fine, its the host.vi that I'm having problems with.

 

Thanks in advance.

0 Kudos
Message 21 of 22
(377 Views)

From the help of "Insert Into Array":

If you do not wire any index inputs, the function appends the new element or subarray to the end of the n-dim array.

 

Norbert

Norbert
----------------------------------------------------------------------------------------------------
CEO: What exactly is stopping us from doing this?
Expert: Geometry
Marketing Manager: Just ignore it.
0 Kudos
Message 22 of 22
(372 Views)