## Re: [Qucs-devel] Extra Schematic for Sparameter

 Re: [Qucs-devel] Extra Schematic for Sparameter From: Fredy Konig - 2007-10-30 23:06:35 ```Thanks Stefan > > BTW: I've seen you were using rad2deg(angle()). You can use phase() > instead. I have tried with phase() to get the angle in degrees but it doesn't seem to work ... I have just checked again, It worked But it gives me a negative peak in the middle. I had to resize manually to re-adjust the scale. This peak shouldn't be there?? I don't have it when using rad. If I look at the peak in a table it corresponds to a fast change in the angle from -179 to +179 degrees and If I look at the angle in rad it also changes from -3.12 to 3.12 (which is correct) But the differential equation gives two diferent results at these points whether we use radian or degree... I will sleep on it.... see the schematic below <.SP SP1 1 60 280 0 78 0 0 "log" 1 "1MHz" 1 "100MHz" 1 "200" 1 "no" 0 "1" 0 "2" 0 "no" 0 "no" 0> <100 110 100 160 "" 0 0 0 ""> <100 110 210 110 "" 0 0 0 ""> <210 110 210 160 "" 0 0 0 ""> <350 110 350 160 "" 0 0 0 ""> <210 110 250 110 "" 0 0 0 ""> <310 110 350 110 "" 0 0 0 ""> <460 110 460 160 "" 0 0 0 ""> <350 110 460 110 "" 0 0 0 ""> <690 110 690 160 "" 0 0 0 ""> <690 110 800 110 "" 0 0 0 ""> <800 110 800 160 "" 0 0 0 ""> <940 110 940 160 "" 0 0 0 ""> <800 110 840 110 "" 0 0 0 ""> <900 110 940 110 "" 0 0 0 ""> <1050 110 1050 160 "" 0 0 0 ""> <940 110 1050 110 "" 0 0 0 ""> <"dBS21" #0000ff 0 3 0 0 0> <"GroupDelay" #ff0000 0 3 0 0 1> <"GroupDelay2" #ff00ff 2 3 0 1 1> <"dBS21_Cheby" #0000ff 0 3 0 0 0> <"GroupDelay_cheby" #ff0000 0 3 0 0 1> <"GroupDelay" #0000ff 0 3 1 0 0> <"GroupDelay2" #0000ff 0 3 1 0 0> <"angle_deg" #0000ff 0 3 0 0 0> <"angle_rad" #0000ff 0 3 0 0 0> ```

### Thread view

 [Qucs-devel] Extra Schematic for Sparameter From: Fredy Konig - 2007-10-30 21:31:04 Attachments: Message as HTML     FilterGroupDelay.sch
 Re: [Qucs-devel] Extra Schematic for Sparameter From: Stefan Jahn - 2007-10-30 21:45:37 ```Am Di, 30.10.2007, 22:30, schrieb Fredy Konig: > Hi Guys Hi Fredy, > I am not sure where to send the schematic to. > > You can add this new schematic to the site > It s a Group delay example for two different low pass filters I've already done that, based on your examples.. BTW: I've seen you were using rad2deg(angle()). You can use phase() instead. > Also I am trying to understand how to program qucs on my ubuntu PC, > I programmed before in Eclipse for java and with Visualstudio for M\$ > visualC, But I am not used > of the gcc yet, and it seems to worry me with all the configure and make > files. To get CVS see: ; For build instructions: ; Hope this helps, Stefan. ```
 Re: [Qucs-devel] Extra Schematic for Sparameter From: Fredy Konig - 2007-10-30 23:06:35 ```Thanks Stefan > > BTW: I've seen you were using rad2deg(angle()). You can use phase() > instead. I have tried with phase() to get the angle in degrees but it doesn't seem to work ... I have just checked again, It worked But it gives me a negative peak in the middle. I had to resize manually to re-adjust the scale. This peak shouldn't be there?? I don't have it when using rad. If I look at the peak in a table it corresponds to a fast change in the angle from -179 to +179 degrees and If I look at the angle in rad it also changes from -3.12 to 3.12 (which is correct) But the differential equation gives two diferent results at these points whether we use radian or degree... I will sleep on it.... see the schematic below <.SP SP1 1 60 280 0 78 0 0 "log" 1 "1MHz" 1 "100MHz" 1 "200" 1 "no" 0 "1" 0 "2" 0 "no" 0 "no" 0> <100 110 100 160 "" 0 0 0 ""> <100 110 210 110 "" 0 0 0 ""> <210 110 210 160 "" 0 0 0 ""> <350 110 350 160 "" 0 0 0 ""> <210 110 250 110 "" 0 0 0 ""> <310 110 350 110 "" 0 0 0 ""> <460 110 460 160 "" 0 0 0 ""> <350 110 460 110 "" 0 0 0 ""> <690 110 690 160 "" 0 0 0 ""> <690 110 800 110 "" 0 0 0 ""> <800 110 800 160 "" 0 0 0 ""> <940 110 940 160 "" 0 0 0 ""> <800 110 840 110 "" 0 0 0 ""> <900 110 940 110 "" 0 0 0 ""> <1050 110 1050 160 "" 0 0 0 ""> <940 110 1050 110 "" 0 0 0 ""> <"dBS21" #0000ff 0 3 0 0 0> <"GroupDelay" #ff0000 0 3 0 0 1> <"GroupDelay2" #ff00ff 2 3 0 1 1> <"dBS21_Cheby" #0000ff 0 3 0 0 0> <"GroupDelay_cheby" #ff0000 0 3 0 0 1> <"GroupDelay" #0000ff 0 3 1 0 0> <"GroupDelay2" #0000ff 0 3 1 0 0> <"angle_deg" #0000ff 0 3 0 0 0> <"angle_rad" #0000ff 0 3 0 0 0> ```
 Re: [Qucs-devel] Extra Schematic for Sparameter From: Stefan Jahn - 2007-10-31 07:52:05 ```Am Mi, 31.10.2007, 00:06, schrieb Fredy Konig: > Thanks Stefan Hello fredy, >> BTW: I've seen you were using rad2deg(angle()). You can use phase() >> instead. > > I have tried with phase() to get the angle in degrees but it doesn't > seem to work > ... I have just checked again, > > It worked But it gives me a negative peak in the middle. I had to > resize manually to re-adjust the scale. > This peak shouldn't be there?? I don't have it when using rad. > > If I look at the peak in a table it corresponds to a fast change in > the angle from -179 to +179 degrees > and If I look at the angle in rad it also changes from -3.12 to 3.12 > (which is correct) > > But the differential equation gives two diferent results at these > points whether we use radian or degree... > > I will sleep on it.... > see the schematic below Hm. I just checked it. Apparently unwrap only works for radian arguments. Though you can use e.g. unwrap(phase, 180); it just specifies the tolerance to detect the phase/angle step, but always corrects the phase/angle then by 2*pi, not 2*180... I just think about to add another argument to unwrap(), thus both tolerance and correction step can be given. What do you think? Thanks, Stefan. ```