01-31-2013 01:51 AM - edited 01-31-2013 02:17 AM
Hi,
I have 2D array with signals from a daq device, now i want to make a highpass and a lowpass filter for all the signals, and every signal can have it's own high and lowpass filter settings and i can have any number of signals. When i connect my 2D array to a for loop and place a filter inside with the init/cont option to true, it resets itself every loop pass. When i extract one signal and pass it trough the filter it works fine. But that's not what i want, i want to have more signals filtered in different ways. I think i understand why it reset itself, in the help file of the filter it says:If init/cont is TRUE, LabVIEW initializes the internal states to the final states from the previous call to this instance of this VI. So it means that every loop pass, it has different data but the same instance... I would like to have different instances for every (for loop) pass. In the attached files the snippets and its outcome:
Any ideas?
Best regards,
Thijs
Solved! Go to Solution.
02-04-2013 08:42 AM
Hello Thijs,
I made a quick example at my side.
It's not the neatest piece of code and the initialization of the filter coefficients should be outside of the loop, but I just wanted to show the functions you could use to do this.
See attachment.
02-04-2013 08:47 AM - edited 02-04-2013 08:48 AM
Hi,
I allready solved it!
See VI
The FilterState has to be initialized, or else the forloop won't run...: