Main Content

partrepo.collection.listDataSetsForBlock

R2026b

Lists available parts for block

Since R2026a

    Description

    partsTable = partrepo.collection.listDataSetsForBlock(blockName) lists the available parts for the specified block.

    example

    Examples

    collapse all

    This example shows how to display the available parts for the DC Motor (Simscape Electrical) block, which belongs to the Simscape Electrical part collection.

    Suppose you have a model titled MyElectricalModel that contains a DC Motor block. To see the available parts, enter:

    DCMotorPartsTable = partrepo.collection.listDataSetsForBlock("MyElectricalModel/DC Motor")
    DCMotorPartsTable =
    
      326×12 table
    
             CollectionId                                PartId                           Manufacturer      Part number       Rated power (W)    Motor type    Voltage (V)    Weight (g)    No-Load speed (rpm)    Rated current (A)    Rated speed (rpm)    Rated torque (mN*m)
        _______________________    ___________________________________________________    ____________    ________________    _______________    __________    ___________    __________    ___________________    _________________    _________________    ___________________
    
        "MW.SimscapeElectrical"    "AMETEK|9237S011_R1_SP|simscape.electrical.dcMotor"     "AMETEK"       "9237S011_R1_SP"           37            "PMDC"          24             510               5230                  2.4                 4370                     85       
        "MW.SimscapeElectrical"    "AMETEK|DC040A_2|simscape.electrical.dcMotor"           "AMETEK"       "DC040A_2"                  5            "PMDC"          24             440               5371                  0.7                 4192                   17.6       
        "MW.SimscapeElectrical"    "AMETEK|GM8224S028|simscape.electrical.dcMotor"         "AMETEK"       "GM8224S028"              1.4            "PMDC"          24             244               4638                 0.61                 2001                 9.1783       
        "MW.SimscapeElectrical"    "AMETEK|GM9234S023_R1|simscape.electrical.dcMotor"      "AMETEK"       "GM9234S023_R1"            13            "PMDC"          24             482             4710.9                  1.3                 3516                   44.4       
        "MW.SimscapeElectrical"    "AMETEK|GM9236S020_R1|simscape.electrical.dcMotor"      "AMETEK"       "GM9236S020_R1"            23            "PMDC"          24             567               4787                  1.9                 3920                 68.274       
    
                   :                                        :                                  :                 :                   :               :              :             :                  :                     :                    :                     :         
    
        "MW.SimscapeElectrical"    "ebmpaps|BCI_52_60_B00|simscape.electrical.dcMotor"     "ebmpaps"      "BCI_52_60_B00"            55            "PMDC"          24            1100               3500                    3                 3100                    170       
        "MW.SimscapeElectrical"    "ebmpaps|BCI_63_25_A00|simscape.electrical.dcMotor"     "ebmpaps"      "BCI_63_25_A00"            46            "PMDC"          12            1200               3600                  5.4                 3150                    140       
        "MW.SimscapeElectrical"    "ebmpaps|BCI_63_25_B00|simscape.electrical.dcMotor"     "ebmpaps"      "BCI_63_25_B00"            46            "PMDC"          24            1200               3600                  2.7                 3150                    140       
        "MW.SimscapeElectrical"    "ebmpaps|BCI_63_55_A00|simscape.electrical.dcMotor"     "ebmpaps"      "BCI_63_55_A00"            85            "PMDC"          12            1700               3600                  8.6                 3000                    270       
        "MW.SimscapeElectrical"    "ebmpaps|BCI_63_55_B00|simscape.electrical.dcMotor"     "ebmpaps"      "BCI_63_55_B00"            93            "PMDC"          24            1700               3600                  4.9                 3300                    270       
    
    	Display all 326 rows.

    Input Arguments

    collapse all

    Simscape block for which to list the available parts, specified as a string scalar, character vector, or block handle.

    Output Arguments

    collapse all

    Parts available to apply to the block, returned as a table. If this input argument is a block that belongs to the Simscape Electrical, Simscape Battery, Simscape Fluids, or Simscape Driveline part collections, the output table includes the available metadata for the part.

    Version History

    Introduced in R2026a

    expand all