partrepo.collection.listDataSetsForBlock
R2026bDescription
lists the available parts for the specified block.partsTable = partrepo.collection.listDataSetsForBlock(blockName)
Examples
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
Simscape block for which to list the available parts, specified as a string scalar, character vector, or block handle.
Output Arguments
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 R2026aIf you specify 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.
MATLAB Command
You clicked a link that corresponds to this MATLAB command:
Run the command by entering it in the MATLAB Command Window. Web browsers do not support MATLAB commands.
Website auswählen
Wählen Sie eine Website aus, um übersetzte Inhalte (sofern verfügbar) sowie lokale Veranstaltungen und Angebote anzuzeigen. Auf der Grundlage Ihres Standorts empfehlen wir Ihnen die folgende Auswahl: .
Sie können auch eine Website aus der folgenden Liste auswählen:
So erhalten Sie die bestmögliche Leistung auf der Website
Wählen Sie für die bestmögliche Website-Leistung die Website für China (auf Chinesisch oder Englisch). Andere landesspezifische Websites von MathWorks sind für Besuche von Ihrem Standort aus nicht optimiert.
Amerika
- América Latina (Español)
- Canada (English)
- United States (English)
Europa
- Belgium (English)
- Denmark (English)
- Deutschland (Deutsch)
- España (Español)
- Finland (English)
- France (Français)
- Ireland (English)
- Italia (Italiano)
- Luxembourg (English)
- Netherlands (English)
- Norway (English)
- Österreich (Deutsch)
- Portugal (English)
- Sweden (English)
- Switzerland
- United Kingdom (English)