05-19-2022 05:10 AM
NI_MASM_SigOPEration.lvlib:Resample (constant to constant (multi-channel, DBL).vi
Array size out doesn't seem to be what I'd expect. MatLAB produces the same size in for the same size out, so possibly the FIR params are wrong (but they are default) so there is a problem here as the array size out is missing columns:
85 to be precise whatever I set the end sampling rate to, it culls it.
Solved! Go to Solution.
05-19-2022 08:22 AM
I don't have that toolkit, but as a more general question:
Why do you expect that resampling at a lower sample rate should leave you with the same # samples you started with? Let's suppose you sampled a bunch of channels at 1000 Hz for 2 seconds to produce your 2000 columns. Then you want to resample down to, I dunno, say 50 Hz. I for one would expect 2 seconds worth of samples at 50 Hz, i.e., 100 output samples per channel. Not 2000.
-Kevin P
05-20-2022 02:07 AM
Needs padding with Zeros see
C:\Program Files\National Instruments\LabVIEW 2020\examples\Signal Processing\Waveform Conditioning\Constant-to-Constant Resampling.vi
for example of how to di this with a 1d array
05-20-2022 02:10 AM - edited 05-20-2022 02:11 AM
@Kevin_Price wrote:
I don't have that toolkit, but as a more general question:
Why do you expect that resampling at a lower sample rate should leave you with the same # samples you started with? Let's suppose you sampled a bunch of channels at 1000 Hz for 2 seconds to produce your 2000 columns. Then you want to resample down to, I dunno, say 50 Hz. I for one would expect 2 seconds worth of samples at 50 Hz, i.e., 100 output samples per channel. Not 2000.
-Kevin P
Number of columns is exactly my Sample Frequency, so I expect resampling to give me the new Sampling frequency #of columns.
(standard Resample function produces the same array sizes).
Should be nice and simple to test 😉
James