Serial and Ethernet connection for xpc target

조회 수: 3 (최근 30일)
Le
Le 2013년 6월 17일
답변: Dimitri MANKOV 2023년 9월 4일
Hi everyone I am working with the PC104 system, it connects with the host PC via Ethernet cable. Now, I want to communicate with the serial port of the host PC when the xpc program is running. Is it possible to do that? If it is, how to realize that? Thank you very much

답변 (1개)

Dimitri MANKOV
Dimitri MANKOV 2023년 9월 4일
Hi Le,
I'f you'd like to send data over the serial / COM port of your target machine, you can use the RS-232 blocks from the xPC Target / Simulink Real-Time library.
If you'd like to send data over the serial / COM port of your host PC, then the Serial Port Interface blocks from the Instrument Control Toolbox, for example, are more suitable.
Best,
Dimtiri

카테고리

Help CenterFile Exchange에서 Target Computer Setup에 대해 자세히 알아보기

태그

아직 태그를 입력하지 않았습니다.

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by