08-24-2025 05:31 PM
I want to export the filter coefficients from multistage Decimation Filter design from all filter stages to a text file or csv file.
Solved! Go to Solution.
08-24-2025 08:06 PM
Please help us help you. I'm unaware of the Multistage Decimation Filter express VI. You also didn't provide anything more than a very limited picture of this function.
To get more targeted help, attach working LabVIEW code (preferably in "not the latest version of LabVIEW", but maybe in LabVIEW 2021 (Save for Previous Version) that includes real data saved in a real Indicator (so we can see and learn something about the data you are dealing with).
Bob Schor
08-25-2025 07:04 AM
Great Thanks, Mr. Bob Schor for your cooperation.
The Express VI location is as follows:
Signal Processing >>>Digital Filter Design>>> Multi-rate design >>> DFD N stage M rate filter design.vi.
more information can be found in this link:
https://www.ni.com/docs/en-US/bundle/lvdfdt-api-ref/page/vi-lib/addons/digital-filter-design/express...
Kindly, download the attached LabVIEW code.
Great Thanks
08-25-2025 07:20 AM
One easy way is to flatten it to XML and write it to file.
08-25-2025 07:49 AM
I am sorry, but I don't have the Digital Filter Design toolkit installed, so I cannot help you with designing a multi-stage, multi-rate decimation filter. Most of my work involves frequencies in the "biological" range, not-so-many kHz and simple filters. I hope @Yamaeda's response is more helpful to you.
Bob Schor
08-25-2025 07:52 AM
Yameda has the smart and complete solution,
if you only want the FIR values try
well, the bottom loop 😉
08-25-2025 07:58 AM
Thanks a lot, Mr. Yamaeda, but the easy methods probably don't work fine for this complex filter.
I tried your solution, but the output file does not provide the coefficients correctly.
It’s expected that stage one gives 34 coefficients, stage two gives 8 coefficients, and stage three gives 658 coefficients.
08-25-2025 08:00 AM
Great Thanks, Mr. Bob Schor. I shall need you help in other fields 🙂
08-25-2025 08:08 AM
Great thanks, Mr. Henrik, for your brilliant solution. I really appreciate your help.
Greetings from Egypt
Emad
08-25-2025 09:47 AM
@Emad_NRIAG wrote:
Thanks a lot, Mr. Yamaeda, but the easy methods probably don't work fine for this complex filter.
I tried your solution, but the output file does not provide the coefficients correctly.
It’s expected that stage one gives 34 coefficients, stage two gives 8 coefficients, and stage three gives 658 coefficients.
It seems to have 1 extra, searching for Dimsize you get 35, 9, 659. I don't know anything about the method, but that's what's generated. The main point is that it's easy to check the file (as it's text) and read back if you want to continue the next day.