I'm working with a large waveform that I'm sending to a d/a card with a max frequency of around 125kHz. I'd like to decimate this array by an amount determined by the array size and period over which it will be output. I know I can decimate by a fixed value using the decimate vi, but I'd like something variable.
I've looked at putting the index array function in a loop, where N is determined by the array size. I look at the degree of decimation desired and if the division of that by the loop index is zero, I'd like to add that value to a new smaller array. Problem is I tried using the =0 function to input into the select (?TF) function. If true, I'd like to pass the array value out, if not, I'd lik
e to do nothing. Unfortunately, something has to be wired to the F input of the select function. I'd end up with an array the same size, with the values I wanted to discard being equal to some constant (for example).
Does anybody have a vi which can decimate an array by a variable amount, or any hints on how I should proceed? Thanks for your time.