애니메이션 스크립트 명령 유형

추적기 명령을 사용하여 애니메이션 시퀀스를 자동화할 스크립트를 작성할 수 있습니다.

이 명령의 구문은 추적기 명령에 자세히 설명되어 있습니다.

참고: 사용 가능한 스크립팅 명령의 목록을 보려면 애니메이션 명령 막대에 help 또는 ?를 입력하십시오.

스크립트에 다음 명령 유형을 사용할 수 있습니다.

표 1. 명령 유형
명령 유형 명령
중단점 break <object> <op> <breakPointType> <data>
호출 [오브젝트 이름]->CALL([operation call] [signature])
주석 // the comment goes here
디스플레이
  • display
  • watch
이벤트 생성 <instanceName>->GEN(<eventName>(<parameterName>
[, <parameterName>]*))

<instanceName>->GEN(<eventName>())

<instanceName>->GEN(<eventName>)

이동
  • go
  • go event
  • go idle
  • go step
도움말
  • help
  • ?
입/출력
  • input [+] <destination>
  • output <+/–> <destination>
종료 quit
재개
  • resume threadName
  • resume #Thread threadName
초점 설정
  • set focus <threadName>
  • set focus #Thread <threadName>
표시 show <object> <interest-list>
일시중단
  • suspend threadName
  • suspend #Thread threadName
시간소인 timestamp <option>
추적 trace <object> <interest-list>

다음 스크립트 예제는 페이스메이커 데모의 챔버 장치 동작을 테스트합니다.

//*******************************************************
// file: utChamber.txt
// description: chamber unit test script
//*******************************************************// run until we 
enter the sensing state
break ut2Chamber->theChamber stateEntered sensing
go
break ut2Chamber->theChamber -stateEntered sensing

// Trace ... and capture to file utChamber.log
trace #CallStack method
trace #CallStack +timeout
output +test.log
// give several heart beats
ut2Chamber->theChamber->GEN(evHeartBeat)
go idle
ut2Chamber->theChamber->GEN(evHeartBeat)
go idle
ut2Chamber->theChamber->GEN(evHeartBeat)
go idle
// absence of a heartbeat should cause a pace
go idle
break ut2Chamber->theChamber stateEntered sensing
go
break ut2Chamber->theChamber -stateEntered sensing
// regenerate heartbeats
ut2Chamber->theChamber->GEN(evHeartBeat)
go idle
ut2Chamber->theChamber->GEN(evHeartBeat)
go idle
ut2Chamber->theChamber->GEN(evHeartBeat)
go idle
// stop logging to file
output -test.log

피드백