Main Content

mdlxLibrary

Create Modelithics library object

Since R2023a

    Description

    Use the mdlxLibrary object to create an object that supports Modelithics SELECT+ Library™ for passive components. Before you create a mdlxLibrary object, you must set up the Modelithics® library using the mdlxSetup function.

    Note

    This object requires a Modelithics SELECT+ Library or a Modelithics Exemplar Library license. For more information, see Modelithics Libraries for MATLAB.

    Creation

    Description

    Lobj = mdlxLibrary creates a Modelithics library object.

    example

    Lobj = mdlxLibrary(LibPath) creates a Modelithics library object with the Modelithics library located specified in LibPath and sets the LibraryPath property.

    Input Arguments

    expand all

    Modelithics library folder path, specified as a string scalar.

    Example: mdlx = mdlxLibrary('C:\MDLX\SELECT')

    Properties

    expand all

    This property is read-only.

    List of available component type in the Modelithics SELECT+ Library or Modelithics Exemplar Library, returned as a cell array.

    This property is read-only.

    List of available vendor names in the Modelithics SELECT+ Library or Modelithics Exemplar Library, returned as a cell array.

    This property is read-only.

    List of available substrate types in the Modelithics SELECT+ Library or Modelithics Exemplar Library, returned as a cell array.

    This property is read-only.

    Modelithics library folder path, returned as a character vector.

    Object Functions

    searchSearch Modelithics component of interest

    Examples

    collapse all

    Set up Modelithics SELECT+ Library™.

    mdlxSetup('C:\mdlx_library\SELECT')
    

    Create a new Modelithics library object related to the library you set up.

    mdlx = mdlxLibrary;
    

    Search the library for a component that you can mount on the Rogers4350B4mil substrate with the vendor name ATC.

    search(mdlx,'Rogers4350B4mil',Vendor='ATC')
    

    search-mdlx.png search-substrate.png

    The ATC 600S capacitor on a 4 mil Roger 4350B substrate fits the search criteria. Create a Modelithics component object that matches these characteristics.

    pobj = mdlxPart(mdlx,'600S','Capacitors','ATC','Rogers4350B4mil',Value=1.2e-12);
    

    Create a circuit named C_ATC_600S_Rogers4350B4mil.

    hckt = circuit('C_ATC_600S_Rogers4350B4mil')
    

    ckt-mdlx.png

    Add the Modelithics component to the circuit.

    add(hckt,[1 2],pobj);
    

    Set the ports of the circuit.

    setports(hckt, [1 0],[2 0]);
    

    Display the Modelithics component.

    disp(pobj)
    

    mdlxpart.png

    Calculate the S-parameters of the circuit.

    S = sparameters(hckt,freq);
    

    Plot the S-parameters characteristics.

    figure;
    rfplot(S)
    

    sparameters-mdlx.png

    Version History

    Introduced in R2023a

    expand all