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.
웹사이트 선택
번역된 콘텐츠를 보고 지역별 이벤트와 혜택을 살펴보려면 웹사이트를 선택하십시오. 현재 계신 지역에 따라 다음 웹사이트를 권장합니다:
또한 다음 목록에서 웹사이트를 선택하실 수도 있습니다.
사이트 성능 최적화 방법
최고의 사이트 성능을 위해 중국 사이트(중국어 또는 영어)를 선택하십시오. 현재 계신 지역에서는 다른 국가의 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)