07-01-2008 09:15 AM
07-02-2008 01:01 PM
Massey,
After reading your description the first thing that comes to mind is that the FPGA loop appears to be running at the right rate for the data acquisition; however, it is only recording 1/4 of the samples, which means that for some reason there is data lost between the input node on the FPGA and the FIFO read on the host. How are you implementing the FIFO between your FPGA and host in order to place four elements in the FIFO every loop iteration (this value of 4 elements and missing 3/4 of the data may have a correlation) ? Please include a screen shot of this implementation if possible as well.
Cheers,
Jonah
Applications Engineer
National Instruments
07-02-2008 01:44 PM
07-07-2008 01:22 PM
Hi Jeff,
What was occuring was the N terminal was conflicting with how many times the for loop needed to run to index all of the array elements. When an auto-index is used, the for loop automatically calculates how many times it needs to iterate to get through every element of the array (i.e. array size = 4, the for loop will automatically iterate 4 times). Since a one was wired to the N terminal, the for loop only iterated once (a for loop always runs the least amount of time if there is conflicting iteration data) and therefore only placed one element of the four into the FIFO at a time. As a result you would only see one out of every 4 data points on the output of the FIFO.
Let me know if this helps!
Cheers,
Jonah
Applications Engineer
National Instruments