01-19-2009 01:21 AM
Hello,
I'm bulding a system that is to record data from 4 strain gauges (using NI 9203), and encoder signal. I need an idea how to correlate the encoder position with strain course. In my program (running on NI cRIO-9014 with 2M FPGA) one loop is responsible for acquiring analog sifnal from 9203 and sending it throught DMA to the host, and the second loop (please find the attachement) is responsible for reading data from encoder. Every one milisecond two bytes comes from the encoder (absolut encoder is master- generates clock and sends data). And now I have a problem- I need sone pulse to know that this data from strain gauge telates to this encoder reading. How to exchange data between loops in fpga?
01-21-2009 08:21 AM
Hi przemmo,
To exchange data among loops in FPGA you can use VI Scooped FIFO by use of VI-Scoped FIFO Configuration Node.
However, I'm not sure whether I u understand your application. FPGA is truly paralel, so you can just simply read data from encoder and data from analog input in the same frame. Thus you will have analog data related your digital signal.
Best regards,
Martin
01-21-2009 08:53 AM
Hi,
"so you can just simply read data from encoder and data from analog input in the same frame." I've hit on this soon after submiting the post. It's simpler than one could think.