Welcome Guest! To enable all features please Login. New Registrations are disabled.

Notification

Icon
Error

Login


Options
Go to last post Go to first unread
Offline Bocato  
#1 Posted : 21 January 2020 06:27:40(UTC)
Bocato


Rank: Member

Groups: Registered
Joined: 08/12/2019(UTC)
Posts: 11

HI Everyone!

I am attempting to recreate these two graphs seen here
These both come from my source material that may be found here:

Source App Note

Thus far I have followed the app note exactly (to ensure I have something to check against), however I am having difficulty getting my graphs to mirror those of the APP note. Namely my Gain plot seen here:
This Gain plot seems to be negated from what I would expect.

The Impedance Plot seen here:

Is right in line with what I would expect however I am unable to figure out how to make the Log ohms Y axis and Log frequency based X axis.

My file may be found here: HELPED_Input_Filter_Test_V1.sm (182kb) downloaded 30 time(s).

Thank you all in advance,
Carlo

Wanna join the discussion?! Login to your SMath Studio Forum forum account. New Registrations are disabled.

Offline Jean Giraud  
#2 Posted : 21 January 2020 16:31:29(UTC)
Jean Giraud

Rank: Guest

Groups: Registered
Joined: 04/07/2015(UTC)
Posts: 6,868
Canada

Was thanked: 980 time(s) in 808 post(s)
1. The APP notes were done Mathcad 8 or later 2001i, 11
from lazy grid colors [horrible green].
2. First graph as before.
3. Not visible math expressions are for recycle bin.
4. NEVER carry units in maths as they are unit less.
5. Smath is not Mathcad clone.
6. Maybe your construction is not correct wrt APP Notes ???
I didn't check that ...

2DPlots ZedGraph log-log.sm (101kb) downloaded 58 time(s).

HELPED_Input_Filter_Test_V1 ... first graph doctored.sm (188kb) downloaded 32 time(s).
thanks 1 user thanked Jean Giraud for this useful post.
on 14/02/2020(UTC)
Offline mkraska  
#3 Posted : 29 January 2020 11:14:16(UTC)
mkraska


Rank: Advanced Member

Groups: Registered
Joined: 15/04/2012(UTC)
Posts: 1,980
Germany

Was thanked: 1120 time(s) in 718 post(s)
The Maxima plugin provides an interface to Gnuplot. This can be used to come pretty close to Mathcad plots.
You can set the minor grid to gray and remove the dashed line style, to have a more SMath-like appearance.
Note that the Draw2D() command is written in the input placeholder of an image region.

2020-01-29 09_04_46-SMath Studio 0.99.7251 - [HELPED_Input_Filter_Test_V1_Kr.sm_].png
HELPED_Input_Filter_Test_V1_Kr.sm (354kb) downloaded 50 time(s).
Martin Kraska

Pre-configured portable distribution of SMath Studio: https://smath.com/wiki/SMath_with_Plugins.ashx
thanks 4 users thanked mkraska for this useful post.
on 29/01/2020(UTC),  on 29/01/2020(UTC),  on 29/01/2020(UTC),  on 14/02/2020(UTC)
Offline Jean Giraud  
#4 Posted : 29 January 2020 19:01:59(UTC)
Jean Giraud

Rank: Guest

Groups: Registered
Joined: 04/07/2015(UTC)
Posts: 6,868
Canada

Was thanked: 980 time(s) in 808 post(s)
Originally Posted by: Bocato Go to Quoted Post
HI Everyone!

1. You refer to an application from source and the
first thing you do is freak the variables from source ... Why ?
2. Mathcad 8 was index ... like you try to imitate,
that's retarded because Smath is already in argument style s(j)
The main change from Mathcad 8 => 2001i was the change from
s[i [index style] => argument style s(j)
3. I couldn't make Zgraph work [spooky plugin]
... from there, some Collab might help ?

HELPED_Input_Filter_Test_V1 ... first graph doctored NEW.sm (126kb) downloaded 27 time(s).
thanks 1 user thanked Jean Giraud for this useful post.
on 14/02/2020(UTC)
Offline Razonar  
#5 Posted : 30 January 2020 04:35:20(UTC)
Razonar


Rank: Advanced Member

Groups: Registered
Joined: 28/08/2014(UTC)
Posts: 1,356
Uruguay

Was thanked: 815 time(s) in 516 post(s)
Originally Posted by: Bocato Go to Quoted Post
HI Everyone!
...

This Gain plot seems to be negated from what I would expect.
...


Hi Carlo. That's because you take log10 in the y-axis before plotting. I put images in the other post. Check the green lines in Mathcad plots. First plot isn't in log scale in the y-axis.

Best regards.
Alvaro
thanks 1 user thanked Razonar for this useful post.
on 14/02/2020(UTC)
Offline Jean Giraud  
#6 Posted : 30 January 2020 17:05:12(UTC)
Jean Giraud

Rank: Guest

Groups: Registered
Joined: 04/07/2015(UTC)
Posts: 6,868
Canada

Was thanked: 980 time(s) in 808 post(s)
Originally Posted by: Razonar Go to Quoted Post
This Gain plot seems to be negated from what I would expect.

You mean IMPEDANCE plot as per MCD 8
Impedance plot has a part negative from its quadratic.

next.PNG

HELPED_Input_Filter_Test_V1 ... first graph doctored NEW...next.sm (128kb) downloaded 17 time(s).

thanks 1 user thanked Jean Giraud for this useful post.
on 14/02/2020(UTC)
Offline Jean Giraud  
#7 Posted : 30 January 2020 18:58:53(UTC)
Jean Giraud

Rank: Guest

Groups: Registered
Joined: 04/07/2015(UTC)
Posts: 6,868
Canada

Was thanked: 980 time(s) in 808 post(s)
... I will leave it there ... which one of the 3 plots.
loglog plot is freaked to me [personal].

HELPED_Input_Filter_Test_V1 ... first graph doctored NEW...next.sm (133kb) downloaded 52 time(s).
thanks 1 user thanked Jean Giraud for this useful post.
on 14/02/2020(UTC)
Offline Bocato  
#8 Posted : 14 February 2020 05:36:00(UTC)
Bocato


Rank: Member

Groups: Registered
Joined: 08/12/2019(UTC)
Posts: 11

Well Guys after ALOT of struggling with Maxima (Which for whatever reason isnt working for me) I finally got ZEDgraph to work for me!

The Finished Document may be found here: SMPS_Input_Filter_Design_TI_APP_Note.sm (556kb) downloaded 174 time(s).
And I was finally able to recreate the graphs!










Again this is pretty much a direct recreation of the TI App note, but it served for a great learning experience!

I will be sure to PROPERLY post it under the samples area along with the app note

Thank you guys again!!! (Especially Jean/Razonar)
Offline Bocato  
#9 Posted : 14 February 2020 05:38:17(UTC)
Bocato


Rank: Member

Groups: Registered
Joined: 08/12/2019(UTC)
Posts: 11

Originally Posted by: Jean Giraud Go to Quoted Post
... I will leave it there ... which one of the 3 plots.
loglog plot is freaked to me [personal].

HELPED_Input_Filter_Test_V1 ... first graph doctored NEW...next.sm (133kb) downloaded 52 time(s).


Well it turns out that I was taking a doulbe LOG of the graph! Silly Me!
Users browsing this topic
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.