290 likes | 309 Views
Explore various filter examples using LabView for effective edge effect management in kinesiology and applied physiology research. Includes different filter techniques and solutions to address edge problems in data records.
E N D
FilterExamplesLabViewWilliam Rose Department of Kinesiology and Applied Physiology
filter1.vi Department of Kinesiology and Applied Physiology
filter1.vi Department of Kinesiology and Applied Physiology
filter1.vi Zoom in to beginning to see filter edge effects. Department of Kinesiology and Applied Physiology
filter2.vi Similar to filter1.vi, but uses Zero Phase.vi. Department of Kinesiology and Applied Physiology
Another example of edge effects. Department of Kinesiology and Applied Physiology
Another example of edge effects at each end of a data record. Department of Kinesiology and Applied Physiology
Fix for FilterEdgeEffectsProblem Extend the record by adding a segment of time-reversed, inverted-about-the-endpoint data on each end. Filter the extended record. Cut off the extended parts. extend_data.vi doesstep 1. Department of Kinesiology and Applied Physiology
extend_data.vi Department of Kinesiology and Applied Physiology
extend_data_test.vi Department of Kinesiology and Applied Physiology
filter3.vi filter3.vi calls extend_data.vi to extend the raw data, then filters the extended data, then cuts off the extended parts. Department of Kinesiology and Applied Physiology
filter3.vi Department of Kinesiology and Applied Physiology
filter3.vi No more edge problems. Department of Kinesiology and Applied Physiology
filter1.m Department of Kinesiology and Applied Physiology
filter1.m Department of Kinesiology and Applied Physiology
filter1.m Zoomed-in view of start Department of Kinesiology and Applied Physiology
Phase-lessPhiltering • Use filtfilt.m in Matlab. • Labview routine filter2.vidoesforward –backwardfilteringwithZero Phase.vi, but it has edgeeffectsatstart and finish. • We do not give a Matlab analog to filter2.vi, because, by default, Matlab’sforward-backwardfilter (filtfilt.m) eliminatesedgeeffects. Department of Kinesiology and Applied Physiology
filter3.m Highlighted lines differ from filter1.m. Department of Kinesiology and Applied Physiology
filter3.m No visible edge effects. Department of Kinesiology and Applied Physiology
filter3.m No visible edge effects at either end. Department of Kinesiology and Applied Physiology
filter3.m No visible edge effects. Data file: force_isometricelbowext_healthyadult_shortseg.txt Department of Kinesiology and Applied Physiology
filter3.m No visible edge effects at either end. Data file: force_isometricelbowext_healthyadult_shortseg.txt Department of Kinesiology and Applied Physiology