This widget could not be displayed.

Real-Time Measurement and Control

cancel
Showing results for 
Search instead for 
Did you mean: 

correlating encoder with other signal, serial interface using fast DIO

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? 

 

 

0 Kudos
Message 1 of 3
(3,399 Views)

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

Certified-LabVIEW-Developer_rgb.jpg

0 Kudos
Message 2 of 3
(3,359 Views)

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. 

0 Kudos
Message 3 of 3
(3,354 Views)