Hi Travis,
The Period measurement has an output valid signal that goes true only once per measurement, so either you are missing the valid measurement or it is not completing before the internal counter overflows (due to too many samples acquired in one signal measurement). If that is the case, you can reduce the "Number of periods" measurement time or sample at a slower rate. LabVIEW 8.6 provides a "timeout" output to indicate when this happens. There is a Measuring Signal Period - cRIO shipping example that demonstrates how to use the output valid signal to latch each valid measurement result so you can read it from an indicator via the FPGA interface. Use Help>>Find Examples and search for "Period".
cRIO doesn't support hardware I/O emulation. I would replace the I/O with a Pt by Pt signal generation VI for testing purposes to play with the Period measurement until you figure out how it behaves. Make a copy of your FPGA VI, move it to My Computer, replace the I/O with a Pt by Pt Sine Generator and see if you can get the measurement working. You'll need to be careful about the timing, though. The important thing is to make sure you have the same number of samples/cycle in your host experiment as you would on the FPGA. LabVIEW 8.6 allows you to do this more seamlessly by letting you write your own VI to generate data when in emulation mode (sorry for the 8.6 plugs, but that's what I've been working with lately :-) ).
guilio_2008 wrote:
As for the increase in compile time, I though it was because of the analog period vi. Since some of these vi's had sub vi's under them, that it was to do the programing for everything. Thats mainly why I want to go a different route and not use the APM vi but I can do that later. If I can get the APM vi to work, I'll use that for now.
I don't understand what you're saying about the subVIs here. We would like the APM to cover as many use cases as possible without needing to modify it. But it is designed to be cracked open in case you do need to customize things. I would love to hear what you changed when you get to that point, so we can evaluate whether we need to add (or subtract) some features to make it more useful.
Jim