i have two adc inputs in my fpga module..(i am using compact RIO 9074,which has NI 9234 as its adc input channel.)
what i want is the sample by sample inputs from the FPGA program to the RealTime Program so that i can use it for my purposes..
since i have two input ADC channels,i have put both of them into a build array,the output of which goes to a for loop which has a FIFO,(target to host,FXP) that send the elements to the RT. now,while recieving the date from the FIFO.read,i want sample by sample from each ADC channel.
if i do decimate array,i am getting an array of lets say 'n' samples.in the next iteration i am getting a new set of 'n' elements.which is not what i want.i want one by one all elements of the array..
how to solve the issue..??
please send me an attached FPGA and RT code so i could actually see where i went wrong.
we could also have a talk using team viewer if that is convenient to you.
i am attaching png files of the fpga and rt programs..please have a look..
yes..u understood me right.i want each pair of samples per loop and not more than one pair. but i didnt understand what you did there..isnt there an easier,standard solution??.i am new to lab view..but i guess,there must be standard procedures to get data sample by sample from the fpga..
The FPGA and the cRIO will run at different loop rates and there's no simple way to sync them up. Usually the FPGA is capable of looping a lot faster. The code above simply reads all the FIFO data and breaks it into n sets of x readings. Take a look at DMA FIFOs and pipelining to understand how that loop works.