Home > Community > Forums > RF Design > Ocean script for printing S11 in dB into .csv file in scientific format

Email

* Required Fields

Recipients email * (separate multiple addresses with commas)

Your name *

Your email *

Message *

Contact Us

* Required Fields
First Name *

Last Name *

Email *

Company / Institution *

Comments: *

 Ocean script for printing S11 in dB into .csv file in scientific format 

Last post Wed, Aug 29 2012 12:09 PM by RFQuery. 1 replies.
Started by RFQuery 28 Aug 2012 12:42 PM. Topic has 1 replies and 1107 views
Page 1 of 1 (2 items)
Sort Posts:
  • Tue, Aug 28 2012 12:42 PM

    • RFQuery
    • Top 75 Contributor
    • Joined on Wed, Jul 20 2011
    • Posts 89
    • Points 1,270
    Ocean script for printing S11 in dB into .csv file in scientific format Reply

     Dear all,

    I am trying to print the .sp analysis ( S11) in dB format into a .csv file in scientific format.

    The code is as below.

    S11=sp(1 1)

    S11=20*log10(sp(1 1))

    s11_db20=S11
    plot(s11_db20)
    ocnPrint(?output "./S11.csv"  'scientific s11_db20)

    But it is neither converting the S11 into desired dB value ( actually it is plotting correct magnitude value of S11 but it is not giving correct dB values) nor it is printing in scientific format into the file. It is actually printing in default format.

    Can anybody please tell how it can be fixed.

    Kind regards,

    • Post Points: 5
  • Wed, Aug 29 2012 12:09 PM

    • RFQuery
    • Top 75 Contributor
    • Joined on Wed, Jul 20 2011
    • Posts 89
    • Points 1,270
    Re: Ocean script for printing S11 in dB into .csv file in scientific format Reply

     Dear All,

    I found the issue with ocnPrint( ).  I should have added ?numberNotation before   'scientific.

    • Post Points: 5
Page 1 of 1 (2 items)
Sort Posts:
Started by RFQuery at 28 Aug 2012 12:42 PM. Topic has 1 replies.