LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Weird Behavior with Block Memory on cRIO FPGA

Hello all,

 

I am making a FPGA program which measures voltages and finds the differences between all voltages and compares them to a threshold, as seen below:

Gryffin_0-1708533211703.png

As you can see, this runs through a block memory (VI:Diff Thresh Buffer) and finds the magntiude of the difference between them and then compares it to a threshold in another block memory (Differential Threholds). It then checks "Diff Thresh AQE" and increments everytime the threshold is exceeded, then stores it in the Differential AQE Counter.

This mostly works fine, HOWEVER....

When checking the difference against the threshold, the magnitude is completely wrong (e.g. the difference between two data points is 0.01 but if the threshold is set to 0.1 it is triggered).

 

Does anyone have any idea what could be causing this behavior?

I have a similar loop in another part of this program which is checking the raw voltages (not taking differences, just checking against thresholds stored in another block memory) and it works absolutely fine!

 

Thank you!

0 Kudos
Message 1 of 1
(157 Views)