Iterator Subsystems
Iterator Subsystem은 제어 블록에 의해 활성화될 때 현재 시간 스텝에서 한 번 이상 실행됩니다. 제어 블록은 프로그래밍 언어의 루프 구문(예: while
, for
)으로 표현한 것과 유사하게 제어 논리를 구현합니다.
While Iterator Subsystem 블록을 사용하여 논리 조건이 true인 동안 알고리즘을 반복 실행합니다.
For Iterator Subsystem 블록을 사용하여 반복 변수가 지정된 반복 한도 횟수를 초과할 때까지 알고리즘을 반복 실행합니다.
For Each Subsystem 블록을 사용하여 입력 신호의 개별 요소나 부분배열 또는 마스크 파라미터에 알고리즘을 적용합니다.
Neighborhood Processing Subsystem 블록을 사용하여 이웃 패턴을 따르는 알고리즘을 적용합니다.
상태가 있는 For Each Subsystem 내의 각 블록은 서브시스템에서 처리하는 요소 또는 부분배열마다 별도의 상태 집합을 유지합니다. 대조적으로 While Iterator Subsystem과 For Iterator Subsystem 내의 블록은 서브시스템이 연속적으로 반복되는 동안 동일한 상태를 사용합니다. Neighborhood Processing Subsystem에는 상태가 없습니다.
블록
While Iterator Subsystem | 시뮬레이션 시간 스텝 동안 논리식이 true이면 서브시스템 실행 반복 |
For Iterator Subsystem | 시뮬레이션 시간 스텝 동안 지정된 반복 횟수만큼 서브시스템 실행 반복 |
For Each Subsystem | Apply algorithm to individual elements or subarrays of input signals or mask parameters |
Neighborhood Processing Subsystem | Create algorithm that follows the neighborhood pattern |
도움말 항목
- Iterate Subsystem Execution with While Iterator and For Iterator Subsystems
Execute subsystem multiple times during time step in response to control block.
- Repeat an Algorithm Using a For-Each Subsystem
Iterate algorithm over groups of signals, subsystems, and parameters.
- Log Signals in For-Each Subsystems
Use signal logging in For Each subsystems.
- Create Model That Performs Neighborhood Processing
Blur an image by using Neighborhood Processing Subsystem blocks.
- Specify Region of Interest for Neighborhood Processing
Configure a Neighborhood Processing Subsystem block to iterate over a subsection of an input matrix.
- Use Neighborhood Processing Subsystem Block Padding Options with Region of Interest
You can configure the Neighborhood Processing Subsystem block to pad values outside the input matrix using different padding methods.