11-17-2008 04:11 PM
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.
Solved! Go to Solution.
11-17-2008 10:45 PM - last edited on 07-10-2024 10:35 AM by Content Cleaner
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,
11-18-2008 03:45 PM
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