08-06-2008 03:23 PM
08-06-2008 03:48 PM
What kind of signal are you measuring? If it is relatively clean with a strong fundamental frequency (e.g. sine, square, triangle wave or the like), the Analog Period Measurement is the recommended technique. Please clarify what problems you had using it. The long compile time is pretty much unavoidable for FPGA in general--are you seeing the Period measurement specifically causing a big increase in compile time? You definitely want to do as much verification as possible either in emulation mode or under My Computer, and defer the compile until you are happy with the results you're seeing on the host.
Jim
08-07-2008 07:22 AM - edited 08-07-2008 07:27 AM
I am using a sine wave, of 1 Hz straight out of a function generator so the signal is clean. I am needing to get the freq for up to 1000Hz. I tried the Analog Period Measurement, but after the compile and the vi started, it didn't get me any results. Just 0's. The only thing I had was the signal going in from my 9215, and a indicator on the analog period measurement vi. I'm not sure if I had a setting wrong or not. If there is an example code, I appreciate if someone could post it.
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.
Now going to the emulation mode I wasn't able to select using target hardware I/O. It will only allow me to select random numbers. Any idea why or how I can get around that?
Thanks for your help,
Travis
08-07-2008 09:53 AM
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.