07-20-2009 06:44 PM
I have a 1440 turns/rev encoder for measuring crank angle. Using the quadrature encoder example in labview example finder, i was able to get some data off the encoder. However i'm not able to get a resolution of 1 degree from the set up. From my calculation, at 2000rpm, i need to be a minimum sampling rate of 120kHz and the compactrio i'm using has an internal clock of 40MHz so i'm assuming catching every data point shouldn't be a problem. Can anyone help me with an explanation as to how to achieve this?
Also, i'm trying to measure pressure as a function of crank angle but need to make sure that i'm getting pressure at the exact crank position. Is it enough to just have both of them in the same while loop or do i need to set a hardware trigger using the encoder's A output as a trigger for the pressure sensor reading? If so, what's the easiest way to do this? Find attached the FPGA and the RT vis.
Thanks.
07-21-2009 08:29 AM
07-21-2009 02:23 PM
07-21-2009 03:27 PM
07-22-2009 09:42 AM
There are lots of examples for DMA FIFOs, heres one:
07-22-2009 04:59 PM
07-22-2009 08:36 PM