LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

filter an 1D array

When trying to filter an 1D array I get an error. See picture attached
- there is always an easy way, but it is always the hardest to find
0 Kudos
Message 1 of 7
(3,525 Views)
There is no attached picture.  Go ahead and attach it and your code if you can.
0 Kudos
Message 2 of 7
(3,515 Views)
Sorry about that
- there is always an easy way, but it is always the hardest to find
Download All
0 Kudos
Message 3 of 7
(3,509 Views)

what is teh cutoff frequency you have specified??

what is the size of your 1 D array??

 

0 Kudos
Message 4 of 7
(3,484 Views)
The array size is 1 x 2000, and fc is 500
- there is always an easy way, but it is always the hardest to find
0 Kudos
Message 5 of 7
(3,469 Views)

While LabVIEW allows you to wire a 1D array to the filter function, it really should be a waveform data type. The waveform data type includes t0 and dt. It's the missing dt (sample rate) that is messing you up. Obviously, a 1D array of dbls contains no timing information at all. When you wire in only a 1D array,  the sample rate defaults to 1 second.  I'm not at all familiar with tdm files but if you saved the sample rate to the file when the data was acquired, you should be able to read it back from the file. If you didn't save it, the only way to get correct results is to use the Build Waveform function and provide it.

Message Edited by Dennis Knutson on 02-01-2007 08:58 AM

Message 6 of 7
(3,451 Views)
Thank you
- there is always an easy way, but it is always the hardest to find
0 Kudos
Message 7 of 7
(3,439 Views)