03-23-2012 07:56 AM
Nope, it's not working. I'll try your suggestion when I have some time by just putting in the maximum number of instances that will be used and hope for the best 😄
03-23-2012 08:08 AM
It will work because I have done it before. When you do this another input appears on the for loop where you set the number of processors. If you set this to the number of predefined instances you need then it works. Or if you want, just set the number of processors to a number larger than the maximum number of instances you might need.
03-23-2012 08:20 AM
Your approach would work, but it would have to be done by feeding in an array of waveforms. The IIR Filter vi is polymorphic so when you input a single waveform, it runs the instance that runs a single channel. If you input an array of waveforms, it runs the instance for multiple channels and therefore retains the tap information for each channel. You still have to initialize it the first time just like the before and you must also set the dt for the waveform to get the correct behavior.
03-23-2012 08:36 AM
Hello Mr Pursley,
Thank you. Like I said I have not time right now, but I will try it out on Monday.
I have a question though. What is the difference between :
The instances are to be chosen in the dialog box, but the workers are chosen in the diagram.
03-23-2012 09:33 AM
From the help
03-30-2012 06:01 AM
Thank you.
So to confirm. Since I would not use more than 60 channels/workers, I should put in 60 in the instances as well.
David.
03-30-2012 11:25 AM
The number in the dialog box needs to be set larger than the maximum number of channels, the 60 you mentioned should go here. The 'P' input should have the actual number of 'clones' you want instantiated. That way you will have one instance for each channel of data but no more. Since this is a run-time decision, the compiler should be able to determine how many is required before executing the program.