caramoan tour package

caramoan tour package

Author Topic: DSP in SciLAB  (Read 1345 times)

Offline ΔЅịMø

  • Gas Turbine
  • **
  • Posts: 2903
  • Pogi/Ganda Points: 140
  • Gender: Male
  • "Live Curious"
Re: DSP in SciLAB
« Reply #40 on: March 28, 2012, 01:08:32 PM »
You have also to simplify this by converting a0 to be equal to 1 to make this into direct form 2.

           3 – 5z^-1 + 2z^-3
H(z) = ---------------------------
       6 – 29z^-1 – 7z^-2 + 10z^-3

           3 – 5z^-1 + 2z^-3         1/6
H(z) = --------------------------- x ---
       6 – 29z^-1 – 7z^-2 + 10z^-3   1/6

           0.5 – 0.833z^-1 + 0.333z^-3
H(z) = -------------------------------------
       1 – 4.833z^-1 – 1.167z^-2 + 1.667z^-3

a1 = 29/6
a2 = 7/6
a3 = 10/6
b0 = 0.5
b1= 5/6
b2 = 0
b3 = 2/6



Medjo nakuha ko po ito sir. :) Kailangan po talaga na 1 yung a0 to be considered as direct form II.



Dun lang po ako medjo naguluhan sa Reply No. 38. Pasensya na po sir. :(
Computer Engineering National Organization registration thread


Philippine Electronics Forum

Re: DSP in SciLAB
« Reply #40 on: March 28, 2012, 01:08:32 PM »

Offline ΔЅịMø

  • Gas Turbine
  • **
  • Posts: 2903
  • Pogi/Ganda Points: 140
  • Gender: Male
  • "Live Curious"
Re: DSP in SciLAB
« Reply #41 on: March 28, 2012, 01:22:14 PM »
Next step na pos ir is this one:

Quote
                      W(z)
X(z) --> H1(z) --- > H2(z) ---> Y(z)

 
               W(z)
H1(z)=---------- =  0.5 – 0.833z-1 + 0.333z-3
           X(z)

Applying cross multiplication:

w[n]=0.5x[n]-0.833x[n-1]+0.333x[n-2]


and

Quote
                Y(z)                 1
H2(z)=---------- = --------------------------------------
                W(z)        1 – 4.833z-1 – 1.167z-2 + 1.667z-3

 
Applying cross multiplication:

w[n]=1y[n]-4.833y[n-1]-1.167y[n-2]+1.167y[n-3]


Tama po ba sir?
Computer Engineering National Organization registration thread


Philippine Electronics Forum

Re: DSP in SciLAB
« Reply #41 on: March 28, 2012, 01:22:14 PM »

Offline zer0w1ng

  • Technical People
  • Gas Turbine
  • *****
  • Posts: 2179
  • Pogi/Ganda Points: 305
  • Gender: Male
  • Enter any 11-digit prime number to continue...
    • The Cebuano Geek
Re: DSP in SciLAB
« Reply #42 on: March 28, 2012, 01:41:02 PM »
No need to go through the process of conversion.
I just showed it to prove that direct form 2 is derived from direct form1.

You can just simply replace the values of a1, a2, a3, b0, b1, b2 and b3 on the direct form 2 diagram.

a1 = 29/6  = 4.833
a2 = 7/6   = 1.167
a3 = 10/6  = 1.667
b0 = 3/5   = 0.5
b1= 5/6    = 0.833
b2 = 0
b3 = 2/6   = 0.333

  o----->(+)----------o--| b0 >-->(+)----p
          ^           |            ^   
          |          1/z           |   
          |           |            |   
          o--< -a1 |--o--| b1 >----o   
          ^           |            ^   
          |          1/z           |   
          |           |            |   
          o--< -a2 |--o--| b2 >----o   
          ^           |            ^   
          |          1/z           |   
          |           |            |   
          o--< -a3 |--o--| b3 >----o   
The Cebuano Geek

Philippine Electronics Forum

Re: DSP in SciLAB
« Reply #42 on: March 28, 2012, 01:41:02 PM »

Offline ΔЅịMø

  • Gas Turbine
  • **
  • Posts: 2903
  • Pogi/Ganda Points: 140
  • Gender: Male
  • "Live Curious"
Re: DSP in SciLAB
« Reply #43 on: March 28, 2012, 02:08:02 PM »
Here was the diagram in SciLAB's XCOS po sir:








Kaya lang po sir, NO OUTPUT po sya. :(



Computer Engineering National Organization registration thread


Philippine Electronics Forum

Re: DSP in SciLAB
« Reply #43 on: March 28, 2012, 02:08:02 PM »

Offline zer0w1ng

  • Technical People
  • Gas Turbine
  • *****
  • Posts: 2179
  • Pogi/Ganda Points: 305
  • Gender: Male
  • Enter any 11-digit prime number to continue...
    • The Cebuano Geek
Re: DSP in SciLAB
« Reply #44 on: March 28, 2012, 02:10:42 PM »
It may have no output because it may have been filtered out.
As you know, this is an IIR filter and either it increases or decreases the response depending on the frequency of the input.

As stated by others too, an impulse input maybe better to check your filter for oscillations or response.

Try changing the frequency of the input and see the result.
The Cebuano Geek

Philippine Electronics Forum

Re: DSP in SciLAB
« Reply #44 on: March 28, 2012, 02:10:42 PM »

Offline ΔЅịMø

  • Gas Turbine
  • **
  • Posts: 2903
  • Pogi/Ganda Points: 140
  • Gender: Male
  • "Live Curious"
Re: DSP in SciLAB
« Reply #45 on: March 28, 2012, 02:18:44 PM »
Pinalitan ko na po yung magnitude from 1 to 20, 50, 100, 500 sir. But, wala pong output.

But, if ito pong diagram na to yung gagamitin ko sir






meron po syang output. About 2 po yung magnitude nya sir.
Computer Engineering National Organization registration thread


Offline zer0w1ng

  • Technical People
  • Gas Turbine
  • *****
  • Posts: 2179
  • Pogi/Ganda Points: 305
  • Gender: Male
  • Enter any 11-digit prime number to continue...
    • The Cebuano Geek
Re: DSP in SciLAB
« Reply #46 on: March 28, 2012, 02:28:06 PM »
Why are you changing the magnitude?
It should be the *FREQUENCY*.

Your above diagram is wrong that is why there is a difference in output.

Please note that having *NO OUPUT* might be the *CORRECT* response of your filter because it may be removing that specific frequency on your input.


The Cebuano Geek

Offline ΔЅịMø

  • Gas Turbine
  • **
  • Posts: 2903
  • Pogi/Ganda Points: 140
  • Gender: Male
  • "Live Curious"
Re: DSP in SciLAB
« Reply #47 on: March 28, 2012, 02:29:41 PM »
Sorry sir. Frequency pala. :) Mali lang po.

Possible din po pala na wala pong output na ipapalabas ang filter sir?
Computer Engineering National Organization registration thread


Offline ΔЅịMø

  • Gas Turbine
  • **
  • Posts: 2903
  • Pogi/Ganda Points: 140
  • Gender: Male
  • "Live Curious"
Re: DSP in SciLAB
« Reply #48 on: March 28, 2012, 02:51:47 PM »
As i simulate the diagram in cascaded output sir, here is the result with a frequency=80.






Legend:

GREEN COLORED WAVE = OUTPUT
BLACK COLORED WAVE = INPUT


Computer Engineering National Organization registration thread


Offline ΔЅịMø

  • Gas Turbine
  • **
  • Posts: 2903
  • Pogi/Ganda Points: 140
  • Gender: Male
  • "Live Curious"
Re: DSP in SciLAB
« Reply #49 on: March 28, 2012, 04:18:55 PM »
Sir zero, tapos ko na po. Salamat po sa tulong and patience. ;D +1 po.
Computer Engineering National Organization registration thread


Offline your most RIDICULOUS man :)

  • Diesel Generator
  • *
  • Posts: 1839
  • Pogi/Ganda Points: 53
  • Gender: Male
