목표
- Write를 통해 기본 실행 스크립트를 실행 확인
제작
1. 기본 CAPL Script에서 아래와 같은 코드를 사용
※내 경우는 Engine.can
// :: Initializes variables, displays messages, and reads files before measurement starts (limited system functionality).
on preStart {
write(":: Start the program");
}
// :: Executes at the start of measurement, enabling all system functions (e.g., timers, logging, bus messages).
on start {
}
// :: Handles pre-stop actions before measurement stops; DeferStop can delay the stop if needed.
on preStop {
}
// :: Runs after measurement stops to perform final cleanup and logging (some settings may not take effect)
on stopMeasurement {
}
2. 실행 확인
'Programming > CANoe' 카테고리의 다른 글
CANoe UI Panel 만들기: 시작, 종료 버튼 (0) | 2025.02.28 |
---|---|
CANoe 함수: Console 로그 관련 함수 (0) | 2025.02.28 |
CANoe 함수: CANoe 시작, 종료 관련 함수 (0) | 2025.02.23 |
CANoe CAN/CANFD 진단통신 전송 4: 실행 스크립트 제작 (0) | 2025.02.23 |
CANoe Window 띄우기: Write (0) | 2025.02.23 |