Simulink.Mask 클래스
네임스페이스: Simulink
프로그래밍 방식으로 마스크 제어하기
설명
Simulink.Mask
클래스의 인스턴스를 사용하여 다음 작업을 수행할 수 있습니다.
마스크 생성, 복사 및 삭제.
마스크 파라미터 생성, 편집 및 삭제.
마스크를 소유한 블록 결정.
마스크에 대해 정의된 작업 공간 변수 가져오기.
속성
연결된 블록의 마스크 유형은 문자형 벡터 또는 string형으로 지정됩니다.
데이터형: char
| string
블록에 대한 설명으로, 문자형 벡터 또는 string형으로 지정됩니다.
데이터형: char
| string
마스크 처리된 블록에 대한 도움말 텍스트로, 문자형 벡터 또는 string형으로 지정됩니다.
데이터형: char
| string
마스크 처리된 블록에 대한 초기화 명령으로, 문자형 벡터 또는 string형으로 지정됩니다.
데이터형: char
| string
블록이 자신의 내용을 수정하도록 허용하는 옵션으로, 논리형으로 지정됩니다.
데이터형: logical
블록 아이콘에 대한 MATLAB 코드로, 문자형 벡터 또는 string형으로 지정됩니다.
데이터형: char
| string
블록 프레임의 가시성으로, 논리값으로 지정됩니다.
데이터형: logical
아이콘을 불투명하게 설정하는 옵션으로, 논리형으로 지정됩니다.
불투명: 아이콘을 불투명하게 설정합니다.
투명: 아이콘을 투명하게 설정합니다.
데이터형: logical
마스크 아이콘 명령을 실행하기 전에 마스크 초기화 명령을 실행하는 옵션으로, 열거형 데이터형으로 지정됩니다.
데이터형: enum
블록과 함께 아이콘을 회전하는 옵션으로, 열거형 데이터형으로 지정됩니다.
데이터형: enum
포트 회전 유형으로, 열거형 데이터형으로 지정됩니다. 이 속성을 default
로 설정하면 블록의 위쪽과 아래쪽에 있는 포트에 대해 왼쪽에서 오른쪽으로의 포트 번호 지정 순서를 유지하고 블록의 왼쪽과 오른쪽에 있는 포트에 대해 위쪽에서 아래쪽으로의 포트 번호 지정 순서를 유지하도록 포트가 시계 방향으로 회전된 후 재정렬됩니다. 이 속성을 physical
로 설정하면 포트가 블록과 함께 회전되며 시계 방향으로 회전된 후 재정렬되지 않습니다.
데이터형: enum
그리기 명령의 단위로, 열거형으로 지정됩니다. autoscale
은 블록 프레임에 맞게 아이콘 크기를 스케일링합니다. normalized
는 왼쪽 아래 코너가 (0,0)이고 오른쪽 위 코너가 (1,1)인 블록 프레임 내에 아이콘을 그립니다. 0에서 1까지의 X 값과 Y 값만 표시됩니다. 블록 크기를 조정하면 아이콘 크기도 조정됩니다. pixels
는 픽셀 단위로 표현된 X 값과 Y 값으로 아이콘을 그립니다. 블록의 크기를 조정할 때 아이콘의 크기는 자동으로 조정되지 않습니다.
데이터형: enum
별도의 MAT 파일에 마스크 초기화 코드와 콜백 코드가 있는 경우, 이 옵션을 사용하여 모델과 함께 콜백 파일을 저장할 수 있습니다. 논리값으로 지정됩니다.
데이터형: logical
마스크 초기화 코드와 콜백 코드를 포함하는 콜백 파일의 이름으로, 문자형 벡터 또는 string형으로 지정됩니다.
데이터형: char
| string
마스크 파라미터 속성으로, Simulink.MaskParameter
객체로 지정됩니다.
포트 식별자 속성으로, Simulink.Mask.PortIdentifiers
객체로 지정됩니다.
파라미터 제약 조건 규칙을 추가하거나 제거하는 옵션으로, Simulink.Mask.Constraints
객체로 지정됩니다.
파라미터 간의 제약 조건으로, Simulink.Mask.CrossParameterConstraints
로 지정됩니다.
포트 제약 조건을 추가하거나 제거하는 옵션으로, Simulink.Mask.PortConstraint
객체로 지정됩니다.
마스크 처리된 블록의 포트에 대한 제약 조건을 추가하거나 제거하는 옵션으로, Simulink.Mask.CrossPortConstraint
객체로 지정됩니다.
메서드
addCrossParameterConstraint | Add cross-parameter constraint |
addCrossPortConstraint | Create cross-port constraint among ports of the same masked block |
addCrossPortParameterConstraint | Create cross port parameter constraint between ports and parameters of same masked block |
addDialogControl | Add dialog control elements to mask dialog box |
addParameter | Add a parameter to a mask |
addParameterConstraint | Add parameter constraint to a mask |
addPortConstraint | Create port constraint on a mask object |
addPortConstraintAssociation | Associate port constraints to port identifiers |
addPortIdentifier | Creates a port identifier to identify port in mask |
copy | Copy mask from one block to another |
delete | 블록의 마스크를 해제하고 메모리에서 마스크 삭제 |
getAssociatedParametersOfConstraint | Get mask parameters associated with a constraint |
getCrossParameterConstraint | Get cross-parameter constraint |
getCrossPortConstraint | Display attributes of cross-port constraint |
getCrossPortParameterConstraint | Display attributes of cross port parameter constraint |
getDialogControl | Search for a specific dialog control on the mask |
getDialogControls | Retrieve root level containers from a masked block |
getOwner | Determine the block that owns a mask |
getParameter | 이름으로 마스크 파라미터 가져오기 |
getParameterConstraint | Get mask parameter constraint properties |
getPortConstraint | Displays attributes of specified port constraint |
getPortConstraintAssociation | Displays port identifiers associated with port constraint |
getPortIdentifier | Displays attributes of specified port identifier |
getWorkspace | Create mask workspace object |
getWorkspaceVariables | 마스크 처리된 블록의 마스크 작업 영역에 정의된 변수 가져오기 |
insertParameter | Create and insert mask parameter at a specified index |
isMaskWithDialog | Check if block mask contains dialog controls and parameters |
isSimpleMask | Check if block mask contains only mask dialog controls |
numParameters | Display number of parameters in a mask |
removeAllCrossParameterConstraints | Delete all cross-parameter constraints from a mask |
removeAllCrossPortConstraints | Remove all cross-port constraints from mask object |
removeAllCrossPortParameterConstraints | Remove all cross port parameter constraints from mask object |
removeAllParameterConstraints | Delete all mask parameter constraints |
removeAllParameters | Remove all existing parameters from a mask |
removeAllPortConstraintAssociation | Removes the associations of all port constraints from mask |
removeAllPortConstraints | Remove all port constraints on masked block |
removeAllPortIdentifiers | Removes all port identifiers from mask object |
removeCrossParameterConstraint | Delete a cross-parameter constraint |
removeCrossPortConstraint | Remove cross-port constraint |
removeCrossPortParameterConstraint | Remove cross port parameter constraint |
removeDialogControl | Remove dialog control from mask dialog box |
removeParameter | Remove parameter from mask dialog box |
removeParameterConstraint | Delete a mask parameter constraint |
removePortConstraint | Remove specified port constraint |
removePortConstraintAssociation | Remove association between port constraint and port identifiers |
removePortIdentifier | Removes specified port identifier from mask object |
set | |
Simulink.Mask.create | Create a mask on a Simulink block |
get | 지정된 블록으로부터 마스크 반환 |
버전 내역
R2010a에 개발됨
참고 항목
Simulink.MaskParameter
| Simulink.Mask.Constraint
| Simulink.Mask.PortConstraint
| Simulink.Mask.PortConstraintRule
| Simulink.Mask.PortIdentifier
| Simulink.Mask.CrossPortConstraint
| Simulink.Mask.CrossPortParameterConstraint
| Simulink.Mask.SharedConstraintFile
| Control Masks Programmatically | 블록 마스크 작성하기
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)