주요 콘텐츠

이 페이지는 기계 번역을 사용하여 번역되었습니다. 영어 원문을 보려면 여기를 클릭하십시오.

MATLAB에서의 통신

CAN 하드웨어 구성; 네트워크에서 메시지 송수신

하드웨어 연결 함수는 CAN 버스와의 물리적 연결을 확립하는 CAN 인터페이스 하드웨어에 대한 연결을 정의합니다. CAN Transmit Workflow는 MATLAB®를 사용하여 CAN 메시지를 패킹하고 송신하는 방법을 보여줍니다. 이벤트 기반 메시지 송신을 활용할 수도 있습니다; 메시지를 로드하고 재생합니다. CAN Receive Workflow는 CAN 메시지를 수신하고 언패킹하는 방법을 보여줍니다.

네트워크에서 CAN 블록을 사용하여 메시지를 송신하고 수신하는 Simulink® 모델 구축에 대해서는 Simulink에서의 통신를 참조하십시오.

함수

모두 확장

canChannelList사용 가능한 CAN 장치에 대한 정보
canChannel지정된 장치에 연결된 CAN 채널 생성
discardDiscard all messages from CAN channel
configBusSpeedSet bit timing rate of CAN channel
canSupportGenerate technical support log
canMessage사용자가 지정한 구조를 기반으로 CAN 메시지 생성
pack신호 데이터를 CAN 메시지에 패킹
startSet CAN channel online
transmitCAN 버스로 CAN 메시지 전송
replayRetransmit messages from CAN bus
transmitConfigurationDisplay messages configured for automatic transmission
transmitEventConfigure messages for event-based transmission
transmitPeriodicConfigure messages for periodic transmission
receiveCAN 버스에서 메시지를 수신합니다
attachDatabase메시지에 CAN 데이터베이스를 연결하고 메시지에서 CAN 데이터베이스를 제거합니다
stopSet CAN channel offline
unpackUnpack signal data from CAN message
extractAllSelect all instances of CAN message from message array
extractRecentSelect most recent CAN message from array of messages
extractTimeSelect CAN messages occurring within specified time range
canMessageImport Import CAN messages from third-party log file
canSignalImportImport CAN log file into decoded signal timetables
canMessageTimetableConvert CAN messages into timetable
canSignalTimetableCAN 메시지 타임테이블로부터 CAN 신호 타임테이블 생성
canFDChannelListInformation on available CAN FD device channels
canFDChannelConstruct CAN FD channel connected to specified device
canFDMessageBuild CAN FD message based on user-specified structure
canFDMessageTimetableConvert CAN or CAN FD messages into timetable
canFDMessageReplayBlockStructConvert CAN FD messages for use as CAN Replay block output
canDatabaseCAN 데이터베이스 파일 핸들 생성
attributeInfoInformation about CAN database attributes
nodeInfoInformation about CAN database node
messageInfoInformation about CAN database messages
signalInfoInformation about signals in CAN message
valueTableTextLook up value of table text for signal
canMessageImport Import CAN messages from third-party log file
canSignalImportImport CAN log file into decoded signal timetables
arxmlDatabaseARXML 파일로부터 ARXML 데이터베이스 생성 (R2025a 이후)
filterAllowAllAllow all CAN messages of specified identifier type
filterAllowOnlyConfigure CAN message filter to allow only specified messages
filterBlockAllConfigure filter to block CAN messages with specified identifier type

속성

모두 확장

can.Channel PropertiesProperties of the can.Channel object
can.Message PropertiesProperties of the can.Message object
can.Database PropertiesProperties of the can.Database object

도움말 항목

CAN 메시지

메시지 데이터베이스

추천 예제