LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

About FPGA VI

Solved!
Go to solution

Hello!

 

This is about running the FPGA VI.

I would just like to ask what is the probable cause of the FPGA VI outputting different answers everytime i run it (given that I'm not closing the VI or changing anything in the FPGA VI, I just "re-run" it).

 

Thank you! 

0 Kudos
Message 1 of 5
(2,385 Views)

Uninitialized shift register?

 

Anything we say is just a guess since you didn't post a VI for us to look into.

0 Kudos
Message 2 of 5
(2,374 Views)

Hello.

 

The goal of the codes is to find the phase difference of two signals based on the I and Q data contained in the csv files. On the first run of the Host VI, I get the correct phase difference. The problem is, on the succeeding "runs" of the Host VI, I get different/incorrect phase difference which is indicated in the FPGA VI (and passed to the Host VI through the FIFO).

 

Attached are the zip file containing the Host and FPGA VIs, and the two csv files for the two signals.

 

The expected phase difference is 0.38.... rad.

 

Thank you.

0 Kudos
Message 3 of 5
(2,361 Views)
Solution
Accepted by topic author Betty Boop

Hello!

 

I already solved the problem. I used a separate VI for the reset (invoke method).

 

Thank you.

0 Kudos
Message 4 of 5
(2,357 Views)

I was correct.  Your FPGA actually had uninitialized feedback nodes within your For Loops.  Try wiring an initial value into the initializer terminal of the feedback nodes.

0 Kudos
Message 5 of 5
(2,349 Views)