11-28-2013 08:40 AM
I have a sample waveform stored in matlab (.mat) and would like to perform various filtering after reading it. I am able to read and view the the waveform on a Waveform graph, but unable to do any filtering.
Can somebody help suggest a way to read the .mat file, perform low pass filtering and display it on a graph ?
11-28-2013 11:06 AM - edited 11-28-2013 11:07 AM
If you are able to read the data and display it on a graph, then you have the information in a usable format within LV.
Just connect the wire going to the graph to the filter input. What you may not have is the timing information.
Is your data an array, a waveform, or some other datatype? Is the sampling rate or the timie increment between samples saved in the MATLAB file?
LYNN
11-28-2013 09:48 PM
Thanks Lynn, the Matlab file is an array of 8 channel waveforms. However, the sampling rate information is not available. When I connect the wire going to the waveform graph to the filter input, I get an error for the filter when executing, it mentions that the the dt <= 0. Any ideas ?
11-28-2013 10:55 PM
The filter VIs assume a default value of dt if none is present in the input data.
There are several ways this could be resolved. Please post your VI along with some typical data so we can see what you hve tried.
Lynn
11-29-2013 06:53 AM
Hi Lynn,
Attached is the vi and the sample data .mat file.
regards,
Prakash