LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

iir filter specification

Solved!
Go to solution

Hi all,

 

I'm having a go at making my own filter without having to use the Express filter VIs. I ran into trouble when using the IIR filter VI and specifying its filtering characteristics. The input node 'IIR Filtering specification'  requires a cluster of data, and so I created a series of constants including ENUM and Double types; then I wired the constants to a 'Bundle by Name VI' which connects to the IIR filter. This doesn't work and I get the error message:

 

"You have connected two clusters with different contents. Cluster, a cluster of 0 elements, conflicts, with cluster IIR filter specifications, a cluster of 7 elements"

 

The cluster I input I created, is a cluster of 7 elements with the right constants of the right type so I dont know why it is giving me such error. Is there a method to automatically create a cluster with the needed variables for certain function such as providing the specifications for the filtering. It seems rather unefficient to have to create everysingle one of the variablesby han and put the labels yourself. 

 

Any suggestions will be appriciated. 

 

Thanks 

0 Kudos
Message 1 of 4
(1,025 Views)

jquinno,

 

There is one very easy way to create the cluster.  Pop-up on the terminal on the Filter icon and choose Create >> Constant.  Then change the values as required.  You can also create a control the same way.

 

Lynn

Cluster.png

0 Kudos
Message 2 of 4
(1,005 Views)

Thank you so much. Why wouldnt the Bundle by name work in this case?? was it because the enum constants did not contain all the information, eg, Lowpass, Highpass, Bandstop etc.

 

 

0 Kudos
Message 3 of 4
(992 Views)
Solution
Accepted by topic author jquinno

Bundle by Name requires that a cluster wire of the same datatype be wired into the middle terminal.

 

Lynn

 

Bundle by Name.png

Message 4 of 4
(985 Views)