LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Fixed Point Question

Solved!
Go to solution

I have a simple test program which is a digital FIR filter. I am simulating it for the Rio in fact, as I am having similar problems there.

 

as it stands, the program in the pic below actually works well. It should null a frequency at 1/4 sampling which it does. However, if I replace the array of fixed point zeros

with am initialise array function (see below the diagram) then it fails. The reason I want the initialise array is that it could be quite a large array - say 400 values in it and I don't want a hugh load of fixed point zeros there. I changed the format of the initialising zero to fixed point but it still doesn't work.

 

Thanks

Download All
0 Kudos
Message 1 of 5
(2,200 Views)
Solution
Accepted by topic author tomnz

The FXP values in the array are of different FXP type  (32bit lenght, 16bit integer word length) to the one where you initialize the array (1.bit lenght), so the results will definitely differ. You need to make sure the constant is of the desired type.

 

Also the constant you use to initialize the shift register is 1bit, probably not enough.

 

Why don't you use autoindexing on the coefficient array?

0 Kudos
Message 2 of 5
(2,196 Views)

Fixed now thank you, that was simple!!

 

 

 

0 Kudos
Message 3 of 5
(2,187 Views)

Please provide the solution credit to altenbach, and not to your thank you post. You can unmark your post as the solution from the Options menu on the right, above the thread, and then mark altenbach's post as the solution.

0 Kudos
Message 4 of 5
(2,157 Views)

Sorry about that, all sorted now.

0 Kudos
Message 5 of 5
(2,139 Views)