LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Large FIFO interleave vs smaller individual resources (out-of-sequence FIFO interleave error)

Solved!
Go to solution

Brilliant! I found the culprit! By Adding in frames I was able to detect what builds up over time when in real time interactive mode. At first (maybe about 15 seconds) my loop runs fine at 20ms even with the large spike at the beginning. but over time, it slows down to 200-300 or longer! Any idea what is wrong with my 2nd frame? possible the FPGA Side of the code?

elibarber_1-1731538552463.png

 

elibarber_0-1731538478241.png

 

EDIT:

Just confirmed for the first minute or so it is fine at roughly 700-1000 elements in the FIFO per loop, but after about a minute, it starts to accumulate thus slowing down the loop

 

0 Kudos
Message 11 of 13
(70 Views)

Your loop timer "x-y" is timing the entire loop time. The increase in timing could be due to anything. Do you maybe have an unbounded array as a UI element or something similar. Just because you have the timing calculation in the second frame, doesn't mean the problem is actually located there. To measure that, you would need a sequence of "timer" "code" "Timer" and then take the difference between the two timers.

 

At the moment, your timer is between iterations of your whole loop, and as such the timing delta you see is for the whole loop.

Message 12 of 13
(58 Views)

Not an Array but a UI Element! ** Note to anyone else. Don't use front panel elements for quick lookup tables! I suspect it might have to do with lag over the network or something.

Removing this IMMEDIATELY dropped my max loop rate down from hundreds of ms to 20 ms. runs incredible smooth now.

 

elibarber_0-1731604567604.png

 

0 Kudos
Message 13 of 13
(44 Views)