Main Content

read

Read RF data from file to new or existing circuit or data object

Description

example

h = read(rfcktobj,filename) creates an RF circuit object h, reads the RF data from the specified file, and stores it in h

Example: h = read(rfckt.passive,filename)creates an rfckt.passive object h, reads the RF data from the specified file, and stores it in h.

Examples

collapse all

Import data from the file default.amp into an rfckt.amplifier object.

ckt_obj=read(rfckt.amplifier, 'default.amp')
ckt_obj = 
   rfckt.amplifier with properties:

         NoiseData: [1x1 rfdata.noise]
     NonlinearData: [1x1 rfdata.power]
          IntpType: 'Linear'
       NetworkData: [1x1 rfdata.network]
             nPort: 2
    AnalyzedResult: [1x1 rfdata.data]
              Name: 'Amplifier'

Input Arguments

collapse all

Object that contains sufficient information to read the files, specified as an RF circuit object. You can read data from an .snp, .ynp, .znp, .hnp, .gnp, or .amp file extension, where n is the number of ports.

Example: h = read(rfckt.amplifier,filename) creates an rfckt.amplifier object h, reads the RF data from the specified file, and stores it in h.

Note

If h is an rfckt.amplifier, rfckt.mixer, or rfdata.data object, you can also read data from .p2d and .s2d files.

File name of an .snp, .ynp, .znp, .hnp, .gnp, or .amp file extension, where n is the number of ports, specified as a character vector.

For an example of how to use RF Toolbox™ software to read data from a .s2d file, see Visualize Mixer Spurs.

Example: h = read(rfckt.mixer,filename) creates an rfckt.mixer object h, reads the RF data from the specified file, and stores it in h.

Note

  • For all files, the file name must include the file extension.

  • If h is an rfckt.amplifier, rfckt.mixer, or rfdata.data object, you can also read data from .p2d and .s2d files.

Output Arguments

collapse all

Object that contains information from the files read, returned as an RF circuit object.

Example: h = read(rfckt.datafile,filename)creates an rfckt.datafile object h, reads the RF data from the specified file, and stores it in h.

Data Types: char | string

References

[1] EIA/IBIS Open Forum, “ Touchstone File Format Specification,” Rev. 1.1, 2002 (https://ibis.org/connector/touchstone_spec11.pdf)

Version History

Introduced before R2006a