Main Content

setTouchstoneReader

Configure S-parameter file reader for Touchstone 2.0 files

Since R2024b

    Description

    setTouchstoneReader(comments) configures the S-parameter file reader for Touchstone 2.0 files to either ignore or detect invalid characters in the comments of the Touchstone file.

    setTouchstoneReader(comments,persist) controls the persistence behavior of the S-parameter file reader across MATLAB® sessions.

    example

    Examples

    collapse all

    Configure the S-parameter file reader for Touchstone 2.0 files to ignore invalid characters in the comments of the Touchstone file.

    Run this command in MATLAB® command line to control the persistence behavior of the S-parameter file reader to ensure that ignoring invalid characters in the comments of the Touchstone file applies only to the currently open MATLAB session.

    setTouchstoneReader('IgnoreComments',false)
    

    Input Arguments

    collapse all

    Ignore or detect invalid characters in the comments, specified one of these:

    • 'IgnoreComments' — The function does not parse comments in the Touchstone 2.0 file and ignores invalid characters in the comments.

    • 'ParseComments' — The function parses comments in the Touchstone 2.0 file and outputs errors if it detects if invalid characters in the comments of the Touchstone file.

    Note

    Setting comments to 'IgnoreComments' is not recommended because it makes your Touchstone 2.0 files non-compliant with IBIS Touchstone standards, and increases parsing times.

    Example: 'IgnoreComments'

    Control the persistence behavior of the S-parameter file reader across MATLAB sessions, specified as one of these:

    • true or 1 — The function applies the configuration specified in comments to any new sessions of MATLAB.

    • false or 0 — The function applies the configuration specified in comments will only be applied to the currently open MATLAB session.

    Example: false

    Version History

    Introduced in R2024b

    See Also