모델 내 사용된 모든 block 이름 data type을 한번에 볼수 있는 방법?

7 visualizaciones (últimos 30 días)
MathWorks Support Team
MathWorks Support Team el 14 de Sept. de 2020
Editada: MathWorks Support Team el 19 de Feb. de 2025
Simulink 모델에서, 사용된 모든 block 이름 data type을 한번에 볼수 있는 방법이 있을까요?

Respuesta aceptada

MathWorks Support Team
MathWorks Support Team el 24 de En. de 2025
Editada: MathWorks Support Team el 19 de Feb. de 2025
말씀하신 사항은 간단히 Model Explorer 창에서 확인이 가능합니다.
자세한 내용은 다음 명령어를 사용하여 MATLAB R2020a의 명령 창에서 실행하시면 해당 문서를 확인할 수 있습니다:
>> web(fullfile(docroot, 'simulink/slref/modelexplorer.html'))
또한 find_system 명령어 사용으로도 확인이 가능합니다.
자세한 내용은 다음 명령어를 사용하여 MATLAB R2020a의 명령 창에서 실행하시면 해당 문서를 확인할 수 있습니다:
>> web(fullfile(docroot, 'simulink/slref/find_system.html'))
예시)
open_system('vdp') % Compile the vdp model vdp([],[],[],'compile'); % Find all blocks in model allBlocks = find_system('vdp','Type','Block') % Loop through all blocks for i = 1:numel(allBlocks) lh = get_param(allBlocks{i},'PortHandles'); outports = lh.Outport; % Loop through all output ports for j = 1:numel(outports) dataType = get(outports(j),'CompiledPortDataType'); % Display the data type disp([allBlocks{i} ' output port ' num2str(j) ': ' dataType]); end end % Terminate vdp([],[],[],'term')
Please follow the below link to search for the required information regarding the current release:

Más respuestas (0)

Categorías

Más información sobre 모델링 en Help Center y File Exchange.

Etiquetas

Aún no se han introducido etiquetas.

Productos


Versión

R2020a

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!