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.
Web サイトの選択
Web サイトを選択すると、翻訳されたコンテンツにアクセスし、地域のイベントやサービスを確認できます。現在の位置情報に基づき、次のサイトの選択を推奨します:
また、以下のリストから Web サイトを選択することもできます。
最適なサイトパフォーマンスの取得方法
中国のサイト (中国語または英語) を選択することで、最適なサイトパフォーマンスが得られます。その他の国の MathWorks のサイトは、お客様の地域からのアクセスが最適化されていません。
南北アメリカ
- América Latina (Español)
- Canada (English)
- United States (English)
ヨーロッパ
- 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)