Quantcast
Channel: Counter/Timer topics
Viewing all articles
Browse latest Browse all 1271

FPGA dynamically changing array problem

$
0
0

Hi All,

In a continuation of a problem posted earlier (same project, new problem), I'm using an array as a storage of 'time stamps'. Basically, elements get added to the array when a signal is detected and the oldest element gets compared to the current time + delay and removed after further action is initiated in the next loop. (see attached vi for a full simplified program and the png for the relevant array section).

I don't know the size of the array beforehand, but I doubt it would ever even fill up more than 5 elements at a time. However, even when I set my array as fixed with a certain length and I check the 'Autopreallocate arrays and strings' checkbox, I'm still getting "Arrays must be fixed size in current target' errors.

What am I doing wrong? From reading the documentation it sounds like I should be allowed to use build array and delete from array when using a fixed length array and constants.

Thanks a lot for your help!

 


Viewing all articles
Browse latest Browse all 1271

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>