09-21-2010 02:26 AM
Hello,
I'm new to LabView and using the PCI-7831-R FPGA.
First I want to send a pattern to set a device into oscillation mode, which works very well.
Afterwards I want to measure the frequency of the oscillation with one of the analog inputs of the FPGA card.
I thought about using the "ANALOG PERIOD MEASUREMENT EXPRESS VI" which seems very helpful as it lets me set the threshold and a hysteresis.
With the oscilloscope I can measure the signal at the input of the FPGA connector box.
Attached you'll find my HOST VI and the part of interest of my FPGA VI.
The entire FPGA VI is running in a while loop, whereas it includes a flat sequence with a timed loop in the first "part" to trigger the pattern.
Btw: The signal to measure is a 0-5V swing with a frequency from 20kHz - 70kHz.
Threshold 3V
Hysteresis 1V
I can actually get a result in the HOST VI but it varies from every time I resend the pattern, but the result on the scope is still the same.
I guess my fault is something with the clock, but I can't figure it out.
Would be very pleased if somebody could help me.
Thanks,
Michael
09-22-2010 02:29 AM
No one who has ever used the analog period measurement express vi?
Would really appreciate some help!
09-24-2010 04:04 AM
Hello,
there is a very good example for signal period measurement included in the lv example finder.
"Measuring Signal Period - R-Series"
Please have a close look at this example.
Regards
Rüdiger
11-21-2013 11:11 AM
How to measure the frequency of incoming analog signal into the FPGA from a photo detector?Is this possible??
11-21-2013 01:36 PM
@sunu wrote:
How to measure the frequency of incoming analog signal into the FPGA from a photo detector?Is this possible??
The analog channel doesn't care where the signal is coming from, use the same example to read a frequency of any signal.
Unofficial Forum Rules and Guidelines
Get going with G! - LabVIEW Wiki.
16 Part Blog on Automotive CAN bus. - Hooovahh - LabVIEW Overlord
01-10-2017 07:44 AM
I want to Find the Frequency of an analog signal which comes from NI5781 Module in LabVIEW FPGA.If anyone have an idea on that please suggest me.
01-11-2017 06:18 AM
I assume your NI 5781 data is acquired inside a single-cycle-time-loop (SCTL) and therefore you cannot use the Analog Period Measurement FPGA Express VI directly. However if you configure the Express VI, then right-click on the icon and select Convert to SubVI, you'll have access to the generated code. As you'll see this code is inside an SCTL itself but you can try to move the code into your top-level loop (create a sub-VI without the SCTL and drop that subVI inside your own acquisition SCTL).