Re: DSP in SciLAB
« Reply #50 on: June 11, 2012, 03:25:48 PM »
Genius! :D
God give us the grace to accept with serenity the things that cannot be changed, courage to change the things which should be changed and the wisdom to distinguish the one from the other [Reinhold Niebuhr]

Offline ΔЅịMø

  • Gas Turbine
  • **
  • Posts: 2903
  • Pogi/Ganda Points: 140
  • Gender: Male
  • "Live Curious"
Re: DSP in SciLAB
« Reply #51 on: June 11, 2012, 03:33:54 PM »
Genius! :D

At binuhay ulit. ;D ;D ;D

Di ko lang i-la-lock para kung amy magtatanong pa about SciLAB, pwede sila dito. :D
Computer Engineering National Organization registration thread


Offline your most RIDICULOUS man :)

  • Diesel Generator
  • *
  • Posts: 1839
  • Pogi/Ganda Points: 53
  • Gender: Male
Re: DSP in SciLAB
« Reply #52 on: June 11, 2012, 04:48:09 PM »
galeng talaga..
God give us the grace to accept with serenity the things that cannot be changed, courage to change the things which should be changed and the wisdom to distinguish the one from the other [Reinhold Niebuhr]

Offline centOS

  • Lead Acid Battery
  • *******
  • Posts: 639
  • Pogi/Ganda Points: 45
  • screw the screw
Re: DSP in SciLAB
« Reply #53 on: June 14, 2012, 11:20:32 AM »
very nice sir galing mo ;) lalo na si sir Zero :D
Jesus is like a software. He enters your life, scan your problems, edits your tension, downloads solutions, deletes your worries & saves you...

Philippine Electronics Forum

Re: DSP in SciLAB
« Reply #53 on: June 14, 2012, 11:20:32 AM »

 

Privacy Policy

Contact Us: elabph@yahoo.com