필터 지우기
필터 지우기

Is there a way to access control pins on a DB9 connector in a Simulink simulation?

조회 수: 3 (최근 30일)
Hi,
In my SLDRT simulation I am generating a GPS-PPS signal that needs to be sent out to a device using serial communication (RS-232).
I was wondering if there is a way to access / control the, control pins on a DB9 connector in Simulink so that the PPS signal can be sent out, say on the DCD (Data Carrier Detect) pin.
The use of 3rd party cards to accomplish this is not what I am looking for.
Any insight on this is much appriciated !
Thank you

답변 (1개)

Bhanu Prakash
Bhanu Prakash 2023년 5월 8일
Hi Howard,
As per my understanding of the question, you want to access the control pins on a DB9 connector in Simulink.
To do this, you can use "Serial Transmit" and "Serial Receive" blocks in Simulink. These blocks can be connected to a DB9 connector and allow you to send and receive data through a serial port.
You can access the control pins on the DB9 connector using the "Serial Configuration" block.
You can refer to the following documentation of “Serial Configuration” block for more information:
Following is the documentation for “Serial Transmit” and “Serial Receive” blocks respectively:
Hope this answer helps you.
Thanks,
Bhanu Prakash.

카테고리

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

제품


릴리스

R2021b

Community Treasure Hunt

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

Start Hunting!

Translated by