LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

FPGA Many Many Frequency Measurement

Solved!
Go to solution

Hello all,

 

I am trying to measure the frequency of some 50 PWM signals that only goes up to 300Hz.  I use the R-7833. Attached is what I am using to measure ONE PWM signal.  Now, the problem is: Is there a way to use the same code to measure the 50 PWM signals without copy and pasting the same code 50 times.  Note: I have tried to make them into sub-vi's, but have failed.

 

 

 

0 Kudos
Message 1 of 3
(3,335 Views)
Solution
Accepted by topic author Bladhart

Hi Bladhart,

 

This is a good case when moving the I/O node and loop structure outside of the subVI helps make the code more modular and scalable.  NI has posted guidelines for creating FPGA based functions (IP) for reuse.

 

Here's and example for how you could implement this period measurement VI in a way that is more scalable.

            

SUB-VI                                                                                                                                                  TOP-LEVEL VI

 

Cheers,

Message Edited by Spex on 11-17-2008 10:47 PM
Message Edited by Spex on 11-17-2008 10:53 PM
Message Edited by Spex on 11-17-2008 10:53 PM
Spex
National Instruments

To the pessimist, the glass is half empty; to the optimist, the glass is half full; to the engineer, the glass is twice as big as it needs to be has a 2x safety factor...
0 Kudos
Message 2 of 3
(3,313 Views)

Thank you.

 

That really helped, but I ran into a very strange problem.  I have opened another post for that:

 

http://forums.ni.com/ni/board/message?board.id=170&thread.id=369502

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