LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Decimate 1D Array

  Hello everyone:)
  Just as the title,I want to know how to decimate a 1D array.But the difference is,I want to choose the array count of answer.
I  n fact,this I D array is the datas that fetched from the hardware buffer which may contains few channals datas,so if the channal count is 4,I need decimate it to four arrays,then if it is 5,I need five answers.Decimate 1D Array.vi can do the similar work,but how can I control the count of the answer?For example,use a numeric control to input the count and then output the needed arrays.
Smiley Tongue
 
0 Kudos
Message 1 of 3
(3,285 Views)
You have several possibilities. I asusme you want to keep the data from all channels.
 
  1. Reshape it to a 2D array with the number of columns equal to your decimation factor, then transpose if needed. Each column (or row if you transpose) will be a channel.
  2. If there are only few channels max, you could use a case structure with a certain size decimation in each case. unused outputs give an empty array.
  3. ...

Attached are two possibilities (LabVIEW 8.0).

 

Message Edited by altenbach on 09-05-2006 07:34 PM

Message 2 of 3
(3,279 Views)
Nice help:),It works now,thank you very much,altenbach!
0 Kudos
Message 3 of 3
(3,256 Views)