Trouble Graphing Indexed Values

Trouble Graphing Indexed Values - Graphing Indexed Values - Сообщения

#1 Опубликовано: 18.01.2020 18:34:50
bocatto

bocatto

0 сообщений из 11 понравились пользователям.

Группа: User

Hi Everyone!

I am having some issues with graph indexed values in SMATH.

I am currently attempting to copy this app note here:
APP NOTE

In an attempt practice my smath.

My file may be found here V2_Input_Filter_Test.sm (81 КиБ) скачан 57 раз(а).

I am currently stuck on attempting to replicate page 14-15 of the TI APP note.

this boils down to 3 questions:
[list]
  • While i am attempting to define an index value, i get a persistent error even though the equation solves fine
  • I am still unsure as to how to what is the proper syntax on how to graph the transfer function
  • I am struggling to understand how why my new filter impedance is not graphing

    Thank you all in advance!
  • #2 Опубликовано: 19.01.2020 07:06:46
    Alvaro Diaz Falconi

    Alvaro Diaz Falconi

    992 сообщений из 1675 понравились пользователям.

    Группа: User

    Hi. Your issue is very small: you put some assignment 'j:=' in the sub-index, not globally.

    V2_Input_Filter_Test.sm (80 КиБ) скачан 66 раз(а).

    Best regards.
    Alvaro.
    2 пользователям понравился этот пост
    frapuano 19.01.2020 12:39:00, bocatto 20.01.2020 00:20:00
    #3 Опубликовано: 20.01.2020 10:17:13
    Jean Giraud

    Jean Giraud

    983 сообщений из 6866 понравились пользователям.

    Группа: User

    Wrote

    I am struggling to understand how why my new filter impedance is not graphing


    Does it plot on your SS version ?

    Does it work.PNG

    V2_Input_Filter_Test [or like tis in red].sm (69 КиБ) скачан 56 раз(а).
    #4 Опубликовано: 20.01.2020 23:06:49
    bocatto

    bocatto

    0 сообщений из 11 понравились пользователям.

    Группа: User

    Wrote

    Hi. Your issue is very small: you put some assignment 'j:=' in the sub-index, not globally.



    This is interesting to me... I saw that you were able to make the Z2_j variable match the Z1_j however whenever I attempt to re-type the Z2_j definition as soon as I imput the 1/(s_j * Cin) statement it puts that "j" in the sub-index and doesn't allow me to edit it in a meaningful way.

    So far the only way I have found to fix this is to put in like so: Z2 = "equation here"

    Then once I have the equation finished inputting the defining equation, I go back to the Z2 equation and make it into a vector element, i.e. Z2_j = "equation here"

    Must be a "feature" lol.
    #5 Опубликовано: 20.01.2020 23:53:23
    bocatto

    bocatto

    0 сообщений из 11 понравились пользователям.

    Группа: User

    Wrote

    Wrote

    I am struggling to understand how why my new filter impedance is not graphing


    Does it plot on your SS version ?



    When I downloaded the version that had those edits it showed that exact graph that you have posted.

    However, whenever I leave the values as i had them without vectoring them get the expected graph, which matches the TI app note. (see picture)

    Input_Impedance_Graph

    Now what really confuses me the Transfer function plot looks so different. I input it as the App note stated however the graph seems "negated" as opposed to what I would expect.

    Questionable Transfer Function

    Proper Transfer Function


    Any Ideas Ya'll?

    Thanks in advance,
    Carlo
    #6 Опубликовано: 21.01.2020 10:35:03
    Jean Giraud

    Jean Giraud

    983 сообщений из 6866 понравились пользователям.

    Группа: User

    Wrote

    Any Ideas Ya'll?


    Same as the other one ... see reply.
    Can't get that picture ?
    #7 Опубликовано: 22.01.2020 15:07:02
    Alvaro Diaz Falconi

    Alvaro Diaz Falconi

    992 сообщений из 1675 понравились пользователям.

    Группа: User

    Hi Carlo. You take twice log10. Just augment log10(f) and LC.filter.

    Best regards.
    Alvaro.
    #8 Опубликовано: 22.01.2020 18:32:49
    Jean Giraud

    Jean Giraud

    983 сообщений из 6866 понравились пользователям.

    Группа: User

    Wrote

    I am still unsure as to how to what is the proper syntax on how to graph the transfer function


    1. This is not XFR [Transfer Function], simply impedance.
    2. Dimension the components wrt SI system [see TI values]
    4. More help, re-post page 1 working from this document
    5. Your version is older than SS 6179 ...
    it does not have page # associated with the cursor.

    HELPED_Input_Filter_Test_V1 ... first graph doctored NEW.sm (245 КиБ) скачан 55 раз(а).
    #9 Опубликовано: 22.01.2020 21:12:50
    bocatto

    bocatto

    0 сообщений из 11 понравились пользователям.

    Группа: User

    Wrote

    Hi Carlo. You take twice log10. Just augment log10(f) and LC.filter.

    Best regards.
    Alvaro.



    Hi Alvaro,

    I believe that is what I did? (seriously asking here) See picture

    [albumimg]1602[/albumimg]
    #10 Опубликовано: 23.01.2020 02:09:22
    Alvaro Diaz Falconi

    Alvaro Diaz Falconi

    992 сообщений из 1675 понравились пользователям.

    Группа: User

    Hi. Not in that plot, in the previous:

    Bad: Two logs:

    twice.jpg

    Ok: One log:

    one.gif

    This other have the same shape, and seems to have the same values than the mathcad plot in the TI app note. Notice that this plot is log only in the x-axis, and the y axis isn't in the log scale in the plot just because you're plotting in dB

    mcplot.gif

    The last plot is log in both x and y axis. See the difference in the green lines. So, you correctly take there here log for both axis

    mcplot2.gif

    smplot.jpg

    Best regards.
    Alvaro
    2 пользователям понравился этот пост
    frapuano 23.01.2020 09:35:00, bocatto 25.01.2020 15:35:00
    #11 Опубликовано: 23.01.2020 09:37:25
    Jean Giraud

    Jean Giraud

    983 сообщений из 6866 понравились пользователям.

    Группа: User

    Wrote

    1. This is not XFR [Transfer Function], simply impedance.


    You can de-confuse yourself ...
    XFR are always Sigmoid shape, no matter the order of the system.
    They belong to Laplace domain system.

    Inst_XFR 2nd [XFR nth].sm (250 КиБ) скачан 53 раз(а).

    #12 Опубликовано: 29.01.2020 00:26:59
    bocatto

    bocatto

    0 сообщений из 11 понравились пользователям.

    Группа: User

    Thanks to Jean and Razonar I believe we can close this thread up! At least as it pertains to graphing indexed values.

    The resulting file may be found here for reference:
    HELPED_Input_Filter_Test_V1.sm (87 КиБ) скачан 56 раз(а).

    I have opened a thread here:

    Log based X and Y graph thread

    This will be an attempt to get my graphs to look more like the following
    [albumimg]1598[/albumimg]

    But hopefully without that horrible green.

    • Новые сообщения Новые сообщения
    • Нет новых сообщений Нет новых сообщений