Main Content

이 번역 페이지는 최신 내용을 담고 있지 않습니다. 최신 내용을 영문으로 보려면 여기를 클릭하십시오.

상태 및 천이 구문

동작 및 조건을 사용하여 차트 작동 방식 표현

상태 간 천이가 발생하는 시점과 동작이 실행되는 시점을 지정하여 Stateflow® 차트의 실행을 제어합니다. 이벤트를 브로드캐스트하여 상태 실행을 동기화합니다. 데이터 값에서 변경을 감지하고 차트 실행 중에 어느 상태가 활성 상태인지 검사합니다.

블록

모두 확장

ChartImplement control logic with finite state machine
State Transition TableRepresent modal logic in tabular format
Truth TableRepresent logical decision-making behavior with conditions, decisions, and actions

Stateflow 구문

모두 확장

변경 감지

changeGenerate implicit event when data changes value
hasChangedDetect change in data since last time step
hasChangedFromDetect change in data from specified value
hasChangedToDetect change in data to specified value

경계 검출

crossingDetect rising or falling edge in data since last time step
fallingDetect falling edge in data since last time step
risingDetect rising edge in data since last time step

메시지 활동

discardDiscard message
forwardForward message
isvalidDetermine if message is valid
lengthDetermine length of message queue
receiveExtract message from queue
sendBroadcast message or event

상태 활동

enterGenerate implicit event when state becomes active
exitGenerate implicit event when state becomes inactive
inCheck state activity in Stateflow

문자열 데이터 생성, 결합 및 변환하기

ascii2strConvert array of type uint8 to string
blanksCreate a character array of blanks
doubleConvert string to double precision value
isletterDetermine which characters are letters
isspaceDetermine which characters are space characters
str2asciiConvert string to array of type uint8
str2doubleConvert string to double-precision value
strcatConcatenate strings
strcmpCompare strings
stringCreate a string
tostringConvert numeric value to string

문자열 데이터 유형 및 속성 결정하기

isletterDetermine which characters are letters
isspaceDetermine which characters are space characters
isstringDetermine if input is string
strlenDetermine length of string
strlengthLength of string

문자열 데이터 찾기 및 바꾸기

containsDetermine if pattern is in a string
endsWithDetermine if strings end with pattern
matchesDetermine if pattern matches string
replaceFind and replace one or more substring
replaceBetweenReplace substrings between start and end points
startsWithDetermine if strings start with pattern
strfindFind strings within other strings
strrepFind and replace substrings

문자열 데이터 편집하기

eraseDelete substrings within strings
eraseBetweenDelete substring between start and end points
extractAfterExtract substring after specified positions
extractBeforeExtract substring before specified positions
insertAfterInsert string after specified substring
insertBeforeInsert string before specified substring
lowerConvert string to lowercase
plusAppend strings
reverseReverse order of characters in strings
strcpyAssign string value
stripRemove leading and trailing characters from string
strtrimRemove leading and trailing white space from a string
substrExtract substring from string
upperConvert a string to uppercase

문자열 데이터 비교하기

matchesDetermine if pattern matches string
strcmpCompare strings
strcmpiCompare strings (case insensitive)
strncmpCompare first n characters of strings (case sensitive)
strncmpiCompare first n characters of strings (case insensitive)

시간 논리

afterExecute chart after event broadcast or specified time
atExecute chart at event broadcast or specified time
beforeExecute chart before event broadcast or specified time
countChart executions during which condition is valid
durationTime during which condition is valid
elapsedTime since state became active
everyExecute chart at regular intervals
temporalCountNumber of events, chart executions, or time since state became active

도움말 항목