LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

FPGA 7831R analog period measurement express vi

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

Download All
0 Kudos
Message 1 of 7
(4,261 Views)

No one who has ever used the analog period measurement express vi?

Would really appreciate some help!

0 Kudos
Message 2 of 7
(4,230 Views)

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

Message 3 of 7
(4,200 Views)

How to measure the frequency of incoming analog signal into the FPGA from a photo detector?Is this possible??

0 Kudos
Message 4 of 7
(3,625 Views)

@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.

0 Kudos
Message 5 of 7
(3,621 Views)

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.

0 Kudos
Message 6 of 7
(3,258 Views)

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).

 

 

0 Kudos
Message 7 of 7
(3,250 Views)